Difference between revisions of "DPL Example 023"
From FollowTheScore
(New page: {{Example|Create a SORTED table of articles based on template parameters}} This is basically the same as DPL Example 001. DPL goes through all pages and initially builds an alphabet...) |
(No difference)
|
Revision as of 07:56, 20 June 2009
back to list of examples
Create a SORTED table of articles based on template parameters
This is basically the same as DPL Example 001.
DPL goes through all pages and initially builds an alphabetically sorted list of matching articles. We output the columns in different order (just for convenience) and thgen we use a small piece of javascript code to resort the table by column one.
{{#dpl: |category=Fictitious country |include={Country}:capital:name |table=,,Capital,Name }}
The above DPL command produces the following output:
Capital | %TITLE% | Official Name |
---|---|---|
Bamitogoo | Republic of Nigunda | |
Bamitogoo Test | Republic of Nigunda Test | |
Aaaabququque | Somango Island |