Examples/Parameter: category (example 3): Difference between revisions

m
formatting
imported>FrozenPlum
(add category)
imported>FrozenPlum
m (formatting)
 
(2 intermediate revisions by the same user not shown)
Line 7:
==Example==
 
This list will outputselect pages in [[:Category:Countries in Europe]] {{tt|OR}} [[:Category:Countries in North America]], {{tt|AND}} in [[:Category:Part of NATO]] or a direct subcategory or a second level subcategory of the latter. The list will be ordered (OL{{tt|ol}} tag) and organized in two main items/headings, subcategories(matching willthe notcategories be used as a headingspecified). Under each item/heading you will see, a sublist of pages appears, ordered by their {{DPLtt|ordermethod}} value <code>ordermethod=category,pagetouched</code>, for the category used as the heading}}.
 
<pre>
<{{#dpl>:
|category=+Countries in Europe¦Countries in North America
|headingmode=ordered
|ordermethod=category,pagetouched
|noresultsheader=\n''no result returned''
}}
</dpl>
</pre>
 
==Result==
<dpl>
category=+Countries in Europe¦Countries in North America
headingmode=ordered
ordermethod=category,pagetouched
noresultsheader=\n''no result returned''
</dpl>
{{tempnote}}
<!-- at current, the opposite of what is stated (using - instead of +) seems to hold true and give results stated, perhaps either the description of how this is supposed to work is unclear or its example may need to be rewritten for clarity. -->
 
</{{#dpl>:
<noinclude>
|category=+Countries in Europe¦Countries in North America
|headingmode=ordered
|ordermethod=category,pagetouched
|noresultsheader=\n''no result returned''
}}
{{tempnote}}<noinclude>
[[Category:Select by category-related criteria]]
[[Category:Uses category parameter]]
Anonymous user