Difference between revisions of "DPL Example 008"
From FollowTheScore
Line 15: | Line 15: | ||
{{#tree: | {{#tree: | ||
− | {{DPL Example | + | * Pages in category '' DPL Example 007 main cat '' |
+ | {{#dpl:debug=1|category=DPL Example 007 main cat|notnamespace=Category|format=,\n** [[%PAGE%|%TITLE%]]}} | ||
+ | ** Pages in category '' DPL Example 007 sub cat 1'' | ||
+ | {{#dpl:debug=1|category=DPL Example 007 sub cat 1|notnamespace=Category|format=,\n*** [[%PAGE%|%TITLE%]]}} | ||
+ | ** Pages in category '' DPL Example 007 sub cat 2'' | ||
+ | {{#dpl:debug=1|category=DPL Example 007 sub cat 2|notnamespace=Category|format=,\n*** [[%PAGE%|%TITLE%]]}} | ||
}} | }} |
Revision as of 07:38, 11 March 2009
back to list of examples
Category tree
This is just for demonstration what can be done (there is a separate etension for that purpose). You can easily adapt the format, add conditions etc.
{{#tree: {{DPL Example 008 sub|DPL Example 007 main cat}} }}
The above DPL command produces the following output:
{{#tree:
- Pages in category DPL Example 007 main cat
- DPL Example 007 main page 1
- DPL Example 007 main page 2
- Pages in category DPL Example 007 sub cat 1
- Pages in category DPL Example 007 sub cat 2
}}