Changes

Jump to: navigation, search

DPL Extension Testing Ground

887 bytes added, 11:44, 25 October 2014
Summarizing notes from DPL documentation.
This page is used for testing the DPL extension (it should be an orphan page). See [http://semeb.com/dpldemo/index.php?title=DPL:Manual DPL Manual].
 
==DPL Cheatsheet==
 
===Invocation===
We can use <nowiki><dpl></nowiki> or <nowiki>{{ #dpl: ... }}</nowiki> to invoke DPL (Dynamic Page Lists). The latter is more powerful:
* Magic words like <nowiki>{{PAGENAME}}</nowiki> or <nowiki>{{CURRENTDAY}}</nowiki> '''can be used'''.
* Template calls like <nowiki>{{{some template}}}</nowiki> '''can be used''' as parameters.
* Parser function calls like <nowiki>{{#if:...|...|...}}</nowiki> '''can be used''' within arguments.
 
===Special characters and escaping===
Wiki characters must be escaped in the DPL arguments:
* Use <nowiki>{{!}}</nowiki> (ie. [[:Template:!]]) or the special symbol ¦ to escape the pipe character.
* ¶ must be used to insert a linefeed character where linefeeds are required by the wiki formatting.
 
Example of using an escape pipe character:
<pre>
{{#dpl:
|category = cat1¦cat2
|linksto = {{{1}}}
}}
</pre>
==Using Titlematch==
2,804
edits

Navigation menu