Template:DPL/doc: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Close enough) |
imported>FrozenPlum m (Remove a bit that I'm phasing out) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3:
Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.<p></p>
Example:<p></p>
* <code><nowiki>{{DPL|mode}}</nowiki></code> gives {{DPL|mode}}
* <code><nowiki>{{DPL|mode|
* <code><nowiki>{{DPL|
* <code><nowiki>{{DPL|
* <code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}
To include parameter values:<br>
* <code><nowiki>{{DPL|mode
* Just doing <code><nowiki>{{DPL|mode}}=userformat</nowiki></code>
<includeonly>
|
Latest revision as of 05:24, 2 April 2022
[purge]
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more informationFormats, 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