Template:DPL3/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (FrozenPlum moved page Template:Dpl3/doc to Template:DPL3/doc: Nope, now I understand why this was named as such)
imported>FrozenPlum
m (update docs, forgot to apply new template)
 
(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>
For formatting individual %VARIABLES% use [[Template:tt]], for HTML tags, try [[Template:tag]].
 
==Usage==
 
<code><nowiki>{{dpl3DPL|non-existing pageformat}}</nowiki></code> gives {{dpl3DPL|non-existing pageformat}}<br/>
Example:<p></p>
<code><nowiki>{{dpl3DPL|format|DPL format statement}}</nowiki></code> gives {{dpl3DPL|format|DPL format statement}}<br/>
<code><nowiki>{{dpl3DPL|format|DPL format statement#dplvar}}</nowiki></code> gives {{dpl3DPL|format|DPL format statement#dplvar}}<br/>
<code><nowiki>{{dpl3DPL|#dplvarnon-existing page}}</nowiki></code> gives {{dpl3DPL|#dplvarnon-existing page}}<br/>
<code><nowiki>{{dpl3|non-existing page}}</nowiki></code> gives {{dpl3|non-existing page}}
 
Parameter values may be included as well (in lieu of a 2nd parameter):<p></p>
<code><nowiki>{{dpl3DPL|mode|}}=userformat}}</nowiki></code> gives {{dpl3DPL|mode|}}=userformat}}<br/>
<code><nowiki>{{dpl3DPL|mode|=}}=</nowiki></code> gives {{dpl3DPL|mode|=}}=<br/>
 
<includeonly>

Latest revision as of 05:35, 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.

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=