Template:DPL3: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (12 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.)
imported>FrozenPlum
m (Move docs to doc subpage)
Line 1: Line 1:
<includeonly>{{#vardefine:page_}}<!--
<onlyinclude><includeonly>{{#vardefine:page_}}<!--
-->{{#vardefine:page|
-->{{#vardefine:page|
{{#switch: {{{1}}}
{{#switch: {{{1}}}
Line 182: Line 182:


-->}}<!--
-->}}<!--
-->{{#ifeq:{{#var:page}}|||</span>}}<!--
-->{{#ifeq:{{#var:page}}|||</span>}}</includeonly></onlyinclude>
{{Documentation}}
--></includeonly><noinclude>
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>{{dpl3|format}}</nowiki></code> gives {{dpl3|format}}<br/>
<code><nowiki>{{dpl3|format|DPL format statement}}</nowiki></code> gives {{dpl3|format|DPL format statement}}<br/>
<code><nowiki>{{dpl3|#dplvar}}</nowiki></code> gives {{dpl3|#dplvar}}<br/>
<code><nowiki>{{dpl3|nonono}}</nowiki></code> gives {{dpl3|nonono}}

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>{{dpl3|mode|=}}</nowiki></code> gives {{dpl3|mode|=}}<br/>
[[Category:Formatting templates]]
[[tr:Şablon:DPL3]]</noinclude>

Revision as of 06:19, 29 March 2022

[view | edit | purge]Template Documentation
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=

[view | edit | purge]The above documentation is transcluded from Template:DPL3/doc.