Examples/Parameter: category (example 3): 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 preloads the example 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''' page, and if you enter a "subject" it becomes the section heading. --> ==Example== This lis...") |
imported>FrozenPlum m (formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 7:
==Example==
This
<pre>
}}
</dpl>▼
</pre>
==Result==
category=+Countries in Europe¦Countries in North America▼
headingmode=ordered▼
ordermethod=category,pagetouched▼
noresultsheader=\n''no result returned''▼
{{tempnote}}▼
[[Category:Uses noresultsheader parameter]]▼
[[Category:Uses ordermethod parameter]]▼
[[Category:Uses headingmode parameter]]▼
}}
▲{{tempnote}}<noinclude>
[[Category:Select by category-related criteria]]
[[Category:Uses category parameter]]
▲[[Category:Uses headingmode parameter]]
▲[[Category:Uses ordermethod parameter]]
▲[[Category:Uses noresultsheader parameter]]
[[Category:Issues]]
</noinclude>
|
Latest revision as of 06:52, 1 April 2023
Example
This will select pages in Category:Countries in Europe OR Category:Countries in North America, AND in Category:Part of NATO or a direct subcategory or a second level subcategory of the latter. The list will be ordered (ol tag) in two main headings (matching the categories specified). Under each heading, a sublist of pages appears, ordered by category,pagetouched.
{{#dpl: |category=+Countries in Europe¦Countries in North America |headingmode=ordered |ordermethod=category,pagetouched |noresultsheader=\n''no result returned'' }}
Result
{{#dpl: |category=+Countries in Europe¦Countries in North America |headingmode=ordered |ordermethod=category,pagetouched |noresultsheader=\nno result returned }}