Template:DPL3/doc: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Flag third-party extension use) |
imported>FrozenPlum m (update docs, forgot to apply new template) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | 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> |
Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.<p></p> |
||
For formatting individual %VARIABLES% use [[Template:tt |
For formatting individual %VARIABLES% use [[Template:tt]]. |
||
==Usage== |
|||
⚫ | |||
Example:<p></p> |
|||
<code><nowiki>{{ |
<code><nowiki>{{DPL|format|DPL format statement}}</nowiki></code> gives {{DPL|format|DPL format statement}}<br/> |
||
<code><nowiki>{{ |
<code><nowiki>{{DPL|#dplvar}}</nowiki></code> gives {{DPL|#dplvar}}<br/> |
||
<code><nowiki>{{ |
<code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}} |
||
⚫ | |||
Parameter values may be included as well (in lieu of a 2nd parameter):<p></p> |
Parameter values may be included as well (in lieu of a 2nd parameter):<p></p> |
||
<code><nowiki>{{ |
<code><nowiki>{{DPL|mode}}=userformat</nowiki></code> gives {{DPL|mode}}=userformat<br/> |
||
<code><nowiki>{{ |
<code><nowiki>{{DPL|mode}}=</nowiki></code> gives {{DPL|mode}}=<br/> |
||
<includeonly> |
<includeonly> |
||
<!-- Template categories/interwikis here --> |
<!-- Template categories/interwikis here --> |
||
[[Category:Templates]] |
[[Category:Templates]] |
||
[[Category:Uses Variables extension]] |
|||
[[Category:Uses Loops extension]] |
|||
[[Category:Templates to simplify or eliminate]] |
|||
</includeonly> |
</includeonly> |
Latest revision as of 05:35, 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.
For formatting individual %VARIABLES% use Template:tt.
Usage
{{DPL|format}}
gives format
{{DPL|format|DPL format statement}}
gives DPL format statement
{{DPL|#dplvar}}
gives
#dplvar
{{DPL|non-existing page}}
gives non-existing page
Parameter values may be included as well (in lieu of a 2nd parameter):
{{DPL|mode}}=userformat
gives mode=userformat
{{DPL|mode}}=
gives mode=