Template:Flag: Difference between revisions

WikiAdmin (talk | contribs)
mNo edit summary
WikiAdmin (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly>{{{1}}}</includeonly><noinclude>
<includeonly>{{#ifexist: Template:Flag data {{{1}}}|[[File:{{Flag data {{{1}}}}}|25x15px|{{{1}}}]]&nbsp;{{{1}}}|{{{1}}} }}</includeonly>
<!-- {{{1}}}< --><noinclude>
This template creates a File link to a country flag, formatted in 25x15 pixels so far. If the related '''Template:Flag data <countryname>''' doesn't exist or is empty, just the country name is output.
This template creates a File link to a country flag, formatted in 25x15 pixels so far. If the related '''Template:Flag data <countryname>''' doesn't exist or is empty, just the country name is output.


Line 6: Line 7:
The working code of the original template:
The working code of the original template:
<pre>{{#ifexist: Template:Flag data {{{1}}}|[[File:{{Flag data {{{1}}}}}|25x15px|{{{1}}}]]&nbsp;{{{1}}}|{{{1}}} }}</pre>
<pre>{{#ifexist: Template:Flag data {{{1}}}|[[File:{{Flag data {{{1}}}}}|25x15px|{{{1}}}]]&nbsp;{{{1}}}|{{{1}}} }}</pre>
{{Flag|Australia}}
</noinclude>
</noinclude>