Difference between revisions of "Template:Languageicon"

From Chevy Wiki
Jump to navigation Jump to search
 
m (1 revision)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:
<span class="languageicon" style="font-size:0.95em; font-weight:bold; color:#555;">({{language|{{{1}}}}})</span><noinclude>
  <!--If no or empty "demospace" parameter then detect namespace-->
  {{#if:{{{demospace|}}}
  | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
  | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
    | main
    | {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
      | talk
      | other
      }}
    }}
  }}
| main    = {{{1|}}}
| talk    = {{{2|}}}
| other
| #default = {{{3|}}}
}}<!--End switch--><noinclude>
 
{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{Documentation}}
{{template doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 15:00, 3 February 2009

(Unrecognised language code)

[edit] Template-info.svg Template documentation

Usage

{{languageicon|<language code>|<language name>}}

Example

{{languageicon|eo}} displays: (Esperanto)

Note

For the correct placement and other details, please follow the manual of style guidelines for links to foreign-language sites.

English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title).

See also

  • Language icons in the form {{xx icon}}, descending from this one, are listed in Category:Language icon templates.
  • Language codes cross-reference: list of ISO 639 codes.
  • Template:Languageicon/Notes. This has documentation for the codes listed on Category:Language icon templates, which can be updated easily.

bs:Šablon:Simboli jezika cy:Nodyn:Eiconiaith da:Skabelon:Sprogikon fa:الگو:نشان زبان fr:Modèle:Indication de langue ko:틀:언어고리 hr:Template:Languageicon mk:Шаблон:Јазичка икона ja:Template:Languageicon nl:Sjabloon:Taalaanduiding ru:Шаблон:Ref-lang sq:Stampa:Ikonë gjuha sk:Šablóna:Languageicon sl:Predloga:Ikona jezika th:Template:Languageicon zh:Template:Languageicon