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

m
add my changes from testing site
imported>FrozenPlum
m (Make it clear here that the manual is being switched to being mostly in parser function method, since one of the complaints of the manual prior was that people didn’t know how to convert things easily because it was mostly done in parser extension method, when many more use cases need the parser function method. Also, I don’t want to have to explain or remind every example or page that the block quotes are not part of the output.)
imported>FrozenPlum
m (add my changes from testing site)
Line 1:
{{Purgenote}}
{{note|This page is in development, some content may be incorrect, outdated or otherwise misleading.|warn}}
{{DPL manual|section=General usage and invocation syntax}}
{{tocright}}
Line 99:
 
==Built-in variables==
Within a DPL statement, you can use some variables which are implicitly set by DPL. Some {{DPL|format|variables}} whichcan areonly implicitlybe setused byin DPLthe header or footer.
{{#lst:Controlling output format|formatvariables}}
Example: <code>%TITLE%</code>, <code>%PAGE%</code>
{| class="wikitable"
 
! Variable
Some {{DPL|format|variables}} can only be used in the header or footer, like e.g. <code>%PAGES%</code>, <code>%TOTALPAGES%</code>.
! Description
{{note|For a complete list of built-in variables, see [[Controlling output format#variables|format variables]].}}
|-
|%SECTION%
|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).
{{note|At this time, it appears that %SECTION% can only be used in <code>{{DPL|secseparators}}</code>.}}
|}
 
==URL parameters==
Line 243 ⟶ 248:
Calling <code><nowiki>http://mywebsite/mywiki/index.php?title=MyPopularArticles</nowiki></code> will give you the first 100 articles in the category. Adding <code>&DPL_offset=100</code> will give you the next one hundred articles. This mechanism can be used to create a generic page scroll feature—provided you can access the value of <code>DPL_offset</code> also in other templates outside DPL. And this is where the <code>{{DPL|execandexit}}</code> command comes in: it stores the URL parameters in a variable which can be accessed via <code>{{DPL|#dplvar}}</code>.
 
==References==
<references>
<ref name=hitcounters>This feature was completely removed in MediaWiki 1.25, following a request for comment. See [[Hit counters removed]].</ref>
</references>
[[Category:Manual]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.