|
|
| Line 26: |
Line 26: |
| |- | | |- |
| | [[Template:Country data Zeeland]] || {{flag|Zeeland}} | | | [[Template:Country data Zeeland]] || {{flag|Zeeland}} |
| |} | | |}<noinclude> |
| | | [[id:Templat:Country data Belanda/doc]] |
| ===Included content===
| | </noinclude> |
| 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> | |