Template:DPL3: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (FrozenPlum moved page Template:DPL3 to Template:Dpl3 without leaving a redirect) |
imported>FrozenPlum m (need to put back to working prior to making public) |
||
(One intermediate revision by the same user not shown) | |||
Line 33: | Line 33: | ||
| rows |
| rows |
||
| rowsize |
| rowsize |
||
| rowcolformat = |
| rowcolformat = Controlling output format |
||
<!-- Controlling output order --> |
<!-- Controlling output order --> |
||
| ordermethod |
| ordermethod |
||
| order |
| order |
||
| ordercollation = |
| ordercollation = Controlling output order |
||
<!-- Controlling output volume --> |
<!-- Controlling output volume --> |
||
Line 63: | Line 63: | ||
| includepage |
| includepage |
||
| includemaxlength |
| includemaxlength |
||
| includetrim = |
| includetrim = Controlling output volume |
||
<!-- Criteria for page selection --> |
<!-- Criteria for page selection --> |
||
Line 122: | Line 122: | ||
| distinct |
| distinct |
||
| ignorecase |
| ignorecase |
||
| skipthispage = |
| skipthispage = Criteria for page selection |
||
<!-- Other parameters --> |
<!-- Other parameters --> |
||
Line 135: | Line 135: | ||
| execandexit |
| execandexit |
||
| dplcache |
| dplcache |
||
| dplcacheperiod = |
| dplcacheperiod = Other parameters |
||
| #default = |
| #default = |
||
Line 149: | Line 149: | ||
| userformat |
| userformat |
||
| VARIABLES = |
| VARIABLES = Controlling output format |
||
| Select articles based on REVISION dates |
| Select articles based on REVISION dates |
||
| REVISION |
| REVISION |
||
| Criteria for page selection |
| Criteria for page selection |
||
| selection criteria = |
| selection criteria = Criteria for page selection |
||
| #default = |
| #default = |
||
Line 163: | Line 163: | ||
-->{{#ifeq:{{#var:page}}{{#var:page_}}|<!-- if not on either 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) |
-->|{{#if:{{#pos:{{lc:{{{1}}}}}|example}}{{#pos:{{lc:{{{1}}}}}|test}}<!-- if either an example or a test (on another page) |
||
-->|{{ifexists| |
-->|{{ifexists|Example:_{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement |
||
-->|[[ |
-->|[[Example:_{{{1}}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- only if the page exists |
||
-->|{{#tag:span|{{{1}}} not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist. |
-->|{{#tag:span|{{{1}}} not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist. |
||
-->}}<!-- |
-->}}<!-- |
||
-->|{{ifexists| |
-->|{{ifexists|{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement |
||
-->|[[ |
-->|[[{{{1}}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- only if the page exists |
||
-->|{{#tag:span|'{{{1}}}' not found|style=color:red}} <!-- <-if {{{1}}} isn't on the list, and the page doesn't exist. |
-->|{{#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}}<!-- |
-->|{{#if:{{#pos:{{{1}}}|#dpl}}<!-- |
||
-->|[[ |
-->|[[{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions |
||
-->|[[ |
-->|[[{{#var:page}}{{#var:page_}}#{{{1}}}|<!-- |
||
-->{{#forargs:|p|v|}}{{#if:{{#var:p}}<!-- check for usage of "=" in parameters |
-->{{#forargs:|p|v|}}{{#if:{{#var:p}}<!-- check for usage of "=" in parameters |
||
-->|{{{2|{{{text|{{{1}}}}}}}}}<!-- |
-->|{{{2|{{{text|{{{1}}}}}}}}}<!-- |
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.