Template:DPL3: Difference between revisions
Content added Content deleted
mNo edit summary |
imported>FrozenPlum m (need to put back to working prior to making public) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1:
<onlyinclude><includeonly>{{#vardefine:page_}}<!--
-->{{#vardefine:page|
{{#switch: {{{1}}}
Line 65:
| includetrim = Controlling output volume
<!-- Criteria for page selection
| category
| categorymatch
Line 124:
| skipthispage = Criteria for page selection
<!-- Other parameters
| updaterules
| deleterules
Line 143:
-->|{{#vardefine:page_|
{{#switch: {{{1}}}
<!-- Other pages These links will have a different formatting than the links in the list above-->
| Characters with special meaning
| Scrolling
| URL parameters = General
| userformat
| VARIABLES = Controlling output format▼
| Select articles based on REVISION dates
▲| VARIABLES = Controlling output format
| REVISION
| Criteria for page selection
| selection criteria = Criteria for page selection
| #default =
}}}}
|<span class=dpl3><!-- Those found in the first list (dpl parameters and functions) will be formatted differently than those found in the second list
-->}}<!--
-->{{#ifeq:{{#var:page}}{{#var:page_}}|<!-- if not on either list
-->|{{#if:{{#pos:{{lc:{{{1}}}}}|example}}{{#pos:{{lc:{{{1}}}}}|test}}<!-- if either an example or a test (on another page)
-->|{{ifexists|
-->|[[
-->|{{#tag:span|{{{1}}} not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist.
-->}}<!--
-->|{{ifexists|
-->|[[
-->|{{#tag:span|'{{{1}}}' not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist.
-->}}<!--
-->}}<!--
-->|{{#if:{{#pos:{{{1}}}|#dpl}}<!--
-->|[[
-->|[[
-->{{#forargs:|p|v|}}{{#if:{{#var:p}}<!-- check for usage of "=" in parameters
-->|{{{2|{{{text|{{{1}}}}}}}}}<!--
-->|{{{1|}}}={{#var:v}}}}<!--
Line 178 ⟶ 182:
-->}}<!--
-->{{#ifeq:{{#var:page}}|||</span>}}<
{{Documentation}}
|
Latest revision as of 10:01, 29 March 2022
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
{{DPL|mode}}=userformat
gives mode=userformat
{{DPL|mode}}=
gives mode=
[view | edit | purge]The above documentation is transcluded from Template:DPL3/doc.