Template:DPL: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Add variables for use) |
imported>FrozenPlum m (Add variables) |
||
Line 32: | Line 32: | ||
| rowsize |
| rowsize |
||
| rowcolformat |
| rowcolformat |
||
| variables |
| variables |
||
| %NR% |
|||
| %PAGE% |
|||
| %PAGEID% |
|||
| %IMAGE% |
|||
| %IMAGESEL% |
|||
| %TITLE% |
|||
| %NAMESPACE% |
|||
| %SIZE% |
|||
| %SIZEFS% |
|||
| %COUNT% |
|||
| %DATE% |
|||
| %USER% |
|||
| %CONTRIBUTOR% |
|||
| %CONTRIBUTION% |
|||
| %CONTRIB% |
|||
| %CATLIST% |
|||
| %CATBULLETS% |
|||
| %CATNAMES% |
|||
| %REVISION% |
|||
| %EXTERNALLINK% |
|||
| %PAGES% |
|||
| %TOTALPAGES% |
|||
| %VERSION% |
|||
| %DPLTIME% |
|||
| %FIRSTNAMESPACE% |
|||
| %FIRSTTITLE% |
|||
| %LASTNAMESPACE% |
|||
| %LASTTITLE% |
|||
| %SCROLLDIR% |
|||
| %PAGESEL% = Controlling output format |
|||
<!-- Controlling output order --> |
<!-- Controlling output order --> |
||
| ordermethod |
| ordermethod |
||
Line 140: | Line 169: | ||
| syntax = General usage and invocation syntax |
| syntax = General usage and invocation syntax |
||
| #default = {{{1}}} |
| #default = {{{1}}} |
||
}}<!-- |
|||
⚫ | |||
---- If no |
|||
⚫ | |||
| #dplvar |
| #dplvar |
||
| #dplnum |
| #dplnum |
||
Line 147: | Line 179: | ||
| #dplchapter |
| #dplchapter |
||
| syntax = |
| syntax = |
||
| %NR% |
|||
| %PAGE% |
|||
| %PAGEID% |
|||
| %IMAGE% |
|||
| %PAGESEL% |
|||
| %IMAGESEL% |
|||
| %TITLE% |
|||
| %NAMESPACE% |
|||
| %SIZE% |
|||
| %SIZEFS% |
|||
| %COUNT% |
|||
| %DATE% |
|||
| %USER% |
|||
| %CONTRIBUTOR% |
|||
| %CONTRIBUTION% |
|||
| %CONTRIB% |
|||
| %CATLIST% |
|||
| %CATBULLETS% |
|||
| %CATNAMES% |
|||
| %REVISION% |
|||
| %EXTERNALLINK% |
|||
| %PAGES% |
|||
| %TOTALPAGES% |
|||
| %VERSION% |
|||
| %DPLTIME% |
|||
| %FIRSTNAMESPACE% |
|||
| %FIRSTTITLE% |
|||
| %LASTNAMESPACE% |
|||
| %LASTTITLE% |
|||
| %SCROLLDIR% = #variables |
|||
| #default = #{{{1}}} |
| #default = #{{{1}}} |
||
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude> |
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude> |
Revision as of 07:15, 3 April 2022
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.