Examples/Parameter: mode (example 1): 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== These create abbreviated lists of articles in :Category:Fruit example...") |
imported>FrozenPlum No edit summary |
||
Line 8:
These create abbreviated lists of articles in [[:Category:Fruit examples]], each formatted either using an ''ordered'' list (numbered), and ''unordered'' list (bulleted), or the ''none'' list style (no list item markers):
<pre>
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = ordered
<pre>
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = unordered
|count = 3
}}
<pre>
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = none
|count = 3
}}
==Result==
|titlematch = %a%
▲<dpl>
|nottitlematch = %pl%¦%go%
▲ category=Fruit examples
|mode = ordered
|count = 3
}}
▲</dpl>
|titlematch = %a%
▲<dpl>
|nottitlematch = %pl%¦%go%
▲ category=Fruit examples
|mode = unordered
|count = 3
}}
▲</dpl>
|titlematch = %a%
▲<dpl>
|nottitlematch = %pl%¦%go%
▲ category=Fruit examples
|mode = none
|count = 3
}}
▲</dpl>
▲|<dpl>
▲ category=Fruit examples
▲</dpl>
▲|<dpl>
▲ category=Fruit examples
▲ category=Fruit examples
▲|}
<noinclude>
[[Category:Setting the basic output mode]]
Line 62 ⟶ 66:
[[Category:Uses nottitlematch parameter]]
[[Category:Uses mode parameter]]
[[Category:Uses count parameter]]
</noinclude>
|
Revision as of 05:47, 23 April 2022
Example
These create abbreviated lists of articles in Category:Fruit examples, each formatted either using an ordered list (numbered), and unordered list (bulleted), or the none list style (no list item markers):
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = ordered }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = unordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = none |count = 3 }}
Result
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = ordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = unordered |count = 3 }}
{{#dpl: |category = Fruit examples |titlematch = %a% |nottitlematch = %pl%¦%go% |mode = none |count = 3 }}