Difference between revisions of "Sandbox"

From FollowTheScore
Jump to: navigation, search
(Playground)
(test)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
feel free to play around
+
feel free to play around; see also [[Template:Sandbox]].
  
 
== Playground ==
 
== Playground ==
 
+
===List subcategories of matched categories===
You must create valid syntax for the gallery extension if you want to use it within DPL;
+
{{sandbox|DPL Example 007 main cat}}
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)
 
 
 
{{#dpl: |category=DPL| ordermethod=none}}
 
 
 
{{#dpl:
 
  |category = African Union member states
 
  |includepage={Infobox Country or territory} dpl,
 
  |mode = userformat
 
  |format = «gallery»,%PAGE%\n,,«/gallery»
 
}}
 
 
 
<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! ]]
 

Latest revision as of 07:06, 28 March 2010

feel free to play around; see also Template:Sandbox.

Playground

List subcategories of matched categories

{{Sandbox|DPL Example 007 main cat}}
DPL Example 007 main cat (2 subcategories).
  1. {{Sandbox2|DPL Example 007 sub cat 1}}
    DPL Example 007 sub cat 1

    Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

  2. {{Sandbox2|DPL Example 007 sub cat 2}}
    DPL Example 007 sub cat 2

    Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.