Template:Country data Netherlands/doc: Difference between revisions
meta>Patrick →Documentation: which calls Template:Country data Netherlands with first parameter "country flagnavy", which means that Template:Country flagnavy is called. As a result: |
meta>Patrick No edit summary |
||
| Line 44: | Line 44: | ||
}} | }} | ||
</pre> | </pre> | ||
Thus | Thus it contains are 5 data items. It addition it allows 4 parameters to be passed on. | ||
===Documentation=== | ===Documentation=== | ||
| Line 66: | Line 66: | ||
</pre> | </pre> | ||
which is a call of [[Template:Country showdata]], and interwiki links. That template automatically generates the documentation above, and transcludes [[Template:Country data Netherlands/doc]] for the additional documentation starting from "Other information". Four of the five data items are documented above. The 5th is the target of the link [[Royal Netherlands Navy]]; it is not mentioned because there is no separate flag. It is used by [[Template:Navy]], which calls [[Template:Country data Netherlands]] with first parameter "country flagnavy", which means that [[Template:Country flagnavy]] is called. As a result: | which is a call of [[Template:Country showdata]], and interwiki links. That template automatically generates the documentation above, and transcludes [[Template:Country data Netherlands/doc]] for the additional documentation starting from "Other information". Four of the five data items are documented above. The 5th is the target of the link [[Royal Netherlands Navy]]; it is not mentioned because there is no separate flag. It is used by [[Template:Navy]], which calls [[Template:Country data Netherlands]] with first parameter "country flagnavy", which means that [[Template:Country flagnavy]] is called. Effectively the call <code><nowiki>{{navy|Netherlands}}</nowiki></code> becomes | ||
<pre> | |||
{{ country flagnavy | |||
| alias = Netherlands | |||
| link alias-naval = Royal Netherlands Navy | |||
}} | |||
</pre> | |||
As a result: | |||
:{{xpdop3c|navy|Netherlands|d=}} | :{{xpdop3c|navy|Netherlands|d=}} | ||
Revision as of 14:15, 5 August 2010
Template:Template doc page viewed directly Country_data templates are also available for each of the twelve provinces of the Netherlands:
Included content
The include-part of the template is:
{{ {{{1}}}
| alias = Netherlands
| flag alias = Flag of the Netherlands.svg
| flag alias-air force = NL-VLAG-Luchtmacht.svg
| link alias-air force = Royal Netherlands Air Force
| link alias-naval = Royal Netherlands Navy
| size = {{{size|}}}
| name = {{{name|}}}
| altlink = {{{altlink|}}}
| variant = {{{variant|}}}
}}
Thus it contains are 5 data items. It addition it allows 4 parameters to be passed on.
Documentation
The content of Template:Country data Netherlands for rendering the page itself (the content except the includeonly part) is effectively:
{{ country showdata
| alias = Netherlands
| flag alias = Flag of the Netherlands.svg
| flag alias-air force = NL-VLAG-Luchtmacht.svg
| link alias-air force = Royal Netherlands Air Force
| link alias-naval = Royal Netherlands Navy
| redir1 = NLD
| redir2 = NED
| redir3 = The Netherlands
| related1 = Kingdom of the Netherlands
| related2 = Dutch Republic
}}
[[af:Sjabloon:Landdata Nederland]]
[[ml:ഫലകം:Country data Netherlands]]
[[sl:Predloga:Podatki države Nizozemska]]
which is a call of Template:Country showdata, and interwiki links. That template automatically generates the documentation above, and transcludes Template:Country data Netherlands/doc for the additional documentation starting from "Other information". Four of the five data items are documented above. The 5th is the target of the link Royal Netherlands Navy; it is not mentioned because there is no separate flag. It is used by Template:Navy, which calls Template:Country data Netherlands with first parameter "country flagnavy", which means that Template:Country flagnavy is called. Effectively the call {{navy|Netherlands}} becomes
{{ country flagnavy
| alias = Netherlands
| link alias-naval = Royal Netherlands Navy
}}
As a result: