Anonymous user
General usage and invocation syntax: Difference between revisions
Add list of tracking categories.
imported>FrozenPlum No edit summary |
imported>FrozenPlum (Add list of tracking categories.) |
||
Line 1:
{{DPL manual|section=General usage and invocation syntax}}
{{tocright}}
Line 138 ⟶ 137:
Within a DPL3 statement, you can use some symbols (called ''variables'' in this manual) which are implicitly set by DPL3. Some variables can only be used in the header or footer.
{{#lst:Controlling output format|formatvariables}}
{| class="wikitable mw-collapsible" style="max-width:1200px;"
! Variable
! Description
|-
|<code>%SECTION%</code>
|The page name and its included section anchor <code>''Page Name#SectionName''</code>. Corresponds to <code>include=''#SectionName''</code> (when a page section is included by name). It currently appears that <code>%SECTION%</code> can only be used in <code>{{DPL|secseparators}}</code>.
|-
|<code>%PFUNC%</code>
|The name of the parser function, set when <code>{{DPL|include}}</code> is used to look for parser function calls in an article or result set. This variable requires a corresponding <code>include</code> statement and is not very robust, it cannot handle nested parser functions properly. <code>%PFUNC%</code> is only applicable to the template for which the parser function and its parameters are passed (under their normal names or numbers).
|-
|<code>%TAG%</code>
|The name of the parser extension (tag), set when <code>{{DPL|include}}</code> is used to look for parser extension (tag) calls an article or result set. This variable requires a corresponding <code>include</code> statement and is not very robust, it cannot handle nested parser functions properly. <code>%TAG%</code> is only applicable to the template for which the parser extension information is passed.
|-
|<code>%TAGBODY%</code>
|The body content (as-is, including line breaks) of the parser extension (tag), set when <code>{{DPL|include}}</code> is used to look for parser extension calls an article or result set. This variable requires a corresponding <code>include</code> statement and is not very robust, it cannot handle nested parser functions properly. <code>%TAGBODY%</code> is only applicable to the template for which the parser extension information is passed.
|}
Line 188 ⟶ 187:
! Description
|-
|<code>DPL_count</code>
|Limit number of pages to show, overwrites the values of the <code>{{DPL|count}}=</code> parameter.
|-
|<code>DPL_offset</code>
|Where to start, n<sup>th</sup> page, overwrites the value of the <code>{{DPL|offset}}=</code> parameter.
|-
|<code>DPL_refresh</code>
|{{note|'''Note:''' This feature was removed in DPL3 version 3.0.0.|error}}
|-
|<code>DPL_findTitle
|Page name to start with, value is passed to {{DPL|titlegt}}= (previously title>= ).
|-
|<code>DPL_toTitle
|Page name to end with, value is passed to {{DPL|titlegt}} (previously title>), which is needed for reverse scroll and which restricts the selection to articles with a page title less or equal to the specified value.
|-
|<code>DPL_fromTitle</code>
|Page name to start after, value is passed to {{DPL|titlelt}} (previously title<), which and restricts the selection to articles with a page title greater or equal to the specified value.
|-
|<code>DPL_scrolldir</code>
|direction of scroll (can be 'up' or 'down').
|}
Line 267 ⟶ 266:
This means that every page containing a DPL3 statement will automatically create a link to [[:Template:Extension DPL]]. You should create this Template in your wiki. We suggest that you copy the source code from [[:Template:Extension DPL|our version]]. The idea is that via this connection, you can easily find out which pages in a wiki contain DPL3 calls.
Line 282 ⟶ 281:
==
Built-in [[mw:Help:Tracking categories|tracking categories]] include:
{| class="wikitable"
!Category Name
!On Use of
|-
|[[:Category:Pages using DynamicPageList3 parser tag]]
|<code><nowiki><dpl></dpl></nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 Intersection parser tag]]
|<code><nowiki><DynamicPageList></DynamicPageList></nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 parser function]]
|<code><nowiki>{{#dpl:}}</nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 dplnum parser function]]
|<code><nowiki>{{#dplnum:}}</nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 dplvar parser function]]
|<code><nowiki>{{#dplvar:}}</nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 dplreplace parser function]]
|<code><nowiki>{{#dplreplace:}}</nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 dplchapter parser function]]
|<code><nowiki>{{#dplchapter:}}</nowiki></code>
|-
|[[:Category:Pages using DynamicPageList3 dplmatrix parser function]]
|<code><nowiki>{{#dplmatrix:}}</nowiki></code>
|}
'''Note:''' If the display of tracking categories is not desired on-page, see [[mw:Help:Tracking categories|tracking categories]] for information about using the <code><nowiki>__HIDDENCAT__</nowiki></code> [[mw:Help:Magic words#Behavior switches|magic word]].
==References==
|