Examples/Parameter: multisecseparators (example 2): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</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, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This example contains all the same elements as the prior example, only...") |
imported>FrozenPlum m (FrozenPlum moved page Controlling output format/Parameter: multisecseparators (example 2) to Examples/Parameter: multisecseparators (example 2): Simplifying how things are structured) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6:
==Example==
This example contains all the same elements as the prior example, only it will add the formatting of a new line
<pre>
Line 16:
|mode = userformat
|listseparators = ¶{¦class="wikitable sortable" ¶!colspan=3¦Fields cannot be formatted within the include¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-,¶¦-¶¦class="dpl-dark-background" colspan=3¦¶¦-,¶¦}
|secseparators = ¶¦
|multisecseparators = ,
}}
</pre>
Line 30:
|mode = userformat
|listseparators = ¶{¦class="wikitable sortable" ¶!colspan=3¦Fields cannot be formatted within the include¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-,¶¦-¶¦class="dpl-dark-background" colspan=3¦¶¦-,¶¦}
|secseparators = ¶¦
|multisecseparators = ,
}}
|
Latest revision as of 23:51, 31 March 2023
Example
This example contains all the same elements as the prior example, only it will add the formatting of a new line and asterisk (resulting in a bullet inserted before the page link).
{{#dpl: |category = Primary Module |nottitlematch = %volume%¦%page selection% |uses = Template:DPL Parameter |include = {DPL manual}:[[%PAGE%]],{dpl parameter}:name:purpose[50] |mode = userformat |listseparators = ¶{¦class="wikitable sortable" ¶!colspan=3¦Fields cannot be formatted within the include¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-,¶¦-¶¦class="dpl-dark-background" colspan=3¦¶¦-,¶¦} |secseparators = ¶¦¶* [[%PAGE%]],,¶¦class="dpl-orange-background"¦, |multisecseparators = ,¶¦-¶¦¶¦class="dpl-blue-background"¦ }}
Result
{{#dpl: |category = Primary Module |nottitlematch = %volume%¦%page selection% |uses = Template:DPL Parameter |include = {DPL manual}:%PAGE%,{dpl parameter}:name:purpose[50] |mode = userformat |listseparators = ¶{¦class="wikitable sortable" ¶!colspan=3¦Fields cannot be formatted within the include¶¦-¶!Page ¶!Name ¶!Purpose,¶¦-,¶¦-¶¦class="dpl-dark-background" colspan=3¦¶¦-,¶¦} |secseparators = ¶¦¶* %PAGE%,,¶¦class="dpl-orange-background"¦, |multisecseparators = ,¶¦-¶¦¶¦class="dpl-blue-background"¦ }}