Examples/Parameter: showcurid (example 2)
Appearance
< Examples
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