Template:Country showdata: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add image name to variant table) |
(updates - use "redir1" etc. instead of "alias1" etc. for template doc to avoid any confusion with the standard "alias" parameter) |
||
Line 53: | Line 53: | ||
}} |
}} |
||
{{#if: {{{alias1|}}} | |
{{#if: {{{alias1|}}} | |
||
==Redirect aliases== |
|||
==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: {{{ |
{{#if: {{{redir1|}}} | <tr><td><tt>{{{redir1}}}</tt></td><td>{{flag|{{{redir1}}}}}</td><td>{{flagcountry|{{{redir1}}}}}</td></tr> }}<!-- |
||
-->{{#if: {{{ |
-->{{#if: {{{redir2|}}} | <tr><td><tt>{{{redir2}}}</tt></td><td>{{flag|{{{redir2}}}}}</td><td>{{flagcountry|{{{redir2}}}}}</td></tr> }}<!-- |
||
-->{{#if: {{{ |
-->{{#if: {{{redir3|}}} | <tr><td><tt>{{{redir3}}}</tt></td><td>{{flag|{{{redir3}}}}}</td><td>{{flagcountry|{{{redir3}}}}}</td></tr> }}<!-- |
||
-->{{#if: {{{ |
-->{{#if: {{{redir4|}}} | <tr><td><tt>{{{redir4}}}</tt></td><td>{{flag|{{{redir4}}}}}</td><td>{{flagcountry|{{{redir4}}}}}</td></tr> }}<!-- |
||
-->{{#if: {{{ |
-->{{#if: {{{redir5|}}} | <tr><td><tt>{{{redir5}}}</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}}}}}}}}<!-- |
||
-->{{#if: {{{var1|}}} | |
-->{{#if: {{{var1|}}} | |
||
;Using a flag variant |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* <tt><nowiki>{{flagicon|</nowiki>{{{ |
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|{{{var1}}}}} |
||
}}<!-- |
|||
-->{{#if: {{{var1|}}} | |
|||
⚫ | |||
⚫ | |||
;Using a redirect alias |
|||
* <tt><nowiki>{{flagcountry|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{templatename|{{{alias}}}}}}}}<!-- |
|||
⚫ | |||
-->{{#if: {{{alias1|}}} | |
|||
* <tt><nowiki>{{flagcountry|</nowiki>{{{ |
* <tt><nowiki>{{flagcountry|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{redir1}}}}} |
||
⚫ | |||
-->}} |
|||
}}<!-- |
|||
{{#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: |
Revision as of 16:59, 10 August 2007
This template is used for documenting country data templates.