Template:DPL/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Interim save)
 
imported>FrozenPlum
m (Close enough)
Line 12: Line 12:
<code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}
<code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}


To include parameter values :<br><br>
To include parameter values:<br>
<code><nowiki>{{DPL|mode|{{=}}userformat}}</nowiki></code> gives {{DPL|mode|{{=}}userformat}}<br/>
<code><nowiki>{{DPL|mode|{{eq|=}}userformat}}</nowiki></code> gives {{DPL|mode|{{=}}userformat}}<br/>
<code><nowiki>{{DPL|mode|{{=}}}}</nowiki></code> gives {{DPL|mode|{{=}}}}<br/>
<code><nowiki>{{DPL|mode}}</nowiki></code> followed by <code><nowiki>[[=userformat]]</nowiki></code> gives {{DPL|mode}}[[=userformat]]<br/>


<includeonly>
<includeonly>

Revision as of 05:11, 31 March 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:

{{DPL|mode}} gives mode

{{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|{{eq|=}}userformat}} gives =userformat
{{DPL|mode}} followed by [[=userformat]] gives mode=userformat