Difference between revisions of "Template:CountryLink"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
m (off to reparsing every page in the universe we go)
 
Line 1: Line 1:
<includeonly><onlyinclude>[[File:Icon-{{{1|eRepublik}}}.png|20px|link=]] '''[[{{{1}}}{{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||{{#ifexist:{{{1}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}}}]]'''</onlyinclude></includeonly>
+
<includeonly><onlyinclude>[[File:Icon-{{{1|eRepublik}}}.png|20px|link=]] '''[[{{CountryLink/MakeLink|{{{1}}}}}{{#ifeq: {{SUBPAGENAME}}|{{BASEPAGENAME}}||{{#ifexist:{{CountryLink/MakeLink|{{{1}}}}}/{{SUBPAGENAME}}|/{{SUBPAGENAME}}}}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}}}]]'''</onlyinclude></includeonly>
 
<noinclude>Usage:
 
<noinclude>Usage:
 
  <nowiki>{{CountryLink|Country|Link Name}}</nowiki>
 
  <nowiki>{{CountryLink|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.
* '''Note: Does not work with Chinese characters (affecting Chinese/Japanese). Japanese kana and Korean hangul work without issue.'''  
+
* '''Note: Does not work with Chinese characters (affecting Chinese/Japanese). Japanese kana and Korean hangul work without issue.''' <sub>Is it even true?</sub>
  
 
Example:
 
Example:

Latest revision as of 05:51, 24 May 2014

Usage:

{{CountryLink|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. Is it even true?

Example:

Icon-North Korea.png 조선민주주의인민공화국