Template:DPL: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Undo revision 1281 by FrozenPlum (talk))
imported>FrozenPlum
m (add scrolling and fix syntax link)
Line 136: Line 136:


<!-- General use and invocation syntax -->
<!-- General use and invocation syntax -->
| scrolling =
| syntax = General usage and invocation syntax
| syntax = General usage and invocation syntax

| #default = {{{1}}}
| #default = {{{1}}}
}}{{#switch: {{{1|test}}}
}}{{#switch: {{{1|test}}}
Line 144: Line 144:
| #dplreplace
| #dplreplace
| #dplmatrix
| #dplmatrix
| #dplchapter =
| #dplchapter
| syntax =
| #default = &#35;{{{1}}}
| #default = &#35;{{{1}}}
}}|{{{1}}}]]</includeonly></onlyinclude>
}}|{{{1}}}]]</includeonly></onlyinclude>

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

Example:

  • {{DPL|mode}} gives mode
  • {{DPL|mode|alternate label}} gives mode
  • {{DPL|mode|DPL format statement}} gives format
  • {{DPL|#dplnum}} gives #dplnum
  • {{DPL|non-existing page}} gives non-existing page

To include parameter values:

  • {{DPL|mode}} followed by [[=userformat]] gives mode=userformat (with redirect created from =userformat to mode)
  • Just doing {{DPL|mode}}=userformat is also fine, resulting in mode=userformat
[view | edit | purge]The above documentation is transcluded from Template:DPL/doc.