Difference between revisions of "DPL Example 007"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
 
{{Example|Show members of a category and of all its subcategories}}
 
{{Example|Show members of a category and of all its subcategories}}
  
We use two nested DPL statements.
+
We use a template which calls itself recursively.
 +
Thus arbitrary
  
 
<pre><nowiki>
 
<pre><nowiki>
Line 10: Line 11:
 
----
 
----
  
{{#dpl:
+
{{DPL Example 007 sub¦DPL Example 007 main cat}}
|category=DPL Example 007 main cat
 
|notnamespace=Category
 
}}
 
{{#dpl:
 
|category=DPL Example 007 main cat
 
|namespace=Category
 
|format=,²{DPL Example 007 sub¦%PAGE%}²,\n,
 
}}
 

Revision as of 21:53, 9 March 2009

back to list of examples

Show members of a category and of all its subcategories

We use a template which calls itself recursively. Thus arbitrary



The above DPL command produces the following output:


Template:DPL Example 007 sub¦DPL Example 007 main cat