|
|
Line 2: |
Line 2: |
| | | |
| == Playground == | | == Playground == |
− | | + | ===List subcategories of matched categories=== |
− | You must create valid syntax for the gallery extension if you want to use it within DPL;
| + | {{#dpl:debug=1 |
− | add debug=5 at the beginning of your statement and check what the Template [[Template:Infobox Country or territory dpl]] produces. [[User:Gero|Gero]] 10:34, 4 April 2008 (CEST)
| + | |category = DPL Example 007 main cat |
− | ===1=== | + | |namespace = Category |
− | {{#arraydefine:x|
| + | |nottitlematch = Unknown family |
− | {{#dpl: | + | |resultsheader = The following %PAGES% surnames have been identified in photographs and transcribed documents.<ol> |
− | |category=DPL Manual | + | |format = ,²{sandbox¦%TITLE%}²\n,, |
− | |includepage=%1 | + | |resultsfooter = </ol> |
− | |randomcount=10 | + | |count = |
− | |format=,,°, | |
− | }}|°}}
| |
− | {{#arraysort:x|random}}
| |
− | {{#arrayindex:x|0}}
| |
− | | |
− | ===3=== | |
− | {{#dpl: | |
− | |category = African Union member states
| |
− | |includepage={Infobox Country or territory} dpl,
| |
− | |mode = userformat
| |
− | |format = «gallery»,%PAGE%\n,,«/gallery»
| |
| }} | | }} |
− |
| |
− | ===2===
| |
− | <DPL>
| |
− | category=Fictitious country
| |
− | includepage={Country} dpl,
| |
− | addpagecounter=true
| |
− | format=¶{|class=sortable ¶!Country ¶!Official Name ¶!Capital ¶!Dial Code,¶|-¶|[[%PAGE%]] (%COUNT%),,¶|}
| |
− | secseparators=¶|
| |
− | </DPL>
| |
− |
| |
− | <dpl>
| |
− | category=African Country
| |
− | includepage={African Country}:languages,{African Country}:goverment,{African Country}:area,{African Country}:population,{African Country}:gdp,{African Country}:independence_day
| |
− | mode=userformat
| |
− | listseparators=¶{|class=sortable ¶!No ¶! Name ¶! Languages ¶! Government ¶! Area ¶! Population ¶! GDP ¶! Independence Day , ¶|-¶|%NR%¶|[[%PAGE%]] , ,¶|}
| |
− | secseparators=¶|
| |
− | resultsheader=Number of data = %PAGES%
| |
− | includematch=/languages\s*=\s*.*1961.*/s
| |
− | </dpl>
| |
− |
| |
− | {{#dpl: namespace=Template|ordermethod=none}}
| |
− |
| |
− | == %TOTALPAGES% ==
| |
− |
| |
− | <nowiki>{{#dpl: category=African_Union_member_states¦Cities|resultsheader=%PAGES%|noresultsheader=none|mode=userformat</nowiki><br/>
| |
− | {{#dpl: category=African_Union_member_states¦Cities|resultsheader=%PAGES%|noresultsheader=none|mode=userformat}}
| |
− |
| |
− | <nowiki>{{#dpl: category=African_Union_member_states¦Cities|resultsheader=%TOTALPAGES%|noresultsheader=none|mode=userformat</nowiki><br/>
| |
− | {{#dpl: category=African_Union_member_states¦Cities|resultsheader=%TOTALPAGES%|noresultsheader=none|mode=userformat}}
| |
− |
| |
− | {{#dpl: category=Pseudo_Namespace:Foobars|resultsheader=%TOTALPAGES% %VERSION%|noresultsheader=none|mode=userformat}}
| |
− | [[Special:Call/:Call extension,Hello world!| good morning! ]]
| |
− |
| |
− | == <nowiki>{{PAGENAME}}</nowiki> DPL Invoking Example ==
| |
− |
| |
− | {{Test2}}
| |
The following 2 surnames have been identified in photographs and transcribed documents.