Anonymous user
Examples/Parameter: format (example 4): Difference between revisions
Examples/Parameter: format (example 4) (view source)
Revision as of 21:53, 25 April 2022
, 2 years agoI see soooo many fixes to my wording and examples that need doing
imported>FrozenPlum m (Update to parser function syntax because again, it contains a complication that needs to be well understood in order to be used successfully. The general use and syntax page only describes escaping being necessary for "extensions", it is also required for gallery syntax.) |
imported>FrozenPlum m (I see soooo many fixes to my wording and examples that need doing) |
||
Line 1:
<noinclude>{{noedit}}</noinclude><!--
This is the example preloaded for testing, press "Show Preview" to see
the example working (at the bottom of the page). If you save this page,
Line 6:
==Example==
This would list items in the ''File'' namespace
'''Note:''' When DPL3 parser function syntax is used to create a gallery, the <code><</code> and <code>></code> characters must be replaced by <code>«</code> and <code>»</code> respectively (to escape them).
<pre>
{{#dpl:
|namespace = File
|count = 3▼
|format = «gallery mode="packed" widths="80px" heights="80px"»,%PAGE%\n,,«/gallery»
▲|count = 3
}}
</pre>
Line 20 ⟶ 23:
{{#dpl:
|namespace = File
|count = 3▼
|format = «gallery mode="packed" widths="80px" heights="80px"»,%PAGE%\n,,«/gallery»
▲|count = 3
}}
<noinclude>
|