Template:Wn/shn/Languageicon/doc

From Wikimedia Incubator

Usage[edit source]

Please see: Category:Language templates, which lists the pre-made language templates currently available on Wikinews.

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

This template is intended for indirect use to label non-English language links, informing the reader that the language of the link's destination is something other than English. Language codes can be found here. Please use the Alpha-2 codes on that list, where possible.

The following code:

{{languageicon|de|German|German language}}

gives:

(German)

Usually this template is used only by specific language templates, so this template does not appear directly on articles. The above is equivalent to {{Wn/shn/German}}, or {{Wn/shn/de}}.

The template should be added after links, and there should be a space between the link and the template. For source citations, the {{Wn/shn/Source}} template does this automatically when given a parameter lang naming a specific language-template.

The following code:

[http://french.example.com/ French link] {{Wn/shn/French}}
*{{Wn/shn/Source|url=http://www.example.com|title=Your Source|author=|pub=BBC News Offline|date=October 19, 1976|lang=Quenya}}

gives:

French link (ၾရၢင်ႇသဵတ်ႈ)

If this template is given only two parameters, the missing parameter is understood to be the language wikilink target, so the icon is unlinked; {{languageicon|de|German}} would produce (German). Given only one parameter, the remaining parameter is understood to be <language name>; so {{languageicon|German}} too would produce (German).