Template:Country showdata: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Retireduser1111
m Edit + Cleaning up
meta>Andrwsc
Undid revision 191652981 by Passawuth (talk) — pointless
Line 11: Line 11:


[[Image:{{{flag alias|Sin bandera.svg}}}|thumb|{{#ifexist: {{{alt attribute}}} | See also: [[{{{alt attribute}}}]] |{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }} }}]]
[[Image:{{{flag alias|Sin bandera.svg}}}|thumb|{{#ifexist: {{{alt attribute}}} | See also: [[{{{alt attribute}}}]] |{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }} }}]]
== Standard parameters ==
==Standard parameters==
{| class="wikitable"
{| class="wikitable"
! Parameter name !! Value !! Meaning
! Parameter name !! Value !! Meaning
Line 22: Line 22:
<td><tt>shortname alias</tt></td>
<td><tt>shortname alias</tt></td>
<td><tt>{{{shortname alias}}}</tt></td>
<td><tt>{{{shortname alias}}}</tt></td>
<td>''(optional) '' Display name to be used for the wikilink, if <tt>alias</tt> is a disambiguated article name, for example</td>
<td>''(optional)'' Display name to be used for the wikilink, if <tt>alias</tt> is a disambiguated article name, for example</td>
</tr>
</tr>
}}
}}
Line 33: Line 33:
<td><tt>alt attribute</tt></td>
<td><tt>alt attribute</tt></td>
<td><tt>{{{alt attribute}}}</tt></td>
<td><tt>{{{alt attribute}}}</tt></td>
<td>''(optional) '' [[alt attribute]] for flag image</td>
<td>''(optional)'' [[alt attribute]] for flag image</td>
</tr>
</tr>
}}
}}
|}
|}
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
== Flag variants ==
==Flag variants==
{{#ifexist: {{{alt attribute}}} | {{details|{{{alt attribute}}}}} | {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }} }}
{{#ifexist: {{{alt attribute}}} | {{details|{{{alt attribute}}}}} | {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }} }}
<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>
{{#if: {{{var1|}}} | <tr><td><tt>{{{var1}}}</tt></td><td align=center>[[Image:{{{flag alias-{{{var1}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var1}}}}}}</tt></td></tr> }}<!--
{{#if: {{{var1|}}} | <tr><td><tt>{{{var1}}}</tt></td><td align=center>[[Image:{{{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>[[Image:{{{flag alias-{{{var2}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var2}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var2|}}} | <tr><td><tt>{{{var2}}}</tt></td><td align=center>[[Image:{{{flag alias-{{{var2}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var2}}}}}}</tt></td></tr> }}<!--
Line 56: Line 56:
}}
}}
{{#if: {{{flag alias-naval|}}} |
{{#if: {{{flag alias-naval|}}} |
== Naval ensign ==
==Naval ensign==
This template includes a [[Maritime flag|naval ensign]] flag variant that can be used with [[Template:Navy]]:
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>{{navy|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{navy|{{{templatename|{{{alias}}}}}}}}
Line 62: Line 62:
}}
}}
{{#if: {{{flag alias-air force|}}} |
{{#if: {{{flag alias-air force|}}} |
== Air force ensign ==
==Air force ensign==
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]]:
* <tt><nowiki>{{air force|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{air force|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{air force|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{air force|{{{templatename|{{{alias}}}}}}}}
Line 68: Line 68:
}}
}}
{{#if: {{{redir1|}}} |
{{#if: {{{redir1|}}} |
== Redirect aliases ==
==Redirect aliases==
This template can also be used via an ''alias'' name (implemented as a redirect to this template) :<!--
This template can also be used via an ''alias'' name (implemented as a redirect to this template):<!--
--><table class="wikitable"><!--
--><table class="wikitable"><!--
--><tr><th>Alias name</th><th>{{tlx|flag|''alias''}} output</th><th>{{tlx|flagcountry|''alias''}} output</th></tr>
--><tr><th>Alias name</th><th>{{tlx|flag|''alias''}} output</th><th>{{tlx|flagcountry|''alias''}} output</th></tr>
{{#if: {{{redir1|}}} | <tr><td><tt>{{{redir1}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir1}}}|redirect=no}} view]</span><tt>) </tt></td><td>{{flag|{{{redir1}}}}}</td><td>{{flagcountry|{{{redir1}}}}}</td></tr> }}<!--
{{#if: {{{redir1|}}} | <tr><td><tt>{{{redir1}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir1}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir1}}}}}</td><td>{{flagcountry|{{{redir1}}}}}</td></tr> }}<!--
-->{{#if: {{{redir2|}}} | <tr><td><tt>{{{redir2}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir2}}}|redirect=no}} view]</span><tt>) </tt></td><td>{{flag|{{{redir2}}}}}</td><td>{{flagcountry|{{{redir2}}}}}</td></tr> }}<!--
-->{{#if: {{{redir2|}}} | <tr><td><tt>{{{redir2}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir2}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir2}}}}}</td><td>{{flagcountry|{{{redir2}}}}}</td></tr> }}<!--
-->{{#if: {{{redir3|}}} | <tr><td><tt>{{{redir3}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir3}}}|redirect=no}} view]</span><tt>) </tt></td><td>{{flag|{{{redir3}}}}}</td><td>{{flagcountry|{{{redir3}}}}}</td></tr> }}<!--
-->{{#if: {{{redir3|}}} | <tr><td><tt>{{{redir3}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir3}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir3}}}}}</td><td>{{flagcountry|{{{redir3}}}}}</td></tr> }}<!--
-->{{#if: {{{redir4|}}} | <tr><td><tt>{{{redir4}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir4}}}|redirect=no}} view]</span><tt>) </tt></td><td>{{flag|{{{redir4}}}}}</td><td>{{flagcountry|{{{redir4}}}}}</td></tr> }}<!--
-->{{#if: {{{redir4|}}} | <tr><td><tt>{{{redir4}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir4}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir4}}}}}</td><td>{{flagcountry|{{{redir4}}}}}</td></tr> }}<!--
-->{{#if: {{{redir5|}}} | <tr><td><tt>{{{redir5}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir5}}}|redirect=no}} view]</span><tt>) </tt></td><td>{{flag|{{{redir5}}}}}</td><td>{{flagcountry|{{{redir5}}}}}</td></tr> }}<!--
-->{{#if: {{{redir5|}}} | <tr><td><tt>{{{redir5}}} (</tt><span class="plainlinks">[{{fullurl:Template:Country data {{{redir5}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flag|{{{redir5}}}}}</td><td>{{flagcountry|{{{redir5}}}}}</td></tr> }}<!--
--></table>
--></table>
}}
}}
== Example usage ==
==Example usage==
* <tt><nowiki>{{flag|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flag|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flag|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flag|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}}}<!--
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}}}<!--
Line 96: Line 96:
}}
}}
{{#if: {{{related1|}}} |
{{#if: {{{related1|}}} |
== Related templates ==
==Related templates==
Please see the following related <tt>country_data</tt> templates:
Please see the following related <tt>country_data</tt> templates:
* [[Template:Country data {{{related1}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related1}}}}}</span><!--
*[[Template:Country data {{{related1}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related1}}}}}</span><!--
-->{{#if: {{{related2|}}} |
-->{{#if: {{{related2|}}} |
* [[Template:Country data {{{related2}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related2}}}}}</span> }}<!--
*[[Template:Country data {{{related2}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related2}}}}}</span> }}<!--
-->{{#if: {{{related3|}}} |
-->{{#if: {{{related3|}}} |
* [[Template:Country data {{{related3}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related3}}}}}</span> }}<!--
*[[Template:Country data {{{related3}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related3}}}}}</span> }}<!--
-->{{#if: {{{related4|}}} |
-->{{#if: {{{related4|}}} |
* [[Template:Country data {{{related4}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related4}}}}}</span> }}<!--
*[[Template:Country data {{{related4}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related4}}}}}</span> }}<!--
-->{{#if: {{{related5|}}} |
-->{{#if: {{{related5|}}} |
* [[Template:Country data {{{related5}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related5}}}}}</span> }}<!--
*[[Template:Country data {{{related5}}}]]<span style="position:absolute; left:32em;">{{flag|{{{related5}}}}}</span> }}<!--
-->}}
-->}}
{{#ifexist: Template:{{PAGENAME}}/doc |
{{#ifexist: Template:{{PAGENAME}}/doc |
== Other information ==
==Other information==
{{/doc}}
{{/doc}}
}}
}}

Revision as of 16:55, 15 February 2008