Examples/Parameter: category (example 3): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (add category) |
imported>FrozenPlum m (Adjust the text for this, for when it works) |
||
Line 7: | Line 7: | ||
==Example== |
==Example== |
||
This |
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 ({{tt|ol}} tag) in two main headings (matching the categories specified). Under each heading, a sublist of pages appears, ordered by ''pagetouched''. |
||
<pre> |
<pre> |
||
{{#dpl: |
|||
|category=+Countries in Europe¦Countries in North America |
|||
|headingmode=ordered |
|||
|ordermethod=category,pagetouched |
|||
|noresultsheader=\n''no result returned'' |
|||
}} |
|||
⚫ | |||
</pre> |
</pre> |
||
==Result== |
==Result== |
||
<dpl> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</dpl> |
|||
⚫ | |||
<!-- 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. --> |
|||
⚫ | |||
<noinclude> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
|||
⚫ | |||
[[Category:Select by category-related criteria]] |
[[Category:Select by category-related criteria]] |
||
[[Category:Uses category parameter]] |
[[Category:Uses category parameter]] |
Revision as of 22:42, 27 April 2022
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 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 }}