Àdàkọ:Country showdata: Ìyàtọ̀ láàrin àwọn àtúnyẹ̀wò

Content deleted Content added
No edit summary
No edit summary
Ìlà 1:
<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.
__NOEDITSECTION__
{{pp-template}}
<div class="template-documentation">
<div style="font-size: 1.5em; border-bottom: 1px solid #aaa;"><span class="mw-headline">Template documentation</span></div>
''This is the documentation for '''Template:{{PAGENAME}}'''. It is automatically generated by [[Template:Country showdata]]''
 
<tt>Template:{{PAGENAME}}</tt>ombox|text=This template is anwithin internalthe datascope containerof not'''[[Wikipedia:WikiProject intendedFlag toTemplate|WikiProject beFlag transcludedTemplate]]''', directly.a Itcollaborative iseffort usedto indirectlymaintain byflag templates suchon as <tt>[[Template:flag|flag]]</tt>, <tt>[[Template:flagicon|flagicon]]</tt>, and othersWikipedia. For aA more thorough discussion of the flag template system, including parameters not described here, pleasecan seebe [[Wikipedia:WikiProjectfound Flagon Template]]the project page.}}
 
[[ImageFile:{{{flag alias|SinFlag of banderaNone.svg}}}|thumb|{{#ifexist: {{{alt attribute}}} | See also: [[{{{alt attribute}}}]] |{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }} }}]]
'''''Please <span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}|action=purge}} purge the cache]</span> after making any changes to this template.'''''
===Standard parameters===
 
{|<table class="wikitable">
[[Image:{{{flag alias|Sin bandera.svg}}}|thumb|{{#ifexist: {{{alt attribute}}} | See also: [[{{{alt attribute}}}]] |{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }} }}]]
! <tr><th>Parameter name !! </th><th>Value !! </th><th>Meaning</th>
==Standard parameters==
</tr><tr>
{| class="wikitable"
| <td><tt>flag alias</tt></td>
! Parameter name !! Value !! Meaning
| <td>{{#if: {{{alias|}}} | <tt>{{{alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
|-
| <tttd>Main article name ([[{{{alias}}}]])</tttd>
</divtr>
| {{#if: {{{alias|}}} | <tt>{{{alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
| Main article name ([[{{{alias}}}]])
{{#if: {{{shortname alias|}}} |
<tr>
Line 25 ⟶ 20:
</tr>
}}
|-
| <tt>flag alias</tt>
| {{#if: {{{flag alias|}}} | <tt>{{{flag alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
| Image name ([[:Image:{{{flag alias}}}]], shown above right)
{{#if: {{{alt attribute|}}} |
<tr>
<td><tt>altflag attributealias</tt></td>
<td>{{#if: {{{flag alias|}}} | <tt>{{{altflag attributealias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}</td>
<td>''(optional)''Image name ([[alt:File:{{{flag attributealias}}}]], forshown flagabove imageright)</td>
</trtable>
}}
|}
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
===Flag variants===
{{#ifexist: {{{alt attribute}}} | {{details|{{{alt attribute}}}}} | {{#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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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>[[ImageFile:{{{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|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{flag alias-army|}}} |
===Military ensigns===
{{#if: {{{flag alias-naval|}}} |
This template includes a [[Maritime flag|naval ensign]] flag variant that can be used with [[Template:Navy]]:
==Àmì-iṣẹ́ Ajagun Ojúomi==
This template includes a [[Maritime flag|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: {{{link alias-naval|}}} |
}}
This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following:
* <tt><nowiki>{{navy|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{navy|{{{templatename|{{{alias}}}}}}}}
}}}}
{{#if: {{{flag alias-air force|}}} |
==Air force ensign==
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: {{{altflag attributealias-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|}}} |
===Redirect aliases===
This template can also be used via an ''alias'' name (implemented as a redirect to this template):<!--
--><table class="wikitable"><!--
Line 79 ⟶ 76:
--></table>
}}
===Example usage===
* <tt><nowiki>{{flag|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flag|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}}}<!--
-->{{#if: {{{shortname 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|}}} |
;====Using a redirect alias====
* <tt><nowiki>{{flagicon|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{redir1}}}}}
* <tt><nowiki>{{flagcountry|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{redir1}}}}}
Line 96 ⟶ 93:
}}
{{#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: Template:{{PAGENAMEFULLPAGENAME}}/doc |
===Other information===
{{{{FULLPAGENAME}}/doc}}
}}[[Category:Country data templates|{{{templatename|{{{alias}}}}}}]]
{{#if:{{{shortname alias|}}}
{{#if: {{{shortname alias |}}} | [[Category:Country data templates with distinct shortname|{{{templatename|{{{alias}}}}}}]] }}
}}{{#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.
|{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop
|<br/>This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] and [[WP:ILL|interlanguage links]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected.
}}
}}
}}</includeonly><noinclude>{{documentation}}</noinclude>
[[Category:Country data templates|{{{templatename|{{{alias}}}}}}]]
{{documentation}}
{{#if: {{{shortname alias|}}} | [[Category:Country data templates with distinct shortname|{{{templatename|{{{alias}}}}}}]] }}
</noinclude>
{{#ifeq: {{PAGENAME}} | Country data {{{alias}}} | | {{#ifeq: {{PAGENAME}} | Country data {{{shortname alias}}} | | [[Category:Country data templates with distinct template name]] }} }}
</div>
</includeonly><noinclude>{{documentation}}</noinclude>