Template:DPL3: Difference between revisions
No edit summary |
No edit summary |
||
Line 146: | Line 146: | ||
| Characters with special meaning |
| Characters with special meaning |
||
| Scrolling |
| Scrolling |
||
| URL parameters = General |
| URL parameters = General usage and invocation syntax |
||
| DPL Security = Source and |
| DPL Security = Source and installation |
||
| VARIABLES = Parameters: Controlling output format |
| VARIABLES = Parameters: Controlling output format |
||
Line 165: | Line 165: | ||
-->|{{ifexists|Extension:DPL3/{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement |
-->|{{ifexists|Extension:DPL3/{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement |
||
-->|[[Extension:DPL3/{{{1}}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- only if the page exists |
-->|[[Extension:DPL3/{{{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. |
||
-->}}<!-- |
-->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 171: | Line 171: | ||
-->|[[Extension:DPL3/{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions |
-->|[[Extension:DPL3/{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions |
||
-->|[[Extension:DPL3/{{#var:page}}{{#var:page_}}#{{{1}}}|<!-- |
-->|[[Extension:DPL3/{{#var:page}}{{#var:page_}}#{{{1}}}|<!-- |
||
-->{{#forargs:|p|v|}}{{#if:{{#var:p}}<!-- |
-->{{#forargs:|p|v|}}{{#if:{{#var:p}}<!-- check for usage of "=" in parameters |
||
-->|{{{2|{{{text|{{{1}}}}}}}}}<!-- |
-->|{{{2|{{{text|{{{1}}}}}}}}}<!-- |
||
-->|{{{1|}}}={{#var:v}}}}<!-- |
-->|{{{1|}}}={{#var:v}}}}<!-- |
Revision as of 02:42, 19 July 2019
Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.
For formatting %VARIABLES% and HTML tags, use Template:tt.
Example:
{{dpl3|format}}
gives {{#vardefine:page_}}{{#vardefine:page|
Parameters: Controlling output format}}[[Extension:DPL3/{{#var:page}}|format]]
{{dpl3|format|DPL format statement}}
gives {{#vardefine:page_}}{{#vardefine:page|
Parameters: Controlling output format}}[[Extension:DPL3/{{#var:page}}|DPL format statement]]
{{dpl3|DPL Security}}
gives {{#vardefine:page_}}{{#vardefine:page|
}}[[Extension:DPL3/{{#var:page}}|DPL Security]]
{{dpl3|#dplvar}}
gives {{#vardefine:page_}}{{#vardefine:page|
Dplvar}}[[Extension:DPL3/{{#var:page}}|#dplvar]]
{{dpl3|nonono}}
gives {{#vardefine:page_}}{{#vardefine:page|
}}[[Extension:DPL3/{{#var:page}}|nonono]]
Parameter values may be included as well (in lieu of a 2nd parameter):
{{dpl3|mode|=userformat}}
gives {{#vardefine:page_}}{{#vardefine:page|
Parameters: Controlling output format}}[[Extension:DPL3/{{#var:page}}|mode]]
{{dpl3|mode|=}}
gives {{#vardefine:page_}}{{#vardefine:page|
Parameters: Controlling output format}}[[Extension:DPL3/{{#var:page}}|mode]]