Template:DPL/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Finish the docs for this)
imported>FrozenPlum
m (adjust examples (plus test edits needed to see if 502/3 instances drop after disabling loops/vars extensions))
Line 7: Line 7:


Example:<p></p>
Example:<p></p>
<code><nowiki>{{DPL|mode}}</nowiki></code> gives {{DPL|mode}}<br><br>
* <code><nowiki>{{DPL|mode}}</nowiki></code> gives {{DPL|mode}}
<code><nowiki>{{DPL|mode|DPL format statement}}</nowiki></code> gives {{DPL|format|DPL format statement}}<br/>
* <code><nowiki>{{DPL|mode|alternate label}}</nowiki></code> gives {{DPL|mode|alternate label}}
<code><nowiki>{{DPL|#dplnum}}</nowiki></code> gives {{DPL|#dplnum}}<br/>
* <code><nowiki>{{DPL|mode|DPL format statement}}</nowiki></code> gives {{DPL|format|DPL format statement}}
<code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}
* <code><nowiki>{{DPL|#dplnum}}</nowiki></code> gives {{DPL|#dplnum}}
* <code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}


To include parameter values:<br>
To include parameter values:<br>

Revision as of 01:58, 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.

For formatting individual %VARIABLES% use Template:tt, for HTML tags, try Template:tag.


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