Difference between revisions of "DPL Example 002"

From FollowTheScore
Jump to: navigation, search
 
Line 7: Line 7:
 
  |category=Fictitious country
 
  |category=Fictitious country
 
  |include={Country}:capital:name
 
  |include={Country}:capital:name
  |table=class="sortable",Country,Capital,Name
+
  |table=class="wikitable sortable",Country,Capital,Name
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 18: Line 18:
 
  |category=Fictitious country
 
  |category=Fictitious country
 
  |include={Country}:capital:name
 
  |include={Country}:capital:name
  |table=class=sortable,Country,Capital,Name
+
  |table=class="wikitable sortable",Country,Capital,Name
 
}}
 
}}

Latest revision as of 21:48, 22 August 2012

back to list of examples

Create a sortable table of articles based on template parameters

We define "Country" as the column header for the first Column and make the table sortable.

{{#dpl:
 |category=Fictitious country
 |include={Country}:capital:name
 |table=class="wikitable sortable",Country,Capital,Name
}}

The above DPL command produces the following output:


Country Capital Name
DPL Example 007 main page 1
Nigunda Bamitogoo Republic of Nigunda
Nigunda Test Bamitogoo Test Republic of Nigunda Test
Somango Aaaabququque Somango Island