Difference between revisions of "Template:Lang icon"

From Team Fortress Wiki
Jump to: navigation, search
m (lc)
(change how this is handled to allow translations of the word 'English')
Line 1: Line 1:
<span class="languageicon" style="font-size:95%; font-weight:bold; font-style:normal; color:#555;">({{#language:{{lc:{{{1|en}}}}}}})</span><noinclude>
+
<span class="languageicon" style="font-size:95%; font-weight:bold; font-style:normal; color:#555;">({{#switch:{{{1|¬}}}
 +
| ¬ | en = {{lang<!--
 +
  | This is for literally the word "English" in your language. -->
 +
  | en = English
 +
  }}
 +
| #default = {{#language:{{{1}}}}}
 +
}})</span><noinclude>
 
== Usage ==
 
== Usage ==
 
* Place this after an external link if the link leads to a different language. An English external link should use this on a Russian page, for example.
 
* Place this after an external link if the link leads to a different language. An English external link should use this on a Russian page, for example.

Revision as of 21:26, 11 March 2011

(English)

Usage

  • Place this after an external link if the link leads to a different language. An English external link should use this on a Russian page, for example.
  • Example:
{{lang icon|fr}} generates (français)