Difference between revisions of "DPL Example 001"

From FollowTheScore
Jump to: navigation, search
(New page: == Create a table of articles based on template parameters == <pre><nowiki> {{#dpl: |category=Fictitious country |include={Country}:capital:name |table=,,Capital,Name }} </nowiki></pr...)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Create a table of articles based on template parameters ==
+
{{Example|Create a table of articles based on template parameters}}
 +
 
 +
Note that the sequence of the parameters is independant from their occurence within the template call.
 +
 
 +
You could also use numbered parameters instead of named parameters.
 +
 
 +
The first column ('Article') refers to the article which called the template is generated automatically.
 +
 
 +
Sequence is alphabetically. (See [[DPL Example 023]] for different sorting)
  
 
<pre><nowiki>
 
<pre><nowiki>

Latest revision as of 08:21, 20 June 2009

back to list of examples

Create a table of articles based on template parameters

Note that the sequence of the parameters is independant from their occurence within the template call.

You could also use numbered parameters instead of named parameters.

The first column ('Article') refers to the article which called the template is generated automatically.

Sequence is alphabetically. (See DPL Example 023 for different sorting)

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

The above DPL command produces the following output:


Content page 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