Template:Languagename: Difference between revisions
Content deleted Content added
No edit summary |
replace with {{#language:}} |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{#language:{{{1}}}|{{{2|}}}}}<noinclude>{{Documentation}}</noinclude> |
||
− | {{languagename/db|{{#replace:{{lc:{{{1|}}}}}|_|-}}|{{#switch:{{#replace:{{lc:{{{2|}}}}}|_|-}} |
||
− | |en|en-au|en-ca|en-gb|en-in|en-nz|en-us|en-za=en |
||
− | |fr|fr-be|fr-ca|fr-ch|fr-fr=fr |
||
− | |#default={{#replace:{{lc:{{{2|}}}}}|_|-}} |
||
− | }}}} |
Latest revision as of 08:40, 12 July 2023
{{{1}}}
- Usage:
- This template is just a wrapper for the
{{#language:}}
magic word. If possible, just use the parser function directly instead. Like the magic word, the template takes two unnamed parameters: The first is the language code of the language name you wish to display, and the second optional parameter is a language code for the language the name should be displayed in. If the second parameter is not used, it will display the language's autonym.