13,208
edits
(Usage when translating templates) |
m (Doc style) |
||
Line 7: | Line 7: | ||
The language the text will be shown in depends on the two letter language code between the page namespace and the page title, for example [[Talk:De/HB Radio-NAV|Talk:'''De'''/HB Radio-NAV]]. If a parameter with a text is not available in the language of the page or is empty, the English text will be shown instead provided it is available. | The language the text will be shown in depends on the two letter language code between the page namespace and the page title, for example [[Talk:De/HB Radio-NAV|Talk:'''De'''/HB Radio-NAV]]. If a parameter with a text is not available in the language of the page or is empty, the English text will be shown instead provided it is available. | ||
__TOC__ | __TOC__ | ||
Line 14: | Line 13: | ||
The parameters of this template corresponds to the ISO 639-1 two letter language code for the language to be used in that parameter. | The parameters of this template corresponds to the ISO 639-1 two letter language code for the language to be used in that parameter. | ||
For testing and demonstration purposes the named parameter '''lang | For testing and demonstration purposes the named parameter '''lang''' can be used to select a different language than the language of the page the template is used on. | ||
< | <nowiki>{{</nowiki>'''LangSwitch''' <nowiki>|</nowiki>''de='' <nowiki>|</nowiki>''en='' <nowiki>|</nowiki>''es='' <nowiki>|</nowiki>''fr='' <nowiki>|</nowiki>''nl='' <nowiki>|</nowiki>''ru='' ... <nowiki>|</nowiki>''lang=''<nowiki>}}</nowiki> | ||
{{LangSwitch |de= |en= |es= |fr= |nl= |ru= |lang=}} | |||
</ | |||
< | <nowiki>{{</nowiki>'''LangSwitch''' | ||
{{LangSwitch | <nowiki>|</nowiki> ''de'' = | ||
|de = | <nowiki>|</nowiki> ''en'' = | ||
|en = | <nowiki>|</nowiki> ''es'' = | ||
|es = | <nowiki>|</nowiki> ''fr'' = | ||
|fr = | <nowiki>|</nowiki> ''nl'' = | ||
|nl = | <nowiki>|</nowiki> ''ru'' = | ||
|ru = | ... | ||
|lang = | <nowiki>|</nowiki> ''lang'' = | ||
}} | <nowiki>}}</nowiki> | ||
</ | |||
=== Translating templates === | === Translating templates === |