User:Patrick/Country data Netherlands
Template:Country data Netherlands:
There are 1251 templates like this, see Category:Country data templates. The naming scheme is "Template:Country data index".
Included content
[edit]The template is called from more than 5000 pages.
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|}}} }}
referring to
- alias: Netherlands
- flag alias: File:Flag of the Netherlands.svg
- flag alias-air force: File:NL-VLAG-Luchtmacht.svg
- link alias-air force: Royal Netherlands Air Force
- link alias-naval: Royal Netherlands Navy
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.
To retrieve a raw data item one can use parameter selection template Template:Pst name, for example:
{{country data Netherlands|#switch:flag alias}}
gives Flag of the Netherlands.svg.
Template:Country get alias2 contains {{#if:{{{variant|}}}|{{{{{{name|}}} alias-{{{variant}}}|{{{alias-{{{variant}}}}}}}}}|{{{{{{name|}}} alias|{{{alias}}}}}}}}
so apart from special cases it is the parameter selection template for parameter alias:
{{country get alias2|alias|abc}}
→ {{{alias}}}
Template:Getalias contains {{country data {{{1}}}|country get alias2|name={{{2|}}}|variant={{{variant|{{{3|}}}}}}}}
so apart from special cases it produces the value of alias stored in "Template:Country data {{{1}}}".
{{country data NED|country get alias2}}
→ Netherlands{{getalias|Netherlands}}
→ Netherlands
There is currently only one like this: Template:Get..
Template:Flag
[edit]Ca. 2500 templates alone link to Template:Flag. It effectively contains:
{{country data {{{1|}}} | country flag | name = {{{name|{{{1|}}}}}} | variant = {{{variant|{{{2|}}}}}} | size = {{{size|}}} }}
Effectively the call {{flag|Netherlands|n|v|size=s}}
becomes
{{country data Netherlands|country flag|name=n|variant=v|size=s}}
{{ country flag | 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 = s | name = n | altlink = | variant = v }}
Template:Country flag contains:
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]] </span>[[{{{alias}}}|{{{name}}}]]
So we get:
<span class="flagicon">[[File:Flag of the Netherlands.svg|s|border|alt=|link=]] </span>[[Netherlands|n]]
As a result:
{{flag|Netherlands}}
→ Netherlands{{flag|1=Netherlands|size=20px|name=n}}
→ n{{flag|1=Netherlands|size=40px|name=n}}
→ n{{flag|1=Netherlands|size=60px|name=n}}
→ n
The link to the image description page is suppressed. To go to the image decription page we can:
- in ExpandTemplates, copy the image tag from the expanded wikitext to the input box and disable "link=", and click the image in the preview.
Without name parameter, with {{flag|NED}}
we get a call to Template:Country data NED with name=NED, redirecting to Template:Country data Netherlands, so the difference is that we now have name=NED.
Without name parameter, with {{flagcountry|NED}}
we get a call to Template:Flagcountry containing
{{country data {{{1}}} | country flagcountry2 | variant = {{{variant|{{{2|}}}}}} | size = {{{size|}}} | name = {{{name|}}} }}
so here parameter 1 is not the default for name. This produces again a call to Template:Country data NED with name=NED, redirecting to Template:Country data Netherlands, now calling Template:Country flagcountry2, containing:
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]] </span>[[{{{alias}}}|{{#if:{{{name|}}}|{{{name}}}|{{{shortname alias|{{{alias}}}}}}}}]]
so now with as default for name the parameter alias.
Country codes: {{NLD}}
and {{NED}}
(which is a redirect to that) are equivalent to {{flag|Netherlands}}
.
Template:Navy
[edit]Template:Navy effectively contains:
{{country data {{{1}}} | country flagnavy | variant = {{{variant|{{{2|}}}}}} | size = {{{size|}}} | name = {{{name|}}} }}
Effectively the call {{navy|Netherlands|v|size=s|name=n}}
becomes
{{country data Netherlands|country flagnavy|variant=v|size=s|name=n}}
{{ country flagnavy | 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 = s | name = n | altlink = | variant = v }}
Template:Country flagnavy contains:
<span class="flagicon">[[File:{{{flag alias-naval-{{{variant}}}|{{{flag alias-{{{variant}}}|{{{flag alias-naval|{{{flag alias}}}}}}}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-naval-{{{variant}}}|{{{border-{{{variant}}}|{{{border-naval|{{{border|border}}}}}}}}}}}} |alt=|link=]] </span>[[{{{link alias-naval|{{{shortname alias|{{{alias}}}}}} Navy}}}{{#if: {{{name|}}} | {{!}}{{{name}}} }}]]
So we get:
<span class="flagicon">[[File:Flag of the Netherlands.svg|s|border|alt=|link=]] </span>[[Royal Netherlands Navy|n]]
As a result:
{{navy|Netherlands}}
→ Royal Netherlands Navy{{navy|1=Netherlands|size=20px|name=n}}
→ n{{navy|1=Netherlands|size=40px|name==n}}
→ Royal Netherlands Navy{{navy|1=Netherlands|size=60px|name=n}}
→ n
The link to the image description page is suppressed,
Documentation
[edit]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 on the template page, and transcludes Template:Country data Netherlands/doc for additional documentation starting from "Other information".
It gives, without the latter:
<tt>Template:{{PAGENAME}}</tt> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <tt>[[Template:flag|flag]]</tt>, <tt>[[Template:flagicon|flagicon]]</tt>, and others. {{ombox|text=This template is within the scope of '''[[Wikipedia:WikiProject Flag Template|WikiProject Flag Template]]''', a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project page.}} [[File:Flag of the Netherlands.svg|thumb|{{#ifexist: Flag of Netherlands | See also: [[Flag of Netherlands]] | }}]] ===Standard parameters=== <table class="wikitable"> <tr><th>Parameter name</th><th>Value</th><th>Meaning</th> </tr><tr> <td><tt>alias</tt></td> <td>{{#if: Netherlands | <tt>Netherlands</tt> | <span style="color:red">'''undefined!'''</span> }} <td>Main article name ([[Netherlands]])</td> </tr> {{#if: | <tr> <td><tt>shortname alias</tt></td> <td><tt>{{{shortname alias}}}</tt></td> <td>''(optional)'' Display name to be used for the wikilink, if <tt>alias</tt> is a disambiguated article name, for example</td> </tr> }} <tr> <td><tt>flag alias</tt></td> <td>{{#if: Flag of the Netherlands.svg | <tt>Flag of the Netherlands.svg</tt> | <span style="color:red">'''undefined!'''</span> }}</td> <td>Image name ([[:File:Flag of the Netherlands.svg]], shown above right)</td> </table> {{#if: | ===Flag variants=== {{#ifexist: Flag of Netherlands | {{details|Flag of Netherlands}} | }} <table class="wikitable"> <tr><th>Label</th><th>Flag image (40px)</th><th>Image name</th></tr> {{#if: | <tr><td><tt>{{{var1}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var1}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var1}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var2}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var2}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var2}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var3}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var3}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var3}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var4}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var4}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var4}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var5}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var5}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var5}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var6}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var6}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var6}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var7}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var7}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var7}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var8}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var8}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var8}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{var9}}}</tt></td><td align=center>[[File:{{{flag alias-{{{var9}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var9}}}}}}</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>naval</tt></td><td align=center>[[File:{{{flag alias-naval}}}|40px|border]]</td><td><tt>{{{flag alias-naval}}}</tt></td></tr> }}<!-- -->{{#if: NL-VLAG-Luchtmacht.svg | <tr><td><tt>air force</tt></td><td align=center>[[File:NL-VLAG-Luchtmacht.svg|40px|border]]</td><td><tt>NL-VLAG-Luchtmacht.svg</tt></td></tr> }}<!-- -->{{#if: | <tr><td><tt>army</tt></td><td align=center>[[File:{{{flag alias-army}}}|40px|border]]</td><td><tt>{{{flag alias-army}}}</tt></td></tr> }}<!-- --></table> }} {{#if: Royal Netherlands NavyNL-VLAG-Luchtmacht.svg | ===Military ensigns=== {{#if: | This template includes a naval ensign flag variant that can be used with [[Template:Navy]]: * <tt>{{navy|Netherlands}}</tt> → {{navy|Netherlands}} * <tt>{{flagicon|Netherlands|naval}}</tt> → {{flagicon|Netherlands|naval}} | {{#if: Royal Netherlands Navy | This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following: * <tt>{{navy|Netherlands}}</tt> → {{navy|Netherlands}} }}}} {{#if: NL-VLAG-Luchtmacht.svg | This template includes an air force ensign flag variant that can be used with [[Template:Air force]]: * <tt>{{air force|Netherlands}}</tt> → {{air force|Netherlands}} * <tt>{{flagicon|Netherlands|air force}}</tt> → {{flagicon|Netherlands|air force}} }} {{#if: | This template includes an army ensign flag variant that can be used with [[Template:Army]]: * <tt>{{army|Netherlands}}</tt> → {{army|Netherlands}} * <tt>{{flagicon|Netherlands|army}}</tt> → {{flagicon|Netherlands|army}} }} }} {{#if: NLD | ===Redirect aliases=== This template can also be used via an ''alias'' name (implemented as a redirect to this template):<!-- --><table class="wikitable"><!-- --><tr><th>Alias name</th><th>{{tlx|flag|''alias''}} output</th><th>{{tlx|flagcountry|''alias''}} output</th></tr> {{#if: NLD | <tr><td><tt>NLD (</tt><span class="plainlinks">[{{fullurl:Template:Country data NLD|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|NLD}}</td><td>{{flagcountry|NLD}}</td></tr> }}<!-- -->{{#if: NED | <tr><td><tt>NED (</tt><span class="plainlinks">[{{fullurl:Template:Country data NED|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|NED}}</td><td>{{flagcountry|NED}}</td></tr> }}<!-- -->{{#if: The Netherlands | <tr><td><tt>The Netherlands (</tt><span class="plainlinks">[{{fullurl:Template:Country data The Netherlands|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|The Netherlands}}</td><td>{{flagcountry|The Netherlands}}</td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{redir4}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir4}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir4}}}}}</td><td>{{flagcountry|{{{redir4}}}}}</td></tr> }}<!-- -->{{#if: | <tr><td><tt>{{{redir5}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir5}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir5}}}}}</td><td>{{flagcountry|{{{redir5}}}}}</td></tr> }}<!-- --></table> }} ===Example usage=== * <tt>{{flag|Netherlands}}</tt> → {{flag|Netherlands}} * <tt>{{flagicon|Netherlands}}</tt> → {{flagicon|Netherlands}}<!-- -->{{#if: | * <tt>{{flagcountry|Netherlands}}</tt> → {{flagcountry|Netherlands}} }} {{#if: | ====Using a flag variant==== * <tt>{{flag|Netherlands|{{{var1}}}}}</tt> → {{flag|Netherlands|{{{var1}}}}} * <tt>{{flagicon|Netherlands|{{{var1}}}}}</tt> → {{flagicon|Netherlands|{{{var1}}}}} }} {{#if: NLD | ====Using a redirect alias==== * <tt>{{flagicon|NLD}}</tt> → {{flagicon|NLD}} * <tt>{{flagcountry|NLD}}</tt> → {{flagcountry|NLD}} * <tt>{{flag|NLD}}</tt> → {{flag|NLD}} }} {{#if: Kingdom of the Netherlands | ===Related templates=== Please see the following related <tt>country_data</tt> templates: * [[Template:Country data Kingdom of the Netherlands]]<span style="position:absolute; left:32em;">{{flag|Kingdom of the Netherlands}}</span><!-- -->{{#if: Dutch Republic | * [[Template:Country data Dutch Republic]]<span style="position:absolute; left:32em;">{{flag|Dutch Republic}}</span> }}<!-- -->{{#if: | * [[Template:Country data {{{related3}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related3}}}}}</span> }}<!-- -->{{#if: | * [[Template:Country data {{{related4}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related4}}}}}</span> }}<!-- -->{{#if: | * [[Template:Country data {{{related5}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related5}}}}}</span> }}
expanded to:
<tt>Template:{{PAGENAME}}</tt> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <tt>[[Template:flag|flag]]</tt>, <tt>[[Template:flagicon|flagicon]]</tt>, and others. {{ombox|text=This template is within the scope of '''[[Wikipedia:WikiProject Flag Template|WikiProject Flag Template]]''', a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project page.}} [[File:Flag of the Netherlands.svg|thumb|{{#ifexist: Flag of Netherlands | See also: [[Flag of Netherlands]] | }}]] ===Standard parameters=== <table class="wikitable"> <tr><th>Parameter name</th><th>Value</th><th>Meaning</th> </tr><tr> <td><tt>alias</tt></td> <td>{{#if: Netherlands | <tt>Netherlands</tt> | <span style="color:red">'''undefined!'''</span> }} <td>Main article name ([[Netherlands]])</td> </tr> <tr> <td><tt>flag alias</tt></td> <td>{{#if: Flag of the Netherlands.svg | <tt>Flag of the Netherlands.svg</tt> | <span style="color:red">'''undefined!'''</span> }}</td> <td>Image name ([[:File:Flag of the Netherlands.svg]], shown above right)</td> </table> ===Military ensigns=== This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following: * <tt>{{navy|Netherlands}}</tt> → {{navy|Netherlands}} This template includes an air force ensign flag variant that can be used with [[Template:Air force]]: * <tt>{{air force|Netherlands}}</tt> → {{air force|Netherlands}} * <tt>{{flagicon|Netherlands|air force}}</tt> → {{flagicon|Netherlands|air force}} ===Redirect aliases=== This template can also be used via an ''alias'' name (implemented as a redirect to this template):<!-- --><table class="wikitable"><!-- --><tr><th>Alias name</th><th>{{tlx|flag|''alias''}} output</th><th>{{tlx|flagcountry|''alias''}} output</th></tr> <tr><td><tt>NLD (</tt><span class="plainlinks">[{{fullurl:Template:Country data NLD|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|NLD}}</td><td>{{flagcountry|NLD}}</td></tr><!-- --><tr><td><tt>NED (</tt><span class="plainlinks">[{{fullurl:Template:Country data NED|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|NED}}</td><td>{{flagcountry|NED}}</td></tr><!-- --><tr><td><tt>The Netherlands (</tt><span class="plainlinks">[{{fullurl:Template:Country data The Netherlands|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|The Netherlands}}</td><td>{{flagcountry|The Netherlands}}</td></tr><!-- --><!-- --><!-- --></table> ===Example usage=== * <tt>{{flag|Netherlands}}</tt> → {{flag|Netherlands}} * <tt>{{flagicon|Netherlands}}</tt> → {{flagicon|Netherlands}}<!-- --> ====Using a redirect alias==== * <tt>{{flagicon|NLD}}</tt> → {{flagicon|NLD}} * <tt>{{flagcountry|NLD}}</tt> → {{flagcountry|NLD}} * <tt>{{flag|NLD}}</tt> → {{flag|NLD}} ===Related templates=== Please see the following related <tt>country_data</tt> templates: * [[Template:Country data Kingdom of the Netherlands]]<span style="position:absolute; left:32em;">{{flag|Kingdom of the Netherlands}}</span> * [[Template:Country data Dutch Republic]]<span style="position:absolute; left:32em;">{{flag|Dutch Republic}}</span>
rendered as:
Template:Patrick/Country data Netherlands is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.
This template is within the scope of WikiProject Flag Template, a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project page. |
Standard parameters
[edit]Parameter name | Value | Meaning |
---|---|---|
alias | Netherlands | Main article name (Netherlands) |
flag alias | Flag of the Netherlands.svg | Image name (File:Flag of the Netherlands.svg, shown above right) |
Military ensigns
This nation's naval ensign is the same as its national flag, so Template:Navy produces the following:
- {{navy|Netherlands}} → Royal Netherlands Navy
This template includes an air force ensign flag variant that can be used with Template:Air force:
- {{air force|Netherlands}} → Royal Netherlands Air Force
- {{flagicon|Netherlands|air force}} →
Redirect aliases
This template can also be used via an alias name (implemented as a redirect to this template):
Alias name | {{flag|alias}} output | {{flagcountry|alias}} output |
---|---|---|
NLD (view) | NLD | Netherlands |
NED (view) | NED | Netherlands |
The Netherlands (view) | The Netherlands | Netherlands |
Example usage
[edit]- {{flag|Netherlands}} → Netherlands
- {{flagicon|Netherlands}} →
Using a redirect alias
- {{flagicon|NLD}} →
- {{flagcountry|NLD}} → Netherlands
- {{flag|NLD}} → NLD
Related templates
Please see the following related country_data templates: