Difference between revisions of "Template:Country showdata"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
Aeverinezinn (talk | contribs) m (1 revision) |
(Warning for missing variant pass-through) |
||
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 146: | 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 167: | Line 170: | ||
-->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!-- | -->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!-- | ||
-->[[Category:Country data templates with distinct template name|{{{cat|{{{templatename|{{Str right|{{BASEPAGENAME}}|13}}}}}}}}]]<!-- | -->[[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 184: | 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: | + | --><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: | + | --><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.<!-- |
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}} |
Revision as of 06:04, 11 January 2016
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |