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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{noedit}}</noinclude><!-- This is the example preloaded 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''' --> ==Example== This will select and output all Talk pages in Category:Number examples‏‎, without the 'Talk:' prepended to page names. The namespace 'Talk' refers to talk pages within the main namespace; all...")
 
imported>FrozenPlum
m (Formatting)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
==Example==
==Example==


This will select and output all Talk pages in [[:Category:Number examples‏‎]], without the 'Talk:' prepended to page names. The namespace 'Talk' refers to talk pages within the main namespace; all other talk namespaces, such as 'Help' or 'Guide' talk pages, would need the format 'namespace_talk'. Only talk pages that have been added to the category (by placing [[:Category:Number examples‏‎]] on the talk page) will be listed.
This will select and output all Talk pages in [[:Category:Number examples‏‎]], without the "Talk:" prepended to page names. The namespace "Talk" refers to talk pages within the main namespace; all other talk namespaces, such as "Help" or "Guide" talk pages, would need the format "''namespace''_talk". Only talk pages that have been added to the category (by placing [[:Category:Number examples‏‎]] on the talk page) will be listed.


<pre>
<pre>
Line 26: Line 26:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output format (examples)‎]]
[[Category:Control the way article names are displayed]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses namespace parameter]]
[[Category:Uses namespace parameter]]

Latest revision as of 06:03, 1 April 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 will select and output all Talk pages in Category:Number examples‏‎, without the "Talk:" prepended to page names. The namespace "Talk" refers to talk pages within the main namespace; all other talk namespaces, such as "Help" or "Guide" talk pages, would need the format "namespace_talk". Only talk pages that have been added to the category (by placing Category:Number examples‏‎ on the talk page) will be listed.

{{#dpl:
|category      = Number examples
|namespace     = Talk
|shownamespace = false
|count         = 1
}}

Result

{{#dpl: |category = Number examples |namespace = Talk |shownamespace = false |count = 1 }}