Difference between pages "Template:Country showdata" and "Template:Country showdata/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
(Undo revision 427949 by KingdomOfBaustralia (talk))
 
(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 ind...")
Tags: Mobile edit Mobile web edit
 
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|flag]]</code>, <code>[[Template:flagnt|flagnt]]</code>, and others.
+
{{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:flagicon|flagicon]]</code>, 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.}}
 
{{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.}}
Line 25: Line 25:
 
<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|}}} |
+
{{#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}}}}} | }} }}
 +
{{#ifeq:{{{variant|♦}}}|♦|{{red|Note: These variants cannot be used unless the line <code>{{!}} variant {{=}} {{(((}}variant{{!}}{{)))}}</code> is added to this template.}}}}
 
<table class="wikitable">
 
<table class="wikitable">
 
<tr><th>Label</th><th>Flag image (40px)</th><th>Image name</th></tr>
 
<tr><th>Label</th><th>Flag image (40px)</th><th>Image name</th></tr>
Line 70: Line 71:
 
-->{{#if: {{{var39|}}} | <tr><td><code>{{{var39}}}</code></td><td style="text-align:center;">[[File:{{{flag alias-{{{var39}}}}}}|40px|{{{border-{{{var39}}}|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-{{{var39}}}}}}</code></td></tr> }}<!--
 
-->{{#if: {{{var39|}}} | <tr><td><code>{{{var39}}}</code></td><td style="text-align:center;">[[File:{{{flag alias-{{{var39}}}}}}|40px|{{{border-{{{var39}}}|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-{{{var39}}}}}}</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: {{{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-military|}}} | <tr><td><code>military</code></td><td style="text-align:center;">[[File:{{{flag alias-military}}}|40px|{{{border-military|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-military}}}</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-marines|}}} | <tr><td><code>marines</code></td><td style="text-align:center;">[[File:{{{flag alias-marines}}}|40px|{{{border-marines|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-marines}}}</code></td></tr> }}<!--
 +
-->{{#if: {{{flag alias-military|}}} | <tr><td><code>military</code></td><td style="text-align:center;">[[File:{{{flag alias-military}}}|40px|{{{border-military|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-military}}}</code></td></tr> }}<!--
 
-->{{#if: {{{flag alias-coast guard|}}} | <tr><td><code>coast guard</code></td><td style="text-align:center;">[[File:{{{flag alias-coast guard}}}|40px|{{{border-coast guard|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-coast guard}}}</code></td></tr> }}<!--
 
-->{{#if: {{{flag alias-coast guard|}}} | <tr><td><code>coast guard</code></td><td style="text-align:center;">[[File:{{{flag alias-coast guard}}}|40px|{{{border-coast guard|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-coast guard}}}</code></td></tr> }}<!--
-->{{#if: {{{flag alias-marines|}}} | <tr><td><code>marines</code></td><td style="text-align:center;">[[File:{{{flag alias-marines}}}|40px|{{{border-marines|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-marines}}}</code></td></tr> }}<!--
+
-->{{#if: {{{flag alias-navy|}}} | <tr><td><code>navy</code></td><td style="text-align:center;">[[File:{{{flag alias-navy}}}|40px|{{{border-navy|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-navy}}}</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-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-space force|}}} | <tr><td><code>space force</code></td><td style="text-align:center;">[[File:{{{flag alias-space force}}}|40px|{{{border-space force|{{{border|border}}}}}}]]</td><td><code>{{{flag alias-space force}}}</code></td></tr> }}}}<!--
 
 
--></table>
 
--></table>
}}}}
+
}}
{{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{link alias-air force|}}}{{{flag alias-army|}}}{{{link alias-army|}}}{{{flag alias-military|}}}{{{link alias-military|}}}{{{flag alias-coast guard|}}}{{{link alias-coast guard|}}}{{{flag alias-marines|}}}{{{link alias-marines|}}}{{{flag alias-space force|}}}{{{link alias-space force|}}} |
+
{{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{link alias-air force|}}}{{{flag alias-army|}}}{{{link alias-army|}}}{{{flag alias-coast guard|}}}{{{link alias-coast guard|}}}{{{flag alias-military|}}}{{{link alias-military|}}}{{{flag alias-marines|}}}{{{link alias-marines|}}} |
 
===Military ensigns===
 
===Military ensigns===
{{#if: {{{flag alias-military|}}} |
 
This template includes a military ensign flag variant that can be used with [[Template:Armed forces]]:
 
* <code><nowiki>{{Armed forces|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Armed forces|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|military}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|military}}
 
| {{#if: {{{link alias-military|}}} |
 
This nation's military ensign is the same as its national flag, so [[Template:Armed forces]] produces the following:
 
* <code><nowiki>{{Armed force|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Armed force|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
}}}}
 
 
{{#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>{{navy|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{navy|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{navy|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{navy|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|naval}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|naval}}
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|naval}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|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>{{navy|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{navy|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{navy|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{navy|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 
}}}}
 
}}}}
{{#if: {{{flag alias-coast guard|}}} |
+
{{#if: {{{flag alias-air force|}}} |
This template includes a coast guard ensign flag variant that can be used with [[Template:Coast guard]]:
+
This template includes an air force ensign flag variant that can be used with [[Template:Air force]]:
* <code><nowiki>{{Coast guard|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Coast guard|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{air force|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{air force|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|coast guard}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|coast guard}}
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|air force}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|air force}}
| {{#if: {{{link alias-coast guard|}}} |
+
| {{#if: {{{link alias-air force|}}} |
This nation's coast guard ensign is the same as its national flag, so [[Template:Coast guard]] 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>{{coast guard|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{Coast guard|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{air force|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{air force|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 
}}}}
 
}}}}
 
{{#if: {{{flag alias-marines|}}} |
 
{{#if: {{{flag alias-marines|}}} |
 
This template includes a marine ensign flag variant that can be used with [[Template:Marines]]:
 
This template includes a marine ensign flag variant that can be used with [[Template:Marines]]:
* <code><nowiki>{{marines|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{marines|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{marines|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{marines|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|marines}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|marines}}
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|marines}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|marines}}
 
| {{#if: {{{link alias-marines|}}} |
 
| {{#if: {{{link alias-marines|}}} |
 
This nation's marine ensign is the same as its national flag, so [[Template:Marines]] produces the following:
 
This nation's marine ensign is the same as its national flag, so [[Template:Marines]] produces the following:
* <code><nowiki>{{marines|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{marines|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{marines|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{marines|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
}}}}
 +
{{#if: {{{flag alias-military|}}} |
 +
This template includes a marine ensign flag variant that can be used with [[Template:Armed forces]]:
 +
* <code><nowiki>{{Armed forces|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{Armed forces|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|military}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|military}}
 +
| {{#if: {{{link alias-military|}}} |
 +
This nation's military ensign is the same as its national flag, so [[Template: Armed forces]] produces the following:
 +
* <code><nowiki>{{Armed forces|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{Armed forces|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
}}}}
 +
{{#if: {{{flag alias-navy|}}} |
 +
This template includes a navy flag variant that can be used with [[Template:Naval]]:
 +
* <code><nowiki>{{naval|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{naval|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|navy}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|navy}}
 +
| {{#if: {{{link alias-navy|}}} |
 +
This nation's navy flag is the same as its national flag, so [[Template:Naval]] produces the following:
 +
* <code><nowiki>{{naval|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{naval|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
}}}}
 +
{{#if: {{{flag alias-coast guard|}}} |
 +
This template includes a coast guard ensign flag variant that can be used with [[Template:Coast guard]]:
 +
* <code><nowiki>{{coast guard|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{coast guard|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 +
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|coast guard}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|coast guard}}
 +
| {{#if: {{{link alias-coast guard|}}} |
 +
This nation's coast guard ensign is the same as its national flag, so [[Template:Coast guard]] produces the following:
 +
* <code><nowiki>{{coast guard|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{coast guard|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 
}}}}
 
}}}}
 
{{#if: {{{flag alias-army|}}} |
 
{{#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>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{army|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{army|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|army}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|army}}
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|army}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|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>{{army|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{army|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{army|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
 
}}}} }}
 
}}}} }}
{{#if: {{{flag alias-air force|}}} |
 
This template includes an air force ensign flag variant that can be used with [[Template:Air force]]:
 
* <code><nowiki>{{air force|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|air force}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|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:
 
* <code><nowiki>{{air force|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
}}}}
 
{{#if: {{{flag alias-space force|}}} |
 
This template includes an space force ensign flag variant that can be used with [[Template:Space force]]:
 
* <code><nowiki>{{space force|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{space force|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|space force}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|space force}}
 
| {{#if: {{{link alias-space force|}}} |
 
This nation's space force ensign is the same as its national flag, so [[Template:Space force]] produces the following:
 
* <code><nowiki>{{space force|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{space force|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
 
}}}}
 
 
 
{{#if: {{{redir1|}}} |
 
{{#if: {{{redir1|}}} |
 
===Redirect aliases===
 
===Redirect aliases===
Line 152: Line 152:
 
}}
 
}}
 
===Example usage===
 
===Example usage===
* <code><nowiki>{{flag|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{flag|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}
+
* <code><nowiki>{{flag|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{flag|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}<!--
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}<!--
 
-->{{#if: {{{shortname alias|}}} |
 
-->{{#if: {{{shortname alias|}}} |
* <code><nowiki>{{flagcountry|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{flagcountry|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}} }}
+
* <code><nowiki>{{flagcountry|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{flagcountry|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}} }}
 
{{#if: {{{var1|}}} |
 
{{#if: {{{var1|}}} |
 
====Using a flag variant====
 
====Using a flag variant====
* <code><nowiki>{{flag|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{flag|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|{{{var1}}}}}
+
* <code><nowiki>{{flag|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{flag|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|{{{var1}}}}}
* <code><nowiki>{{flagnt|</nowiki>{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{flagnt|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}|{{{var1}}}}}
+
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|{{{var1}}}}}
 
}}
 
}}
 
{{#if: {{{redir1|}}} |
 
{{#if: {{{redir1|}}} |
 
====Using a redirect alias====
 
====Using a redirect alias====
* <code><nowiki>{{flagnt|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flagnt|{{{redir1}}}}}
+
* <code><nowiki>{{flagicon|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flagicon|{{{redir1}}}}}
 
* <code><nowiki>{{flagcountry|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flagcountry|{{{redir1}}}}}
 
* <code><nowiki>{{flagcountry|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flagcountry|{{{redir1}}}}}
 
* <code><nowiki>{{flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flag|{{{redir1}}}}}
 
* <code><nowiki>{{flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></code> → {{flag|{{{redir1}}}}}
Line 181: Line 181:
 
-->{{#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> }}<!--
 +
-->{{#if: {{{related7|}}} |
 +
* [[Template:Country data {{{related7}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related7}}}<!-- {{#if:{{{related7param|}}}|{{!}}{{{related7param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related8|}}} |
 +
* [[Template:Country data {{{related8}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related8}}}<!-- {{#if:{{{related8param|}}}|{{!}}{{{related8param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related9|}}} |
 +
* [[Template:Country data {{{related9}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related9}}}<!-- {{#if:{{{related9param|}}}|{{!}}{{{related9param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related10|}}} |
 +
* [[Template:Country data {{{related10}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related10}}}<!-- {{#if:{{{related10param|}}}|{{!}}{{{related10param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related11|}}} |
 +
* [[Template:Country data {{{related11}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related11}}}<!-- {{#if:{{{related11param|}}}|{{!}}{{{related11param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related12|}}} |
 +
* [[Template:Country data {{{related12}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related12}}}<!-- {{#if:{{{related12param|}}}|{{!}}{{{related12param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related13|}}} |
 +
* [[Template:Country data {{{related13}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related13}}}<!-- {{#if:{{{related13param|}}}|{{!}}{{{related13param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related14|}}} |
 +
* [[Template:Country data {{{related14}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related14}}}<!-- {{#if:{{{related14param|}}}|{{!}}{{{related14param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related15|}}} |
 +
* [[Template:Country data {{{related15}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related15}}}<!-- {{#if:{{{related15param|}}}|{{!}}{{{related15param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related16|}}} |
 +
* [[Template:Country data {{{related16}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related16}}}<!-- {{#if:{{{related16param|}}}|{{!}}{{{related16param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related17|}}} |
 +
* [[Template:Country data {{{related17}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related17}}}<!-- {{#if:{{{related17param|}}}|{{!}}{{{related17param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related18|}}} |
 +
* [[Template:Country data {{{related18}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related18}}}<!-- {{#if:{{{related18param|}}}|{{!}}{{{related18param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related19|}}} |
 +
* [[Template:Country data {{{related19}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related19}}}<!-- {{#if:{{{related19param|}}}|{{!}}{{{related19param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related20|}}} |
 +
* [[Template:Country data {{{related20}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related20}}}<!-- {{#if:{{{related20param|}}}|{{!}}{{{related20param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related21|}}} |
 +
* [[Template:Country data {{{related21}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related21}}}<!-- {{#if:{{{related21param|}}}|{{!}}{{{related21param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related22|}}} |
 +
* [[Template:Country data {{{related22}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related22}}}<!-- {{#if:{{{related22param|}}}|{{!}}{{{related22param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related23|}}} |
 +
* [[Template:Country data {{{related23}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related23}}}<!-- {{#if:{{{related23param|}}}|{{!}}{{{related23param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related24|}}} |
 +
* [[Template:Country data {{{related24}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related24}}}<!-- {{#if:{{{related24param|}}}|{{!}}{{{related24param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related25|}}} |
 +
* [[Template:Country data {{{related25}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related25}}}<!-- {{#if:{{{related25param|}}}|{{!}}{{{related25param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related26|}}} |
 +
* [[Template:Country data {{{related26}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related26}}}<!-- {{#if:{{{related26param|}}}|{{!}}{{{related26param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related27|}}} |
 +
* [[Template:Country data {{{related27}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related27}}}<!-- {{#if:{{{related27param|}}}|{{!}}{{{related27param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related28|}}} |
 +
* [[Template:Country data {{{related28}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related28}}}<!-- {{#if:{{{related28param|}}}|{{!}}{{{related28param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related29|}}} |
 +
* [[Template:Country data {{{related29}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related29}}}<!-- {{#if:{{{related29param|}}}|{{!}}{{{related29param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related30|}}} |
 +
* [[Template:Country data {{{related30}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related30}}}<!-- {{#if:{{{related30param|}}}|{{!}}{{{related30param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related31|}}} |
 +
* [[Template:Country data {{{related31}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related31}}}<!-- {{#if:{{{related31param|}}}|{{!}}{{{related31param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related32|}}} |
 +
* [[Template:Country data {{{related32}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related32}}}<!-- {{#if:{{{related32param|}}}|{{!}}{{{related32param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related33|}}} |
 +
* [[Template:Country data {{{related33}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related33}}}<!-- {{#if:{{{related33param|}}}|{{!}}{{{related33param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related34|}}} |
 +
* [[Template:Country data {{{related34}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related34}}}<!-- {{#if:{{{related34param|}}}|{{!}}{{{related34param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related35|}}} |
 +
* [[Template:Country data {{{related35}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related35}}}<!-- {{#if:{{{related35param|}}}|{{!}}{{{related35param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related36|}}} |
 +
* [[Template:Country data {{{related36}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related36}}}<!-- {{#if:{{{related36param|}}}|{{!}}{{{related36param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related37|}}} |
 +
* [[Template:Country data {{{related37}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related37}}}<!-- {{#if:{{{related37param|}}}|{{!}}{{{related37param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related38|}}} |
 +
* [[Template:Country data {{{related38}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related38}}}<!-- {{#if:{{{related38param|}}}|{{!}}{{{related38param}}}}} -->}}</span> }}<!--
 +
-->{{#if: {{{related39|}}} |
 +
* [[Template:Country data {{{related39}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related39}}}<!-- {{#if:{{{related39param|}}}|{{!}}{{{related39param}}}}} -->}}</span> }}<!--
 
-->}}
 
-->}}
 
{{#ifexist:{{FULLPAGENAME}}/doc |
 
{{#ifexist:{{FULLPAGENAME}}/doc |
 +
{{#if:{{Suppress categories|{{{{FULLPAGENAME}}/doc}}}}|
 
===Other information===
 
===Other information===
{{{{FULLPAGENAME}}/doc|alias={{{alias|}}}|cat={{{cat|}}}}}}}
+
}}
 +
{{{{FULLPAGENAME}}/doc|alias={{{alias|}}}|cat={{{cat|}}}}}
 +
}}
  
 +
===TemplateData===
 +
{{TemplateDataHeader}}
 +
<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 and Wikipedia:WikiProject Flag Template for further documentation.",
 +
  "params": {}
 +
}
 +
</templatedata>
  
 
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--
 
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--
   -->[[Category:All country data templates|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]<!--
+
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
 +
  -->[[Category:Country data template sandboxes|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]|<!--
 +
   -->{{#ifexist:{{FULLPAGENAME}}/doc|<!--
 +
    -->[[Category:Country data templates with documentation subpage|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]|<!--
 +
    -->[[Category:Uncategorized country data templates|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]<!--
 +
    -->}}<!--
 +
  -->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]<!--
 +
    -->}}<!--
 +
  -->[[Category:All country data templates|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]<!--
 
   -->{{#if:{{{shortname alias|}}}|<!--
 
   -->{{#if:{{{shortname alias|}}}|<!--
     -->[[Category:Country data templates with distinct shortname|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]<!--
+
     -->[[Category:Country data templates with distinct shortname|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]<!--
  -->}}<!--
+
    -->}}<!--
 
   -->{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}||<!--
 
   -->{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}||<!--
 
     -->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!--
 
     -->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!--
       -->[[Category:Country data templates with distinct template name|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]<!--
+
       -->[[Category:Country data templates with distinct template name|{{{cat|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}}]]<!--
 +
      -->}}<!--
 
     -->}}<!--
 
     -->}}<!--
 +
    -->{{#if:{{{flag alias|}}}||<!--
 +
      -->[[Category:Country data templates without flag alias|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}]]<!--
 +
      -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
+
-->}}
  -->[[Category:Country data template sandboxes|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]|<!--
 
  -->{{#ifexist:{{FULLPAGENAME}}/doc|<!--
 
    -->[[Category:Country data templates with documentation subpage|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]|<!--
 
    -->[[Category:Uncategorized country data templates|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|13}}}}}}}}]]<!--
 
    -->}}<!--
 
  -->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{{templatename|{{Str right|{{PAGENAME}}|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.<!--
 
|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|<!--
 
-->{{#ifexist:{{FULLPAGENAME}}/doc|<!--
 
   --><br />This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of [[WP:CAT|categories]] and documentation specific to this template.|<!--
 
   --><br />This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of [[WP:CAT|categories]] and documentation specific to this template.|<!--
 
   -->{{#switch:{{PROTECTIONLEVEL:edit}}|sysop|templateeditor=<!--
 
   -->{{#switch:{{PROTECTIONLEVEL:edit}}|sysop|templateeditor=<!--
     --><br />This template is [[WP:PROTECT|{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|fully protected|template-protected}}]] and any [[WP:CAT|categories]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected.|#default=<!--
+
     --><br />This template is [[WP:PROTECT|{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|fully protected|template-protected}}]] and any [[WP:CAT|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 [[WP:CAT|categories]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which does not exist yet.<!--
+
     --><br />Any [[WP:CAT|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>