Difference between revisions of "Template:I18n"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(119 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
====Example==== | ====Example==== | ||
− | |||
{{i18n|Template:i18n}}</noinclude><includeonly> | {{i18n|Template:i18n}}</noinclude><includeonly> | ||
− | == | + | <html> |
− | <div class="i18n" | + | <!--script type="text/javascript" src="http://wiki.visionaire-tracker.net/extensions/lightswitch/jquery-cookie.js"></script--> |
+ | <!--script type="text/javascript" src="http://wiki.visionaire-tracker.net/extensions/lightswitch/lightswitch.js"></script--> | ||
+ | </html> | ||
+ | <div style="margin-top:0 px;"> | ||
+ | ---- | ||
+ | {| class="ts i18n" | ||
+ | |- | ||
+ | | style="padding-top:27.5px;font-weight: 300;font-size:11px;text-align:center;" | | ||
+ | {{Lang|{{{1}}}|日本語}} | ||
+ | {{Lang|{{{1}}}|正體中文}} | ||
+ | {{Lang|{{{1}}}|한국어}} | ||
{{Lang|{{{1}}}|Dansk}} | {{Lang|{{{1}}}|Dansk}} | ||
{{Lang|{{{1}}}|Deutsch}} | {{Lang|{{{1}}}|Deutsch}} | ||
Line 23: | Line 32: | ||
{{Lang|{{{1}}}|Español}} | {{Lang|{{{1}}}|Español}} | ||
{{Lang|{{{1}}}|Français}} | {{Lang|{{{1}}}|Français}} | ||
− | {{Lang|{{{1}}}|Indonesia}} | + | <!--{{Lang|{{{1}}}|Indonesia}}--> |
{{Lang|{{{1}}}|Italiano}} | {{Lang|{{{1}}}|Italiano}} | ||
− | {{Lang|{{{1}}}|Lietuviškai}} | + | <!--{{Lang|{{{1}}}|Lietuviškai}}--> |
− | {{Lang|{{{1}}}|Magyar}} | + | <!--{{Lang|{{{1}}}|Magyar}}--> |
{{Lang|{{{1}}}|Nederlands}} | {{Lang|{{{1}}}|Nederlands}} | ||
{{Lang|{{{1}}}|Polski}} | {{Lang|{{{1}}}|Polski}} | ||
{{Lang|{{{1}}}|Português}} | {{Lang|{{{1}}}|Português}} | ||
− | {{Lang|{{{1}}}|Română}} | + | <!--{{Lang|{{{1}}}|Română}}--> |
− | {{Lang|{{{1}}}|Slovenský}} | + | <!--{{Lang|{{{1}}}|Slovenský}}--> |
− | {{Lang|{{{1}}}|Suomi}} | + | <!--{{Lang|{{{1}}}|Suomi}}--> |
{{Lang|{{{1}}}|Svenska}} | {{Lang|{{{1}}}|Svenska}} | ||
− | {{Lang|{{{1}}}|Türkçe}} | + | <!--{{Lang|{{{1}}}|Türkçe}}--> |
− | {{Lang|{{{1}}}|Česky}} | + | <!--{{Lang|{{{1}}}|Česky}}--> |
− | {{Lang|{{{1}}}|Ελληνικά}} | + | <!--{{Lang|{{{1}}}|Ελληνικά}}--> |
− | {{Lang|{{{1}}}|Български}} | + | <!--{{Lang|{{{1}}}|Български}}--> |
− | {{Lang|{{{1}}}|Русский}} | + | <!--{{Lang|{{{1}}}|Русский}}--> |
− | {{Lang|{{{1}}}|Српски}} | + | [[{{{1}}} (Русский)|Русский]] <!-- last entry is special (don't display trailing dash) --> |
− | {{Lang|{{{1}}}|Українська}} | + | <!--{{Lang|{{{1}}}|Српски}}--> |
− | {{Lang|{{{1}}}|עברית}} | + | <!--{{Lang|{{{1}}}|Українська}}--> |
− | {{Lang|{{{1}}}|ไทย}} | + | <!--{{Lang|{{{1}}}|עברית}}--> |
− | {{Lang|{{{1}}}|日本語}} | + | <!--{{Lang|{{{1}}}|ไทย}}--> |
− | {{Lang|{{{1}}}|正體中文}} | + | <!--{{Lang|{{{1}}}|日本語}}--> |
− | {{Lang|{{{1}}}|简体中文}} | + | <!--{{Lang|{{{1}}}|正體中文}}--> |
− | {{Lang|{{{1}}}|Tiếng Việt}} | + | <!--{{Lang|{{{1}}}|简体中文}}--> |
− | [[{{{1}}} (한국어)|한국어]] <!-- last entry is special (don't display trailing dash) --> | + | <!--{{Lang|{{{1}}}|Tiếng Việt}}--> |
− | <br/> | + | <!--[[{{{1}}} (한국어)|한국어]]--> <!-- last entry is special (don't display trailing dash) --> |
− | <span style="text-align:right;">''[[Help:i18n|More info]]''</span> | + | <!--| style="padding-top:25px; padding-left: 22.5px;" | --> |
− | </div></includeonly> | + | |} |
+ | <!--<br/> | ||
+ | <span style="text-align:right;">''[[Help:i18n|More info]]''</span>--> | ||
+ | <!--/div--></div></includeonly> |
Latest revision as of 20:42, 18 November 2016
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