Difference between revisions of "Template:Lang icon"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Added JA, ZH-HANS, and ZH-HANT parenthesis.)
Line 1: Line 1:
<span class="languageicon" style="font-size:95%; font-weight:bold; font-style:normal; color:#555;">({{#switch:{{{1|¬}}}
+
<span class="languageicon" style="font-size:95%; font-weight:bold; font-style:normal; color:#555;">{{lang
 +
  | en = (
 +
  | ja = (
 +
  | zh-hans = (
 +
  | zh-hant = (
 +
}}{{#switch:{{{1|¬}}}
 
  | ¬ | en = {{lang<!--  
 
  | ¬ | en = {{lang<!--  
 
   | This is for literally the word "English" in your language. -->
 
   | This is for literally the word "English" in your language. -->
Line 24: Line 29:
 
   }}
 
   }}
 
  | #default = {{#language:{{{1}}}}}
 
  | #default = {{#language:{{{1}}}}}
  }})</span><noinclude>
+
  }}{{lang
 +
  | en = )
 +
  | ja = )
 +
  | zh-hans = )
 +
  | zh-hant = )
 +
}}</span><noinclude>
 
{{translation switching|en, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ru, sv, tr, zh-hans, zh-hant}}
 
{{translation switching|en, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ru, sv, tr, zh-hans, zh-hant}}
 
{{Doc begin}}
 
{{Doc begin}}

Revision as of 01:35, 10 May 2021

(English)

Documentation for Lang icon

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)