|
|
| Line 1: |
Line 1: |
| <includeonly>__NOEDITSECTION__ | | <includeonly>__NOEDITSECTION__ |
| {{documentation|content=<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.
| | <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 alias|Unknown.png}}}|thumb]] |
| | |
| [[File:{{{flag alias|Flag of None.svg}}}|thumb|{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }}]] | |
| ===Standard parameters=== | | ===Standard parameters=== |
| <table class="wikitable"> | | <table class="wikitable"> |
| Line 13: |
Line 11: |
| <td>Main article name ([[{{{alias}}}]])</td> | | <td>Main article name ([[{{{alias}}}]])</td> |
| </tr> | | </tr> |
| {{#if: {{{shortname alias|}}} |
| |
| <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> | | <tr> |
| <td><tt>flag alias</tt></td> | | <td><tt>flag alias</tt></td> |
| Line 26: |
Line 17: |
| </table> | | </table> |
| {{#if: {{{var1|{{{flag alias-naval|}}}}}} | | | {{#if: {{{var1|{{{flag alias-naval|}}}}}} | |
| ===Flag variants===
| |
| {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }}
| |
| <table class="wikitable">
| |
| <tr><th>Label</th><th>Flag image (40px)</th><th>Image name</th></tr>
| |
| {{#if: {{{var1|}}} | <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: {{{var2|}}} | <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: {{{var3|}}} | <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: {{{var4|}}} | <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: {{{var5|}}} | <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: {{{var6|}}} | <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: {{{var7|}}} | <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: {{{var8|}}} | <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: {{{var9|}}} | <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: {{{flag alias-naval|}}} | <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: {{{flag alias-air force|}}} | <tr><td><tt>air force</tt></td><td align=center>[[File:{{{flag alias-air force}}}|40px|border]]</td><td><tt>{{{flag alias-air force}}}</tt></td></tr> }}<!--
| |
| -->{{#if: {{{flag alias-army|}}} | <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: {{{flag alias-naval|}}}{{{flag alias-air force|}}}{{{flag alias-army|}}} |
| |
| ===Military ensigns===
| |
| {{#if: {{{flag alias-naval|}}} |
| |
| This template includes a naval ensign flag variant that can be used with [[Template:Navy]]:
| |
| * <tt><nowiki>{{navy|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{navy|{{{templatename|{{{alias}}}}}}}}
| |
| * <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|naval}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|naval}}
| |
| }}
| |
| {{#if: {{{flag alias-air force|}}} |
| |
| This template includes an air force ensign flag variant that can be used with [[Template:Air force]]:
| |
| * <tt><nowiki>{{air force|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{air force|{{{templatename|{{{alias}}}}}}}}
| |
| * <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|air force}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|air force}}
| |
| }}
| |
| {{#if: {{{flag alias-army|}}} |
| |
| This template includes an army ensign flag variant that can be used with [[Template:Army]]:
| |
| * <tt><nowiki>{{army|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{army|{{{templatename|{{{alias}}}}}}}}
| |
| * <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|army}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|army}}
| |
| }} }}
| |
| {{#if: {{{redir1|}}} | | | {{#if: {{{redir1|}}} | |
| ===Redirect aliases=== | | ===Redirect aliases=== |
| Line 78: |
Line 34: |
| -->{{#if: {{{shortname alias|}}} | | | -->{{#if: {{{shortname alias|}}} | |
| * <tt><nowiki>{{flagcountry|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{templatename|{{{alias}}}}}}}} }} | | * <tt><nowiki>{{flagcountry|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{templatename|{{{alias}}}}}}}} }} |
| {{#if: {{{var1|}}} |
| |
| ====Using a flag variant====
| |
| * <tt><nowiki>{{flag|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></tt> → {{flag|{{{templatename|{{{alias}}}}}}|{{{var1}}}}}
| |
| * <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|{{{var1}}}}}
| |
| }}
| |
| {{#if: {{{redir1|}}} | | | {{#if: {{{redir1|}}} | |
| ====Using a redirect alias==== | | ====Using a redirect alias==== |
| Line 89: |
Line 40: |
| * <tt><nowiki>{{flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flag|{{{redir1}}}}} | | * <tt><nowiki>{{flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flag|{{{redir1}}}}} |
| }} | | }} |
| {{#if: {{{related1|}}} |
| |
| ===Related templates===
| |
| Please see the following related <tt>country_data</tt> templates:
| |
| * [[Template:Country data {{{related1}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related1}}}}}</span><!--
| |
| -->{{#if: {{{related2|}}} |
| |
| * [[Template:Country data {{{related2}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related2}}}}}</span> }}<!--
| |
| -->{{#if: {{{related3|}}} |
| |
| * [[Template:Country data {{{related3}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related3}}}}}</span> }}<!--
| |
| -->{{#if: {{{related4|}}} |
| |
| * [[Template:Country data {{{related4}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related4}}}}}</span> }}<!--
| |
| -->{{#if: {{{related5|}}} |
| |
| * [[Template:Country data {{{related5}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related5}}}}}</span> }}<!--
| |
| -->}}
| |
| {{#ifexist:{{FULLPAGENAME}}/doc | | | {{#ifexist:{{FULLPAGENAME}}/doc | |
| ===Other information=== | | ===Other information=== |
| {{{{FULLPAGENAME}}/doc}} | | {{{{FULLPAGENAME}}/doc}} |
| }}[[Category:Country data templates|{{{templatename|{{{alias}}}}}}]] | | }}[[Category:Country data templates|{{{templatename|{{{alias}}}}}}]] |
| {{#if:{{{shortname alias|}}}
| | |
| |[[Category:Country data templates with distinct shortname|{{{templatename|{{{alias}}}}}}]]
| | This is the documentation for '''Template:{{PAGENAME}}'''. It is automatically generated by [[Template:Country showdata]].<br/>Please {{purge|purge the cache}} after making any changes to this template.{{#ifexist:{{FULLPAGENAME}}/doc |
| }}{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}|
| |
| |{{#ifeq: {{PAGENAME}}|Country data {{{shortname alias}}}|
| |
| |[[Category:Country data templates with distinct template name]]
| |
| }}
| |
| }}
| |
| |link box=This is the documentation for '''Template:{{PAGENAME}}'''. It is automatically generated by [[Template:Country showdata]].<br/>Please {{purge|purge the cache}} after making any changes to this template.{{#ifexist:{{FULLPAGENAME}}/doc
| |
| |<br/>This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of [[WP:CAT|categories]], [[WP:ILL|interlanguage links]] and documentation specific to this template. | | |<br/>This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of [[WP:CAT|categories]], [[WP:ILL|interlanguage links]] and documentation specific to this template. |
| |{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop | | |{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop |