Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

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:
{{Purgenote}}
{{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 </code>
|Page name to start with, value is passed to {{DPL|titlegt}}= (previously title>= ).
|-
|<code>DPL_toTitle </code>
|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.
 
‘’’Note'''Note:’’’''' The template does NOT produce any output—so it is practically invisible to the user. If you forget to create the template, however, the user will see a red link to the template.
 
 
Line 282 ⟶ 281:
 
 
==TableTracking outputCategories==
Built-in [[mw:Help:Tracking categories|tracking categories]] include:
 
{| class="wikitable"
We'd also like to point out that there are two special commands named <code>{{DPL|table}}</code> and <code>{{DPL|tablerow}}</code> which make it quite easy to produce output in table form.
!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==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.