Template:DPL: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Add variables)
imported>FrozenPlum
m (Add URL parameters to link to General_usage_and_invocation_syntax#URL parameters)
Line 63: Line 63:
| %SCROLLDIR%
| %SCROLLDIR%
| %PAGESEL% = Controlling output format
| %PAGESEL% = Controlling output format

<!-- Controlling output order -->
<!-- Controlling output order -->
| ordermethod
| ordermethod
Line 167: Line 168:
<!-- General use and invocation syntax -->
<!-- General use and invocation syntax -->
| scrolling
| scrolling
| syntax
| syntax = General usage and invocation syntax
| DPL_count
| DPL_offset
| DPL_refresh
| DPL_fromTitle
| DPL_toTitle
| DPL_arg1
| DPL_arg2
| DPL_arg3
| DPL_arg4
| DPL_arg5 = General usage and invocation syntax
| #default = {{{1}}}
| #default = {{{1}}}
}}<!--
}}<!--


---- Second half of the URL (the anchor or no anchor)
---- If no
---- Note: # is replaced by &#35; the HTML entity for #
-->{{#switch: {{{1|}}}
-->{{#switch: {{{1|}}}

<!-- other DPL modules and syntax, link to respective pages, no anchor -->
| #dplvar
| #dplvar
| #dplnum
| #dplnum
Line 179: Line 193:
| #dplchapter
| #dplchapter
| syntax =
| syntax =

<!-- variables, link to #variables -->
| %NR%
| %NR%
| %PAGE%
| %PAGE%
Line 209: Line 225:
| %LASTTITLE%
| %LASTTITLE%
| %SCROLLDIR% = &#35;variables
| %SCROLLDIR% = &#35;variables

<!-- URL params, link to #URL parameters
| DPL_count
| DPL_offset
| DPL_refresh
| DPL_fromTitle
| DPL_toTitle
| DPL_arg1
| DPL_arg2
| DPL_arg3
| DPL_arg4
| DPL_arg5 = &#35;URL parameters

<!-- default is #{{{1}}} -->
| #default = &#35;{{{1}}}
| #default = &#35;{{{1}}}
}}|<!--
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude>
-- Link display text
-->{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude>
{{Documentation}}
{{Documentation}}

Revision as of 04:17, 4 April 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.

Example:

To include parameter values:

  • {{DPL|mode}} followed by [[=userformat]] gives mode=userformat (with redirect created from =userformat to mode)
  • Just doing {{DPL|mode}}=userformat is also fine, resulting in mode=userformat
[view | edit | purge]The above documentation is transcluded from Template:DPL/doc.