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 a template which calls itself recursively.
+
Ideally we would like to use a template which calls itself recursively. But MediaWEiki tries to be clever and blocks such calls. So we have to use a separate template for each level.
Thus arbitrary
 
  
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 21:59, 9 March 2009

back to list of examples

Show members of a category and of all its subcategories

Ideally we would like to use a template which calls itself recursively. But MediaWEiki tries to be clever and blocks such calls. So we have to use a separate template for each level.



The above DPL command produces the following output:


Pages in category     DPL Example 007 main cat

    Pages in subcategory     DPL Example 007 sub cat 1

      Pages in subcategory     DPL Example 007 sub cat 2