Template:DPL3: Difference between revisions

m
need to put back to working prior to making public
(Created page with "<includeonly>{{#vardefine:page_}}<!-- -->{{#vardefine:page| {{#switch: {{{1}}} | #dplvar = dplvar | #dplnum = dplnum | #dplreplace = dplreplace | #dplmatrix = dplmatrix | #d...")
 
imported>FrozenPlum
m (need to put back to working prior to making public)
 
(15 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude><includeonly>{{#vardefine:page_}}<!--
-->{{#vardefine:page|
{{#switch: {{{1}}}
| #dplvar = dplvarDplvar
| #dplnum = dplnumDplnum
| #dplreplace = dplreplaceDplreplace
| #dplmatrix = dplmatrixDplmatrix
| #dplchapter = dplchapterDplchapter
 
<!-- Controlling output format -->
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 Usageusage and Invocationinvocation Syntaxsyntax
 
| userformat
| DPL Security = Source and Installation
| 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
|<span class=dpl3><!--
-->}}<!--
-->}}<!--{{#forargs:|p|v|}}{{#if:{{#var:p}}|{{{1|}}}|{{{1|}}}={{#var:v}}}}
 
-->{{#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|Extension:DPL3/Example:_{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement
-->|[[Extension:DPL3/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.
-->}}<!--
-->|{{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
-->|{{#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}}<!--
-->|[[Extension:DPL3/{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions
-->|[[Extension:DPL3/Parameters: {{#var:page}}{{#var:page_}}#{{{1}}}|<!--
-->{{#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>}}<!--/includeonly></onlyinclude>
{{Documentation}}
--></includeonly><noinclude>
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 %VARIABLES% and HTML tags, use Template:tt.
 
 
Example:<p></p>
<code><nowiki>{{dpl3|format}}</nowiki></code> gives {{dpl3|format}}<br/>
<code><nowiki>{{dpl3|format|DPL format statement}}</nowiki></code> gives {{dpl3|format|DPL format statement}}<br/>
<code><nowiki>{{dpl3|DPL Security}}</nowiki></code> gives {{dpl3|DPL Security}}<br/>
<code><nowiki>{{dpl3|#dplvar}}</nowiki></code> gives {{dpl3|#dplvar}}<br/>
<code><nowiki>{{dpl3|nonono}}</nowiki></code> gives {{dpl3|nonono}}
 
Parameter values may be included as well (in lieu of a 2nd parameter):<p></p>
<code><nowiki>{{dpl3|mode|=userformat}}</nowiki></code> gives {{dpl3|mode|=userformat}}<br/>
<code><nowiki>{{dpl3|mode|=}}</nowiki></code> gives {{dpl3|mode|=}}<br/>
 
[[Category:Template DPL]]</noinclude>
Anonymous user