Template:DPL3/doc: Difference between revisions

From DynamicPageList3 Manual
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 HTML tags, try [[Template:tag]].
For formatting individual %VARIABLES% use [[Template:tt]].


==Usage==

<code><nowiki>{{DPL|format}}</nowiki></code> gives {{DPL|format}}<br/>
Example:<p></p>
<code><nowiki>{{dpl3|format}}</nowiki></code> gives {{dpl3|format}}<br/>
<code><nowiki>{{DPL|format|DPL format statement}}</nowiki></code> gives {{DPL|format|DPL format statement}}<br/>
<code><nowiki>{{dpl3|format|DPL format statement}}</nowiki></code> gives {{dpl3|format|DPL format statement}}<br/>
<code><nowiki>{{DPL|#dplvar}}</nowiki></code> gives {{DPL|#dplvar}}<br/>
<code><nowiki>{{dpl3|#dplvar}}</nowiki></code> gives {{dpl3|#dplvar}}<br/>
<code><nowiki>{{DPL|non-existing page}}</nowiki></code> gives {{DPL|non-existing page}}
<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>
Parameter values may be included as well (in lieu of a 2nd parameter):<p></p>
<code><nowiki>{{dpl3|mode|=userformat}}</nowiki></code> gives {{dpl3|mode|=userformat}}<br/>
<code><nowiki>{{DPL|mode}}=userformat</nowiki></code> gives {{DPL|mode}}=userformat<br/>
<code><nowiki>{{dpl3|mode|=}}</nowiki></code> gives {{dpl3|mode|=}}<br/>
<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

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=