Difference between revisions of "Template:I18n"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<includeonly><div class="i18n"> {{Lang|{{{1}}}|Dansk}} {{Lang|{{{1}}}|Deutsch}} [[{{{2|{{{1}}}}}}|English]] – <!-- English is special --> {{Lang|{{{1}}}|Español}} ...") |
|||
Line 1: | Line 1: | ||
− | <includeonly><div class="i18n"> | + | <noinclude>'''An 'i18n' box used to display inter-language links. See [[Help:i18n]].''' |
+ | |||
+ | Shamelessly stolen from the [http://wiki.archlinux.org/index.php/Template:I18n Arch Linux wiki]. | ||
+ | |||
+ | ====Usage==== | ||
+ | |||
+ | This template should be added at the beginning of every article (ideally below category markers but above any other content). | ||
+ | |||
+ | <pre>{{i18n|Template:i18n}}</pre> | ||
+ | |||
+ | The argument should be modified to match the English title of the article (i.e. without any language tag). | ||
+ | |||
+ | Inter-language links are sorted alphabetically via JavaScript; see the language table ([[Help:i18n#Languages]]) and [[Wikipedia:Help:Sorting]] for details. | ||
+ | |||
+ | ====Example==== | ||
+ | |||
+ | {{i18n|Template:i18n}}</noinclude><includeonly><div class="i18n"> | ||
{{Lang|{{{1}}}|Dansk}} | {{Lang|{{{1}}}|Dansk}} | ||
{{Lang|{{{1}}}|Deutsch}} | {{Lang|{{{1}}}|Deutsch}} |
Revision as of 22:26, 17 February 2013
An 'i18n' box used to display inter-language links. See Help:i18n.
Shamelessly stolen from the Arch Linux wiki.
Usage
This template should be added at the beginning of every article (ideally below category markers but above any other content).
{{i18n|Template:i18n}}
The argument should be modified to match the English title of the article (i.e. without any language tag).
Inter-language links are sorted alphabetically via JavaScript; see the language table (Help:i18n#Languages) and Wikipedia:Help:Sorting for details.
Example