Difference between revisions of "Template:Flag"
From eRepublik Official Wiki
(cat added, testing) |
Democr1tus (Talk | contribs) m |
||
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|}}}|[[{{{link|{{{2}}}}}}]]|}}</includeonly><noinclude> | <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}} | ||
+ | {{Documentation}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Graphical Aid Templates]] | [[Category:Graphical Aid Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:18, 2 April 2022
The code of this template is really complex, please use your sandbox before editing this template
Usage
{{Flag |"I" for icon or "F" for flag |COUNTRY |size=SIZE |link=ARTICLE LINK }}
Examples
{{Flag|I|Australia|size=25px|link=Australia}}
produces: Australia
{{Flag|I|Indonesia}}
{{Flag|F|Italy}}
{{Flag|F|Ireland|size=30px|link=Ireland}}
produces: Ireland
Or you can create different combinations, like:
{{Flag|I|Croatia}} '''[[Croatia]]'''produces Croatia