Template:DPL3: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Move docs to doc subpage)
imported>FrozenPlum
m (need to put back to working prior to making public)
 
(2 intermediate revisions by the same user not shown)
Line 33: Line 33:
| rows
| rows
| rowsize
| rowsize
| rowcolformat = Parameters: Controlling output format
| rowcolformat = Controlling output format


<!-- Controlling output order -->
<!-- Controlling output order -->
| ordermethod
| ordermethod
| order
| order
| ordercollation = Parameters: Controlling output order
| ordercollation = Controlling output order


<!-- Controlling output volume -->
<!-- Controlling output volume -->
Line 63: Line 63:
| includepage
| includepage
| includemaxlength
| includemaxlength
| includetrim = Parameters: Controlling output volume
| includetrim = Controlling output volume


<!-- Criteria for page selection -->
<!-- Criteria for page selection -->
Line 122: Line 122:
| distinct
| distinct
| ignorecase
| ignorecase
| skipthispage = Parameters: Criteria for page selection
| skipthispage = Criteria for page selection


<!-- Other parameters -->
<!-- Other parameters -->
Line 135: Line 135:
| execandexit
| execandexit
| dplcache
| dplcache
| dplcacheperiod = Parameters: Other parameters
| dplcacheperiod = Other parameters


| #default =
| #default =
Line 149: Line 149:


| userformat
| userformat
| VARIABLES = Parameters: Controlling output format
| 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 = Parameters: Criteria for page selection
| 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|Extension:DPL3/Example:_{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement
-->|{{ifexists|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
-->|[[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|Extension:DPL3/{{{1}}} <!-- calls a dpl which may be slower? than the previous {{#if:{{#pos statement
-->|{{ifexists|{{{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
-->|[[{{{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}}<!--
-->|[[Extension:DPL3/{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions
-->|[[{{#var:page}}|{{{2|{{{text|{{{1}}}}}}}}}]]<!-- DPL functions
-->|[[Extension:DPL3/{{#var:page}}{{#var:page_}}#{{{1}}}|<!--
-->|[[{{#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

[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.

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

Parameter values may be included as well (in lieu of a 2nd parameter):

{{DPL|mode}}=userformat gives mode=userformat
{{DPL|mode}}= gives mode=

[view | edit | purge]The above documentation is transcluded from Template:DPL3/doc.