Difference between revisions of "Template:Country showdata"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Undid revision 636585716 by Mssetiadi (talk))
 
(10 intermediate revisions by 3 users not shown)
Line 27: Line 27:
 
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
 
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
 
===Flag variants===
 
===Flag variants===
{{#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 75: Line 76:
 
--></table>
 
--></table>
 
}}
 
}}
{{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{flag alias-army|}}} |
+
{{#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|}}} |
Line 89: Line 90:
 
* <code><nowiki>{{air force|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{air force|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{flagicon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|air force}}</nowiki></code> → {{flagicon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|air force}}
 
* <code><nowiki>{{flagicon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|air force}}</nowiki></code> → {{flagicon|{{{templatename|{{Str right|{{BASEPAGENAME}}|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|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{air force|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 +
}}}}
 
{{#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|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{army|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 
* <code><nowiki>{{flagicon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|army}}</nowiki></code> → {{flagicon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|army}}
 
* <code><nowiki>{{flagicon|</nowiki>{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}<nowiki>|army}}</nowiki></code> → {{flagicon|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}|army}}
}} }}
+
| {{#if: {{{link alias-army|}}} |
 +
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|{{BASEPAGENAME}}|13}}}}}<nowiki>}}</nowiki></code> → {{army|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}
 +
}}}} }}
 
{{#if: {{{redir1|}}} |
 
{{#if: {{{redir1|}}} |
 
===Redirect aliases===
 
===Redirect aliases===
Line 140: Line 147:
 
-->}}
 
-->}}
 
{{#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|}}}}}
 
}}
 
}}
Line 154: Line 163:
  
 
{{#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}}}}}}}}]]<!--
 
    -->}}<!--
 
  -->}}<!--
 
 
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
 
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
 
   -->[[Category:Country data template sandboxes|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]|<!--
 
   -->[[Category:Country data template sandboxes|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]|<!--
Line 170: Line 170:
 
     -->}}<!--
 
     -->}}<!--
 
   -->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!--
 
   -->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!--
 +
    -->}}<!--
 +
  -->[[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}}}}}]]<!--
 +
      -->}}<!--
 
     -->}}<!--
 
     -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
Line 178: Line 190:
 
   --><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.<!--
 
   -->}}<!--
 
   -->}}<!--
 
-->}}
 
-->}}

Latest revision as of 09:26, 19 March 2016

Documentation icon Template documentation[create]