Difference between revisions of "Template:CountryLinkSmall"
From eRepublik Official Wiki
m (small corrections) |
|||
Line 1: | Line 1: | ||
− | <includeonly><onlyinclude>{{Nowrap|[[File:Icon-{{{1|eRepublik}}}.png|15px|link=]]'''[[{{{1}}}{{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}}}]]'''}}</onlyinclude></includeonly> | + | <includeonly><onlyinclude>{{Nowrap|[[File:Icon-{{{1|eRepublik}}}.png|15px|link=]] '''[[{{{1}}}{{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}}}]]'''}}</onlyinclude></includeonly><noinclude> |
− | <noinclude>Usage: | + | Usage: |
<nowiki>{{CountryLinkSmall|Country|Link Name}}</nowiki> | <nowiki>{{CountryLinkSmall|Country|Link Name}}</nowiki> | ||
* This allows translated pages to use this template while keeping everything in the proper language. Unlike [[Template:FlagLink]], users cannot change which page this template links to -- it will link to the country page regardless -- but it does allow users to use the FlagBall in other languages. | * This allows translated pages to use this template while keeping everything in the proper language. Unlike [[Template:FlagLink]], users cannot change which page this template links to -- it will link to the country page regardless -- but it does allow users to use the FlagBall in other languages. | ||
Line 7: | Line 7: | ||
Example: | Example: | ||
− | {{CountryLinkSmall|North Korea|조선민주주의인민공화국}} | + | {{CountryLinkSmall|North Korea|조선민주주의인민공화국}}</noinclude> |
− | </noinclude> | + |
Latest revision as of 16:41, 3 September 2020
Usage:
{{CountryLinkSmall|Country|Link Name}}
- This allows translated pages to use this template while keeping everything in the proper language. Unlike Template:FlagLink, users cannot change which page this template links to -- it will link to the country page regardless -- but it does allow users to use the FlagBall in other languages.
- Note: Does not work with Chinese characters (affecting Chinese/Japanese). Japanese kana and Korean hangul work without issue.
Example: