Difference between revisions of "Template:Flag"
From eRepublik Official Wiki
m (Image --> File) |
(cat added, testing) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[File:{{#switch: {{{1}}}|I=Icon|F=Flag}}-{{{2}}}{{#switch: {{{1|}}}|I=.png|F=.jpg}}|{{#If: {{{size|}}}|{{{size}}}|{{#switch: {{{1|}}}|I=18px|F=20px}} }}|{{#ifeq: {{{1|}}}|F|border}}|{{{2}}}]]{{#if: {{{link|}}}| | + | <includeonly>[[File:{{#switch: {{{1}}}|I=Icon|F=Flag}}-{{{2}}}{{#switch: {{{1|}}}|I=.png|F=.jpg}}|{{#If: {{{size|}}}|{{{size}}}|{{#switch: {{{1|}}}|I=18px|F=20px}} }}|{{#ifeq: {{{1|}}}|F|border}}|{{{2}}}]]{{#if: {{{link|}}}|[[{{{link|{{{2}}}}}}]]|}}</includeonly><noinclude> |
{{Complex}} | {{Complex}} | ||
Line 16: | Line 16: | ||
Or you can create different combinations, like: | Or you can create different combinations, like: | ||
<pre>{{Flag|I|Croatia}} '''[[Croatia]]'''</pre> produces {{Flag|I|Croatia}} '''[[Croatia]]''' | <pre>{{Flag|I|Croatia}} '''[[Croatia]]'''</pre> produces {{Flag|I|Croatia}} '''[[Croatia]]''' | ||
− | + | [[Category:Graphical Aid Templates]] | |
</noinclude> | </noinclude> |
Revision as of 01:45, 17 July 2014
The code of this template is really complex, please use your sandbox before editing this template
Usage
{{Flag|"I" or "F"|COUNTRY|size=SIZE|link=ARTICLE LINK}}
Examples
{{Flag|I|Australia|size=25px|link=Australia}}produces: Australia
{{Flag|I|Indonesia}}produces:
{{Flag|F|Italy}}produces:
{{Flag|F|Ireland|size=30px|link=Ireland}}produces: Ireland
Or you can create different combinations, like:
{{Flag|I|Croatia}} '''[[Croatia]]'''produces Croatia