Difference between revisions of "DPL Example 025"
From FollowTheScore
(New page: {{subst::DPL Example 001}}) |
|||
Line 1: | Line 1: | ||
− | {{Example| | + | {{Example|Show a single template parameter value of a specific page}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | To show the capital of a country called [[Nigunda]] you can use a very simple DPL statement. | ||
+ | The notation is so short that you can even use it as an integral part of your text: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{#dpl: | + | The capital of Nigunda is {{#dpl:title=Nigunda|include={Country}:capital}}. |
− | |||
− | |||
− | |||
− | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | And you get: The capital of Nigunda is {{#dpl:title=Nigunda|include={Country}:capital}}. | |
− | |||
− | The | ||
− | |||
− | |||
− | {{#dpl: | ||
− | |||
− | |||
− | |||
− | }} |
Revision as of 12:59, 23 June 2009
back to list of examples
Show a single template parameter value of a specific page
To show the capital of a country called Nigunda you can use a very simple DPL statement. The notation is so short that you can even use it as an integral part of your text:
The capital of Nigunda is {{#dpl:title=Nigunda|include={Country}:capital}}.
And you get: The capital of Nigunda is Bamitogoo.