Template:Country data Netherlands/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Andrwsc
rm redundant to centralized project documentation page.
meta>Patrick
rv, info on naval data was missing
Line 26: Line 26:
|-
|-
| [[Template:Country data Zeeland]] || {{flag|Zeeland}}
| [[Template:Country data Zeeland]] || {{flag|Zeeland}}
|}<noinclude>
|}
[[id:Templat:Country data Belanda/doc]]
 
</noinclude>
===Included content===
The include-part of the template is:
 
<pre>
{{ {{{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|}}}
}}
</pre>
Thus it contains five data items. It performs a call of a template of choice, and in addition it allows four parameters to be passed on to that template.
 
===Documentation===
The content of [[Template:Country data Netherlands]] for rendering the page itself (the content except the includeonly part) is effectively:
<pre>
{{ 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]]
</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. 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=}}
 
 
 
<noinclude>
[[id:Templat:Country data Belanda/doc]]</noinclude>

Revision as of 16:40, 5 August 2010

Template:Template doc page viewed directly Country_data templates are also available for each of the twelve provinces of the Netherlands:

Template:Country data Drenthe  Drenthe
Template:Country data Flevoland  Flevoland
Template:Country data Friesland  Friesland
Template:Country data Gelderland  Gelderland
Template:Country data Groningen  Groningen
Template:Country data Limburg (Netherlands)  Limburg
Template:Country data North Brabant  North Brabant
Template:Country data North Holland  North Holland
Template:Country data Overijssel  Overijssel
Template:Country data South Holland  South Holland
Template:Country data Utrecht  Utrecht
Template:Country data Zeeland  Zeeland

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 five data items. It performs a call of a template of choice, and in addition it allows four parameters to be passed on to that template.

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:

Template:Xpdop3c



id:Templat:Country data Belanda/doc