Template:DPL3/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Flag third-party extension use)
imported>FrozenPlum
m (remove item to be phased out)
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]].





Revision as of 05:33, 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.


Example:

{{dpl3|format}} gives {{#vardefine:page_}}{{#vardefine:page| Controlling output format}}[[{{#var:page}}|format]]
{{dpl3|format|DPL format statement}} gives {{#vardefine:page_}}{{#vardefine:page| Controlling output format}}[[{{#var:page}}|DPL format statement]]
{{dpl3|#dplvar}} gives {{#vardefine:page_}}{{#vardefine:page| Dplvar}}[[{{#var:page}}|#dplvar]]
{{dpl3|non-existing page}} gives {{#vardefine:page_}}{{#vardefine:page| }}[[{{#var:page}}|non-existing page]]

Parameter values may be included as well (in lieu of a 2nd parameter):

{{dpl3|mode|=userformat}} gives {{#vardefine:page_}}{{#vardefine:page| Controlling output format}}[[{{#var:page}}|mode]]
{{dpl3|mode|=}} gives {{#vardefine:page_}}{{#vardefine:page| Controlling output format}}[[{{#var:page}}|mode]]