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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(A test to see if examples can be moved out of manual pages and put instead in subpages that can be preloaded into a new section in the user's sandbox (with links to this and to view this page, though I'm still working on templates to do that))
 
imported>FrozenPlum
m (FrozenPlum moved page Criteria for page selection/Parameter: category (example 1) to Examples/Parameter: category (example 1): Simplifying how things are structured)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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><!--
<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 work
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,
If you save this page, it saves as a new section on your '''User:Username/Sandbox''' 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:'''<br>
==Example==
This list will output pages that are in [[:Category:Countries in Africa]] '''OR''' [[:Category:Countries in United Kingdom]], '''AND''' are in [[:Category:Part of NATO]].

<pre>
<pre>
<dpl>
<dpl>
Line 31: Line 33:
|category=Part of NATO
|category=Part of NATO
}}
}}

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

Latest revision as of 22:37, 31 March 2023

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 that are in Category:Countries in Africa OR Category:Countries in United Kingdom, AND are in Category:Part of NATO.

<dpl>
category=Countries in Africa|Countries in United Kingdom
category=Part of NATO
</dpl>

 or

{{#dpl:
|category=Countries in Africa¦Countries in United Kingdom
|category=Part of NATO
}}

 or

{{#dpl:
|category=Countries in Africa{{!}}Countries in United Kingdom
|category=Part of NATO
}}

Result

{{#dpl: |category=Countries in Africa|Countries in United Kingdom |category=Part of NATO }}