Template:DPL: Difference between revisions
Content added Content deleted
imported>FrozenPlum (Create alternate template for DPL3 that doesn't require Variables (whose future is uncertain) and Loops, for testing.) |
imported>FrozenPlum mNo edit summary |
||
Line 138: | Line 138: | ||
| syntax = General usage and invocation syntax |
| syntax = General usage and invocation syntax |
||
| #default = |
| #default = {{{1}}} |
||
}}#{{ |
}}#{{#switch: {{{1}}} |
||
| #dplvar = Dplvar |
|||
| #dplnum = Dplnum |
|||
| #dplreplace = Dplreplace |
|||
| #dplmatrix = Dplmatrix |
|||
| #dplchapter = Dplchapter |
|||
| |
|||
}}|{{{1}}}]]</includeonly></onlyinclude> |
|||
{{Documentation}} |
{{Documentation}} |
Revision as of 03:26, 31 March 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 mode{{DPL|mode|DPL format statement}}
gives format{{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.