Actions

Template

LANGUAGE/doc

From DramaWiki

< Template:LANGUAGE
This is a documentation subpage for Template:LANGUAGE.

This template returns the name of the language for the country passed as parameter. With this template you can create template phrases that contain a language name, for example [[Category:<language> dramas]].

Notes:
  • Only those few countries/languages are supported which are relevant for DramaWiki.
  • The result isn't always a correct language, for example for Hong Kong the output will be Hong Kong instead of Chinese. The result is rather an adjectival form for a country.
Syntax:
{{LANGUAGE|country}}
The country value can also be an abbreviation or country code.
Language supported country values
1-letter ISO 639-1 ISO 639-2 TLD Country Other1
Japanese j ja jpn jp japan jap
Korean k ko kor kr korea corea
Chinese c zh chi / zho cn china ch / chn
Hong Kong h hk hong kong hongkong
Taiwanese t tw taiwan
Singaporean s sg singapore
Malaysian m ms may / msa my malaysia malay
1) to handle typos and other uncommon abbreviations and spellings
Examples for all supported parameters:
{{LANGUAGE|j}} returns Japanese
{{LANGUAGE|ja}} returns Japanese
{{LANGUAGE|jp}} returns Japanese
{{LANGUAGE|jpn}} returns Japanese
{{LANGUAGE|japan}} returns Japanese
{{LANGUAGE|japanese}} returns Japanese
{{LANGUAGE|k}} returns Korean
{{LANGUAGE|ko}} returns Korean
{{LANGUAGE|kr}} returns Korean
{{LANGUAGE|kor}} returns Korean
{{LANGUAGE|korea}} returns Korean
{{LANGUAGE|korean}} returns Korean
{{LANGUAGE|c}} returns Chinese
{{LANGUAGE|cn}} returns Chinese
{{LANGUAGE|zh}} returns Chinese
{{LANGUAGE|chi}} returns Chinese
{{LANGUAGE|zho}} returns Chinese
{{LANGUAGE|china}} returns Chinese
{{LANGUAGE|chinese}} returns Chinese
{{LANGUAGE|h}} returns Hong Kong
{{LANGUAGE|hk}} returns Hong Kong
{{LANGUAGE|hongkong}} returns Hong Kong
{{LANGUAGE|hong kong}} returns Hong Kong
{{LANGUAGE|t}} returns Taiwanese
{{LANGUAGE|tw}} returns Taiwanese
{{LANGUAGE|taiwan}} returns Taiwanese
{{LANGUAGE|taiwanese}} returns Taiwanese
{{LANGUAGE|s}} returns Singaporean
{{LANGUAGE|sg}} returns Singaporean
{{LANGUAGE|sing}} returns Singaporean
{{LANGUAGE|singapore}} returns Singaporean
{{LANGUAGE|singaporean}} returns Singaporean
{{LANGUAGE|m}} returns Malaysian
{{LANGUAGE|ms}} returns Malaysian
{{LANGUAGE|my}} returns Malaysian
{{LANGUAGE|may}} returns Malaysian
{{LANGUAGE|msa}} returns Malaysian
{{LANGUAGE|malay}} returns Malaysian
{{LANGUAGE|malaysia}} returns Malaysian
{{LANGUAGE|malaysian}} returns Malaysian
Erroneous examples:
{{LANGUAGE}} returns Missing required parameter 1=country(-code)!
{{LANGUAGE|xxx}} returns Unknown