Jump to content

Examples/Parameter: showcurid (example 2)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This syntax can be accomplished manually with similar functionality to showcurid where format is used, the \n* creates a new line with a bullet, then the MediaWiki magic word {{fullurl:}} creates the URL from the %PAGE% variable, and feeds the URL the %PAGEID% URL parameter as an external link.

Using a magic word (or parser function) in the {{#dpl:}} method of using DPL3 requires special syntax, the nested double curly {{ braces }} must be replaced with ²{ and respectively, and pipe | characters must be replaced with ¦ or {{!}}. The <span class="plainlinks"></span> wraps each link with an existing CSS class to prevent the external link icon from displaying.


Code
{{#dpl:
|category = Dessert examples
|format   = ,\n* <span class="plainlinks">[²{fullurl:%PAGE%¦curid=%PAGEID%}² %PAGE%]</span>
}}
Result


Cookies help us deliver our services. By using our services, you agree to our use of cookies.