Template:DPL: Difference between revisions
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 |
|||
⚫ | |||
| DPL_count |
|||
| DPL_offset |
|||
| DPL_refresh |
|||
| DPL_fromTitle |
|||
| DPL_toTitle |
|||
| DPL_arg1 |
|||
| DPL_arg2 |
|||
| DPL_arg3 |
|||
| DPL_arg4 |
|||
⚫ | |||
| #default = {{{1}}} |
| #default = {{{1}}} |
||
}}<!-- |
}}<!-- |
||
---- Second half of the URL (the anchor or no anchor) |
|||
---- If no |
|||
---- Note: # is replaced by # 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% = #variables |
| %SCROLLDIR% = #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 = #URL parameters |
|||
<!-- default is #{{{1}}} --> |
|||
| #default = #{{{1}}} |
| #default = #{{{1}}} |
||
}}|<!-- |
|||
⚫ | |||
-- Link display text |
|||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
Revision as of 04:17, 4 April 2022
Formats, and where appropriate, creates a link to the proper dpl parameter, help page, or dpl parser function in the DPL Manual.
Example:
{{DPL|mode}}
gives mode{{DPL|mode|alternate label}}
gives alternate label{{DPL|mode|DPL format statement}}
gives DPL format statement{{DPL|#dplnum}}
gives #dplnum{{DPL|non-existing page}}
gives non-existing page
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.