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

From DynamicPageList3 Manual
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
(add category)
Line 29: Line 29:


<noinclude>
<noinclude>
[[Category:Uses noresultsheader parameter]]
[[Category:Select by category-related criteria]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses headingmode parameter]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses headingmode parameter]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses noresultsheader parameter]]
[[Category:Issues]]
[[Category:Issues]]
</noinclude>
</noinclude>

Revision as of 03:15, 9 April 2022

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This list will output pages in Category:Countries in Europe OR Category:Countries in North America, AND Category:Part of NATO or a direct subcategory or a second level subcategory of the latter. The list will be ordered (OL tag) and organized in main items/headings, subcategories will not be used as a heading). Under each item/heading you will see a sublist of pages ordered by their ordermethod value ordermethod=category,pagetouched, for the category used as the heading.

<dpl>
 category=+Countries in Europe¦Countries in North America
 headingmode=ordered
 ordermethod=category,pagetouched
 noresultsheader=\n''no result returned''
</dpl>

Result

<dpl>

category=+Countries in Europe¦Countries in North America
headingmode=ordered
ordermethod=category,pagetouched
noresultsheader=\nno result returned

</dpl>

This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.