Template:Country showdata: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>__NOEDITSECTION__ {{documentation|content=<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used in..."
[[Templates]]>S.A. Julio m (fix grammar) |
[[Templates]]>ISUtahraptor (Created page with "<includeonly>__NOEDITSECTION__ {{documentation|content=<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used in...") |
||
Line 1: | Line 1: | ||
<includeonly>__NOEDITSECTION__ | <includeonly>__NOEDITSECTION__ | ||
{{documentation|content=<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <code>[[Template:flag| | {{documentation|content=<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <code>[[Template:flag|Flag]]</code>, <code>[[Template:Flag icon|Flag icon]]</code>, and others. | ||
[[File:{{{flag alias|Flag of None.svg}}}|thumb|{{#if:{{{flag link|}}} | See also: {{{flag link}}} | {{#ifexist: Flag of {{{alias}}} | See also: Flag of {{{alias}}} | }} }}]] | |||
[[File:{{{flag alias|Flag of None.svg}}}|thumb|{{#if:{{{flag link|}}} | See also: | |||
===Standard parameters=== | ===Standard parameters=== | ||
<table class="wikitable"> | <table class="wikitable"> | ||
Line 11: | Line 9: | ||
<td><code>alias</code></td> | <td><code>alias</code></td> | ||
<td>{{#if: {{{alias|}}} | <code>{{{alias}}}</code> | <span style="color:red">'''undefined!'''</span> }} | <td>{{#if: {{{alias|}}} | <code>{{{alias}}}</code> | <span style="color:red">'''undefined!'''</span> }} | ||
<td>Main article name ( | <td>Main article name ({{{alias}}})</td> | ||
</tr> | </tr> | ||
{{#if: {{{shortname alias|}}} | | {{#if: {{{shortname alias|}}} | | ||
Line 25: | Line 23: | ||
<td>Image name ([[:File:{{{flag alias}}}]], shown on right)</td> | <td>Image name ([[:File:{{{flag alias}}}]], shown on right)</td> | ||
</tr></table> | </tr></table> | ||
{{#if: {{{var1|{{{flag alias-naval| | {{#if: {{{var1|{{{flag alias-naval|}}}}}} | | ||
===Flag variants=== | ===Flag variants=== | ||
{{#if:{{{flag link|}}} | {{details|{{{flag link}}}}} | {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }} }} | {{#if:{{{flag link|}}} | {{details|{{{flag link}}}}} | {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }} }} | ||
Line 72: | Line 70: | ||
-->{{#if: {{{var40|}}} | <tr><td><code>{{{var40}}}</code></td><td style="text-align:center;">[[File:{{{flag alias-{{{var40}}}}}}|40px|{{{border-{{{var40}}}|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-{{{var40}}}}}}</code></td></tr> }}<!-- | -->{{#if: {{{var40|}}} | <tr><td><code>{{{var40}}}</code></td><td style="text-align:center;">[[File:{{{flag alias-{{{var40}}}}}}|40px|{{{border-{{{var40}}}|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-{{{var40}}}}}}</code></td></tr> }}<!-- | ||
-->{{#if: {{{flag alias-naval|}}} | <tr><td><code>naval</code></td><td style="text-align:center;">[[File:{{{flag alias-naval}}}|40px|{{{border-naval|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-naval}}}</code></td></tr> }}<!-- | -->{{#if: {{{flag alias-naval|}}} | <tr><td><code>naval</code></td><td style="text-align:center;">[[File:{{{flag alias-naval}}}|40px|{{{border-naval|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-naval}}}</code></td></tr> }}<!-- | ||
-->{{#if: {{{flag alias-air force|}}} | <tr><td><code>air force</code></td><td style="text-align:center;">[[File:{{{flag alias-air force}}}|40px|{{{border-air force|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-air force}}}</code></td></tr> }}<!-- | -->{{#if: {{{flag alias-air force|}}} | <tr><td><code>air force</code></td><td style="text-align:center;">[[File:{{{flag alias-air force}}}|40px|{{{border-air force|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-air force}}}</code></td></tr> }}<!-- | ||
-->{{#if: {{{flag alias-army|}}} | <tr><td><code>army</code></td><td style="text-align:center;">[[File:{{{flag alias-army}}}|40px|{{{border-army|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-army}}}</code></td></tr> }}<!-- | -->{{#if: {{{flag alias-army|}}} | <tr><td><code>army</code></td><td style="text-align:center;">[[File:{{{flag alias-army}}}|40px|{{{border-army|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-army}}}</code></td></tr> }}<!-- | ||
--></table> | --></table> | ||
}} | }} | ||
{{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{link alias-air | {{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{link alias-air force|}}}{{{flag alias-army|}}}{{{link alias-army|}}} | | ||
===Military ensigns=== | ===Military ensigns=== | ||
{{#if: {{{flag alias-naval|}}} | | {{#if: {{{flag alias-naval|}}} | | ||
This template includes a naval ensign flag variant that can be used with [[Template:Navy]]: | This template includes a naval ensign flag variant that can be used with [[Template:Navy]]: | ||
* <code><nowiki>{{ | * <code><nowiki>{{Navy|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Navy|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|naval}}</nowiki></code> → {{Flag icon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|naval}} | ||
| {{#if: {{{link alias-naval|}}} | | | {{#if: {{{link alias-naval|}}} | | ||
This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following: | This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following: | ||
* <code><nowiki>{{ | * <code><nowiki>{{Navy|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{navy|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
}}}} | }}}} | ||
{{#if: {{{flag alias-air force|}}} | | |||
This template includes an air force ensign flag variant that can be used with [[Template:Air force]]: | This template includes an air force ensign flag variant that can be used with [[Template:Air force]]: | ||
* <code><nowiki>{{ | * <code><nowiki>{{Air force|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|air force}}</nowiki></code> → {{Flag icon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|air force}} | ||
| {{#if: {{{link alias-air force|}}} | | | {{#if: {{{link alias-air force|}}} | | ||
This nation's air force ensign is the same as its national flag, so [[Template:Air force]] produces the following: | This nation's air force ensign is the same as its national flag, so [[Template:Air force]] produces the following: | ||
* <code><nowiki>{{ | * <code><nowiki>{{Air force|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
}} | }}}} | ||
{{#if: {{{flag alias-army|}}} | | |||
This template includes an army ensign flag variant that can be used with [[Template:Army]]: | This template includes an army ensign flag variant that can be used with [[Template:Army]]: | ||
* <code><nowiki>{{army|</nowiki>{{ | * <code><nowiki>{{army|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|army}}</nowiki></code> → {{Flag icon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|army}} | ||
| {{#if: {{{link alias-army|}}} | | | {{#if: {{{link alias-army|}}} | | ||
This nation's army ensign is the same as its national flag, so [[Template:Army]] produces the following: | This nation's army ensign is the same as its national flag, so [[Template:Army]] produces the following: | ||
* <code><nowiki>{{ | * <code><nowiki>{{Army|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
}}}} }} | }}}} }} | ||
{{#if: {{{redir1|}}} | | {{#if: {{{redir1|}}} | | ||
Line 161: | Line 114: | ||
}} | }} | ||
===Example usage=== | ===Example usage=== | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{flag|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Flag icon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}<!-- | ||
-->{{#if: {{{shortname alias|}}} | | -->{{#if: {{{shortname alias|}}} | | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag country|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Flag country|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}} }} | ||
{{#if: {{{var1|}}} | | {{#if: {{{var1|}}} | | ||
====Using a flag variant==== | ====Using a flag variant==== | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{flag|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|{{{var1}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{Flag icon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|{{{var1}}}}} | ||
}} | }} | ||
{{#if: {{{redir1|}}} | | {{#if: {{{redir1|}}} | | ||
====Using a redirect alias==== | ====Using a redirect alias==== | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag icon|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{Flag icon|{{{redir1}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag country|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{Flag country|{{{redir1}}}}} | ||
* <code><nowiki>{{ | * <code><nowiki>{{Flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{Flag|{{{redir1}}}}} | ||
}} | }} | ||
{{#if: {{{related1|}}} | | {{#if: {{{related1|}}} | | ||
Line 190: | Line 143: | ||
-->{{#if: {{{related6|}}} | | -->{{#if: {{{related6|}}} | | ||
* [[Template:Country data {{{related6}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related6}}}<!-- {{#if:{{{related6param|}}}|{{!}}{{{related6param}}}}} -->}}</span> }}<!-- | * [[Template:Country data {{{related6}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related6}}}<!-- {{#if:{{{related6param|}}}|{{!}}{{{related6param}}}}} -->}}</span> }}<!-- | ||
-->}} | -->}} | ||
{{#ifexist:{{FULLPAGENAME}}/doc | | |||
{{#if:{{Suppress categories|{{{{FULLPAGENAME}}/doc}}}}| | {{#if:{{Suppress categories|{{{{FULLPAGENAME}}/doc}}}}| | ||
===Other information=== | ===Other information=== | ||
}} | }} | ||
{{{{FULLPAGENAME}}/doc|alias={{{alias|}}}|cat={{{cat|}}}}} | {{{{FULLPAGENAME}}/doc|alias={{{alias|}}}|cat={{{cat|}}}}} | ||
}} | |||
===TemplateData=== | ===TemplateData=== | ||
{{ | {{TemplateDataHeader}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates | "description": "This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates.", | ||
"params": {} | "params": {} | ||
} | } | ||
Line 274: | Line 161: | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!-- | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!-- | ||
-->[[Category:All country data templates|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | |||
-->{{#if:{{{shortname alias|}}}|<!-- | |||
-->[[Category:Country data templates with distinct shortname|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | |||
-->}}<!-- | |||
-->{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}||<!-- | |||
-->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!-- | |||
-->[[Category:Country data templates with distinct template name|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | |||
-->}}<!-- | |||
-->{{#if:{{{flag alias|}}}||<!-- | |||
-->[[Category:Country data templates without flag alias|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}]]<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | -->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | ||
-->[[Category:Country data template sandboxes|{{{cat|{{ | -->[[Category:Country data template sandboxes|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]|<!-- | ||
-->{{#ifexist:{{FULLPAGENAME}}/doc|<!-- | -->{{#ifexist:{{FULLPAGENAME}}/doc|<!-- | ||
-->[[Category:Country data templates with documentation subpage|{{{cat|{{ | -->[[Category:Country data templates with documentation subpage|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]|<!-- | ||
-->[[Category:Uncategorized country data templates|{{{cat|{{ | -->[[Category:Uncategorized country data templates|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{size | -->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}}<!-- | ||
-->{{#if:{{{templatename|}}}|[[Category:Country data templates with templatename parameter|{{{cat|{{{templatename|}}}}}}]]}} | |||
--> | |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.<!-- | ||
--><br />This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of | -->{{#ifexist:{{FULLPAGENAME}}/doc|<!-- | ||
--><br />This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of categories and documentation specific to this template.|<!-- | |||
-->{{#switch:{{PROTECTIONLEVEL:edit}}|sysop|templateeditor=<!-- | -->{{#switch:{{PROTECTIONLEVEL:edit}}|sysop|templateeditor=<!-- | ||
--><br />This template is | --><br />This template is not currently protected but any categories should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Country_showdata/preload}} /doc] subpage, which is not protected.|#default=<!-- | ||
--><br />Any | --><br />Any categories should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Country_showdata/preload}} /doc] subpage, which does not exist yet.<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--> | -->}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |