Examples/Parameter: mode (example 1): Difference between revisions

no edit summary
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>
<{{#dpl>:
|category category= Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = ordered
|}}
</dplpre>
<pre>
<{{#dpl>:
|category category= Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = unordered
|count = 3
}}
</dplpre>
<pre>
<{{#dpl>:
|category category= Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = none
|count = 3
}}
</dplpre>
 
==Result==
{| style="border-spacing: 10px 0;"
 
| align=center| In an <code><nowiki><ol>...</ol></nowiki></code> list: || align=center| In a <code><nowiki><ul>...</ul></nowiki></code> list: || align=center| In a <code><nowiki><br/></nowiki></code> list:
|<{{#dpl>:
|- style="vertical-align:middle;"
|category category= Fruit examples
|<pre><nowiki>
|titlematch = %a%
<dpl>
|nottitlematch = %pl%¦%go%
category=Fruit examples
|mode = ordered
titlematch=%a%
|count = 3
nottitlematch=%pl%|%go%
}}
mode=ordered
 
</dpl>
</{{#dpl>:
</nowiki></pre>
|category category= Fruit examples
|<pre><nowiki>
|titlematch = %a%
<dpl>
|nottitlematch = %pl%¦%go%
category=Fruit examples
|mode = unordered
titlematch=%a%
|count = 3
nottitlematch=%pl%|%go%
}}
mode=unordered
 
</dpl>
|<{{#dpl>:
</nowiki></pre>
|category category= Fruit examples
|<pre><nowiki>
|titlematch = %a%
<dpl>
|nottitlematch = %pl%¦%go%
category=Fruit examples
|mode = none
titlematch=%a%
|count = 3
nottitlematch=%pl%|%go%
}}
mode=none
</dpl>
</nowiki></pre>
|-
|<dpl>
category=Fruit examples
titlematch=%a%
nottitlematch=%pl%|%go%
mode=ordered
</dpl>
|<dpl>
category=Fruit examples
titlematch=%a%
nottitlematch=%pl%|%go%
mode=unordered
</dpl>
|<dpl>
category=Fruit examples
titlematch=%a%
nottitlematch=%pl%|%go%
mode=none
</dpl>
|}
<noinclude>
[[Category:Setting the basic output mode]]
Line 62 ⟶ 66:
[[Category:Uses nottitlematch parameter]]
[[Category:Uses mode parameter]]
[[Category:Uses count parameter]]
</noinclude>
Anonymous user