Template:DPL/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Interim save)
 
imported>FrozenPlum
m (Remove a bit that I'm phasing out)
 
(3 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>
For formatting individual %VARIABLES% use [[Template:tt]], for HTML tags, try [[Template:tag]].
 
 
Example:<p></p>
* <code><nowiki>{{DPL|mode}}</nowiki></code> gives {{DPL|mode}}<br><br>
* <code><nowiki>{{DPL|mode|DPLalternate format statementlabel}}</nowiki></code> gives {{DPL|formatmode|DPLalternate format statementlabel}}<br/>
* <code><nowiki>{{DPL|#dplnummode|DPL format statement}}</nowiki></code> gives {{DPL|#dplnumformat|DPL format statement}}<br/>
* <code><nowiki>{{DPL|non-existing page#dplnum}}</nowiki></code> gives {{DPL|non-existing page#dplnum}}
* <code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}
 
To include parameter values :<br><br>
* <code><nowiki>{{DPL|mode|{{=}}</nowiki></code> followed by <code><nowiki>[[=userformat}}]]</nowiki></code> gives {{DPL|mode|{{=}}[[=userformat}}<br/>]] (with redirect created from =userformat to mode)
* Just doing <code><nowiki>{{DPL|mode|{{=}}}}=userformat</nowiki></code> givesis also fine, resulting in {{DPL|mode|{{=}}}}=userformat<br/>
 
<includeonly>

Latest revision as of 05:24, 2 April 2022

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.

Example:

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