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

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: 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):
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 = Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = ordered
}}
</pre>
<pre>
{{#dpl:
|category = Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = unordered
|count = 3
}}
</pre>
<pre>
{{#dpl:
|category = Fruit examples
|titlematch = %a%
|nottitlematch = %pl%¦%go%
|mode = none
|count = 3
}}
</pre>


==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 = 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 = 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 = 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>
<noinclude>
[[Category:Setting the basic output mode]]
[[Category:Setting the basic output mode]]
Line 62: Line 66:
[[Category:Uses nottitlematch parameter]]
[[Category:Uses nottitlematch parameter]]
[[Category:Uses mode parameter]]
[[Category:Uses mode parameter]]
[[Category:Uses count parameter]]
</noinclude>
</noinclude>