Template:DPL: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Add variables) |
imported>FrozenPlum m (Name has since changed for desired section) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
| rowsize |
| rowsize |
||
| rowcolformat |
| rowcolformat |
||
| variable |
|||
| variables |
| variables |
||
| CATBULLETS |
|||
| %NR% |
|||
| % |
| %CATBULLETS% |
||
| CATLIST |
|||
| %PAGEID% |
|||
| %IMAGE% |
|||
| %IMAGESEL% |
|||
| %TITLE% |
|||
| %NAMESPACE% |
|||
| %SIZE% |
|||
| %SIZEFS% |
|||
| %COUNT% |
|||
| %DATE% |
|||
| %USER% |
|||
| %CONTRIBUTOR% |
|||
| %CONTRIBUTION% |
|||
| %CONTRIB% |
|||
| %CATLIST% |
| %CATLIST% |
||
| CATNAMES |
|||
| %CATBULLETS% |
|||
| %CATNAMES% |
| %CATNAMES% |
||
| CONTRIB |
|||
| %REVISION% |
|||
| % |
| %CONTRIB% |
||
| CONTRIBUTION |
|||
| %PAGES% |
|||
| % |
| %CONTRIBUTION% |
||
| CONTRIBUTOR |
|||
| %VERSION% |
|||
| % |
| %CONTRIBUTOR% |
||
| COUNT |
|||
| %COUNT% |
|||
| COUNTFS |
|||
| %COUNTFS% |
|||
| COUNTFS2 |
|||
| %COUNTFS2% |
|||
| DATE |
|||
| %DATE% |
|||
| DPLTIME |
|||
| %DPLTIME% |
|||
| EXTERNALLINK |
|||
| %EXTERNALLINK% |
|||
| FIRSTNAMESPACE |
|||
| %FIRSTNAMESPACE% |
| %FIRSTNAMESPACE% |
||
| FIRSTTITLE |
|||
| %FIRSTTITLE% |
| %FIRSTTITLE% |
||
| IMAGE |
|||
| %LASTNAMESPACE% |
|||
| %IMAGE% |
|||
| IMAGESEL |
|||
| %IMAGESEL% |
|||
| LASTNAMESPACE |
|||
| %LASTNAMESPACE% |
|||
| LASTTITLE |
|||
| %LASTTITLE% |
| %LASTTITLE% |
||
| NAMESPACE |
|||
| %NAMESPACE% |
|||
| NR |
|||
| %NR% |
|||
| PAGE |
|||
| %PAGE% |
|||
| PAGEID |
|||
| %PAGEID% |
|||
| PAGES |
|||
| %PAGES% |
|||
| PAGESEL |
|||
| %PAGESEL% |
|||
| PFUNC |
|||
| %PFUNC% |
|||
| REVISION |
|||
| %REVISION% |
|||
| SCROLLDIR |
|||
| %SCROLLDIR% |
| %SCROLLDIR% |
||
| SECTION |
|||
| %PAGESEL% = Controlling output format |
|||
| %SECTION% |
|||
| SIZE |
|||
| %SIZE% |
|||
| SIZEFS |
|||
| %SIZEFS% |
|||
| TAG |
|||
| %TAG% |
|||
| TAGBODY |
|||
| %TAGBODY% |
|||
| TITLE |
|||
| %TITLE% |
|||
| TOTALPAGES |
|||
| %TOTALPAGES% |
|||
| USER |
|||
| %USER% |
|||
| VERSION |
|||
| %VERSION% = Controlling output format |
|||
<!-- Controlling output order --> |
<!-- Controlling output order --> |
||
| ordermethod |
| ordermethod |
||
Line 121: | Line 165: | ||
| notlastmodifiedby |
| notlastmodifiedby |
||
| title |
| title |
||
| |
| titlelt |
||
| |
| titlegt |
||
| scroll |
| scroll |
||
| titlematch |
| titlematch |
||
Line 162: | Line 206: | ||
| debug |
| debug |
||
| execandexit |
| execandexit |
||
| cacheperiod = Other parameters |
|||
| dplcache |
|||
| dplcacheperiod = Other parameters |
|||
<!-- General use and invocation syntax --> |
<!-- General use and invocation syntax --> |
||
| scrolling |
| scrolling |
||
| syntax |
|||
| syntax = General usage and invocation syntax |
|||
| URL parameters |
|||
| DPL_count |
|||
| DPL_offset |
|||
| DPL_refresh |
|||
| DPL_fromTitle |
|||
| DPL_toTitle |
|||
| DPL_arg1 |
|||
| DPL_arg2 |
|||
| DPL_arg3 |
|||
| DPL_arg4 |
|||
| DPL_arg5 = General usage and invocation syntax |
|||
| #default = {{{1}}} |
| #default = {{{1}}} |
||
}}<!-- |
}}<!-- |
||
---- Second half of the URL (the anchor or no anchor) |
|||
---- If no |
|||
---- Note: # is replaced by # the HTML entity for # |
|||
-->{{#switch: {{{1|}}} |
-->{{#switch: {{{1|}}} |
||
<!-- other DPL modules and syntax, link to respective pages, no anchor --> |
|||
| #dplvar |
| #dplvar |
||
| #dplnum |
| #dplnum |
||
Line 179: | Line 236: | ||
| #dplchapter |
| #dplchapter |
||
| syntax = |
| syntax = |
||
<!-- scrolling, link to #Scrolling --> |
|||
| scrolling = #scrolling |
|||
<!-- variables, link to #variables --> |
|||
| variable |
|||
| variables |
|||
| CATBULLETS |
|||
| %CATBULLETS% |
|||
| CATLIST |
|||
| %CATLIST% |
|||
| CATNAMES |
|||
| %CATNAMES% |
|||
| CONTRIB |
|||
| %CONTRIB% |
|||
| CONTRIBUTION |
|||
| %CONTRIBUTION% |
|||
| CONTRIBUTOR |
|||
| %CONTRIBUTOR% |
|||
| COUNT |
|||
| %COUNT% |
|||
| COUNTFS |
|||
| %COUNTFS% |
|||
| COUNTFS2 |
|||
| %COUNTFS2% |
|||
| DATE |
|||
| %DATE% |
|||
| DPLTIME |
|||
| %DPLTIME% |
|||
| EXTERNALLINK |
|||
| %EXTERNALLINK% |
|||
| FIRSTNAMESPACE |
|||
| %FIRSTNAMESPACE% |
|||
| FIRSTTITLE |
|||
| %FIRSTTITLE% |
|||
| IMAGE |
|||
| %IMAGE% |
|||
| IMAGESEL |
|||
| %IMAGESEL% |
|||
| LASTNAMESPACE |
|||
| %LASTNAMESPACE% |
|||
| LASTTITLE |
|||
| %LASTTITLE% |
|||
| NAMESPACE |
|||
| %NAMESPACE% |
|||
| NR |
|||
| %NR% |
| %NR% |
||
| PAGE |
|||
| %PAGE% |
| %PAGE% |
||
| PAGEID |
|||
| %PAGEID% |
| %PAGEID% |
||
| |
| PAGES |
||
| %PAGES% |
|||
| PAGESEL |
|||
| %PAGESEL% |
| %PAGESEL% |
||
| PFUNC |
|||
| %IMAGESEL% |
|||
| % |
| %PFUNC% |
||
| REVISION |
|||
| %NAMESPACE% |
|||
| %REVISION% |
|||
| SCROLLDIR |
|||
| %SCROLLDIR% |
|||
| SECTION |
|||
| %SECTION% |
|||
| SIZE |
|||
| %SIZE% |
| %SIZE% |
||
| SIZEFS |
|||
| %SIZEFS% |
| %SIZEFS% |
||
| |
| TAG |
||
| % |
| %TAG% |
||
| TAGBODY |
|||
| %TAGBODY% |
|||
| TITLE |
|||
| %TITLE% |
|||
| TOTALPAGES |
|||
| %TOTALPAGES% |
|||
| USER |
|||
| %USER% |
| %USER% |
||
| VERSION |
|||
| %CONTRIBUTOR% |
|||
| %VERSION% = #variables |
|||
| %CONTRIBUTION% |
|||
| %CONTRIB% |
|||
<!-- URL params, link to #URL parameters --> |
|||
| %CATLIST% |
|||
| URL parameters |
|||
| %CATBULLETS% |
|||
| DPL_count |
|||
| %CATNAMES% |
|||
| DPL_offset |
|||
| %REVISION% |
|||
| DPL_refresh |
|||
| %EXTERNALLINK% |
|||
| DPL_fromTitle |
|||
| %PAGES% |
|||
| DPL_toTitle |
|||
| %TOTALPAGES% |
|||
| DPL_arg1 |
|||
| %VERSION% |
|||
| DPL_arg2 |
|||
| %DPLTIME% |
|||
| DPL_arg3 |
|||
| %FIRSTNAMESPACE% |
|||
| DPL_arg4 |
|||
| %FIRSTTITLE% |
|||
| DPL_arg5 = #Scroll/URL parameters |
|||
| %LASTNAMESPACE% |
|||
| %LASTTITLE% |
|||
<!-- default is #{{{1}}} --> |
|||
| %SCROLLDIR% = #variables |
|||
| #default = #{{{1}}} |
| #default = #{{{1}}} |
||
}}|<!-- |
|||
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude> |
|||
-- Link display text |
|||
-->{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude> |
|||
{{Documentation}} |
{{Documentation}} |
Latest revision as of 07:13, 21 April 2023
Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.
Example:
{{DPL|mode}}
gives mode{{DPL|mode|alternate label}}
gives alternate label{{DPL|mode|DPL format statement}}
gives DPL format statement{{DPL|#dplnum}}
gives #dplnum{{DPL|non-existing page}}
gives non-existing page
To include parameter values:
{{DPL|mode}}
followed by[[=userformat]]
gives mode=userformat (with redirect created from =userformat to mode)- Just doing
{{DPL|mode}}=userformat
is also fine, resulting in mode=userformat
[view | edit | purge]The above documentation is transcluded from Template:DPL/doc.