Template:DPL: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Add variables for use)
imported>FrozenPlum
m (Add variables)
Line 32: Line 32:
| rowsize
| rowsize
| rowcolformat
| rowcolformat
| variables = Controlling output format
| variables
| %NR%

| %PAGE%
| %PAGEID%
| %IMAGE%
| %IMAGESEL%
| %TITLE%
| %NAMESPACE%
| %SIZE%
| %SIZEFS%
| %COUNT%
| %DATE%
| %USER%
| %CONTRIBUTOR%
| %CONTRIBUTION%
| %CONTRIB%
| %CATLIST%
| %CATBULLETS%
| %CATNAMES%
| %REVISION%
| %EXTERNALLINK%
| %PAGES%
| %TOTALPAGES%
| %VERSION%
| %DPLTIME%
| %FIRSTNAMESPACE%
| %FIRSTTITLE%
| %LASTNAMESPACE%
| %LASTTITLE%
| %SCROLLDIR%
| %PAGESEL% = Controlling output format
<!-- Controlling output order -->
<!-- Controlling output order -->
| ordermethod
| ordermethod
Line 140: Line 169:
| syntax = General usage and invocation syntax
| syntax = General usage and invocation syntax
| #default = {{{1}}}
| #default = {{{1}}}
}}<!--
}}{{#switch: {{{1|test}}}

---- If no
-->{{#switch: {{{1|}}}
| #dplvar
| #dplvar
| #dplnum
| #dplnum
Line 147: Line 179:
| #dplchapter
| #dplchapter
| syntax =
| syntax =
| %NR%
| %PAGE%
| %PAGEID%
| %IMAGE%
| %PAGESEL%
| %IMAGESEL%
| %TITLE%
| %NAMESPACE%
| %SIZE%
| %SIZEFS%
| %COUNT%
| %DATE%
| %USER%
| %CONTRIBUTOR%
| %CONTRIBUTION%
| %CONTRIB%
| %CATLIST%
| %CATBULLETS%
| %CATNAMES%
| %REVISION%
| %EXTERNALLINK%
| %PAGES%
| %TOTALPAGES%
| %VERSION%
| %DPLTIME%
| %FIRSTNAMESPACE%
| %FIRSTTITLE%
| %LASTNAMESPACE%
| %LASTTITLE%
| %SCROLLDIR% = &#35;variables
| #default = &#35;{{{1}}}
| #default = &#35;{{{1}}}
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude>
}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude>

Revision as of 07:15, 3 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.