Difference between revisions of "Template:LanguageLink"
From Pandora Wiki
(Created page with "<includeonly>en{{#ifexist: En:{{{1}}} |e|{{#ifexist: {{{1}}} |e|m}}}}</includeonly><noinclude> == Purpose == In order to avoid <nowiki>{{#switch |en = }}</nowiki> in [[Template:...") |
(fix) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>• <span lang="{{{1}}}">[[{{{1}}}:{{{2}}}|{{{3|{{#language:{{{1}}} }}}}}]]</span></includeonly><noinclude> |
− | == | + | Basically, this is used in [[Template:Languages]] and [[Template:LanguageLinks]]. |
+ | == Input parameters == | ||
+ | * '''1st''': language code (ex. de en zh-hans) | ||
+ | * '''2nd''': the base page name (ex. JOSM) | ||
+ | * ''3rd'': (optional) Display name (use it, if mediawiki cannot generate the language name by <nowiki>{{#language:xx}}</nowiki>.) | ||
+ | == example == | ||
+ | <nowiki>{{LanguageLink|de|JOSM}} {{LanguageLink|ja|JOSM}} {{LanguageLink|ja|JOSM|Nihongo}}</nowiki> | ||
− | + | {{LanguageLink|de|JOSM}} {{LanguageLink|ja|JOSM}} {{LanguageLink|ja|JOSM|Nihongo}} | |
− | [[Category:Template:Internationalisation| | + | [[Category:Template:Internationalisation|LanguageLink]] |
</noinclude> | </noinclude> |
Latest revision as of 13:43, 20 April 2011
Basically, this is used in Template:Languages and Template:LanguageLinks.
Input parameters
- 1st: language code (ex. de en zh-hans)
- 2nd: the base page name (ex. JOSM)
- 3rd: (optional) Display name (use it, if mediawiki cannot generate the language name by {{#language:xx}}.)
example
{{LanguageLink|de|JOSM}} {{LanguageLink|ja|JOSM}} {{LanguageLink|ja|JOSM|Nihongo}}