Difference between revisions of "Template:I18n"

From ArchWiki
Jump to: navigation, search
(French and Finnish have their separate wikis and should use interlanguage links)
(Template:i18n is deprecated, use interlanguage links, see Help talk:I18n#"Dummy" interlanguage links and deprecation of Template:i18n; remove Template:Lang dependency, adapt for maintenance purposes)
Line 1: Line 1:
 
<noinclude>{{Template}} {{DISPLAYTITLE:Template:i18n}}
 
<noinclude>{{Template}} {{DISPLAYTITLE:Template:i18n}}
 +
This template has only maintenance purposes. For linking to local translations please use interlanguage links, see [[Help:Editing]] and [[Help:i18n]].
  
'''An 'i18n' box used to display the available translations of an article. See also [[Help:i18n]].'''
+
==Example==
 
+
{{Note|In order for a new language to be added to this template, it must have at least 3 ''complete'' translations that are clearly ''useful'' for many users: examples of very useful articles are [[Main Page]], [[Arch Linux]] and the [[Beginners' Guide]]; on the other hand, articles in the DeveloperWiki namespace, template pages, laptop-specific articles and general-maintenance pages are examples of articles that will not be counted as valid translations; in any case the final decision of adding a language is up to the administrators: if you are in doubt please contact one of them before starting any translation.}}
+
 
+
====Usage====
+
 
+
This template should be added at the beginning of every article (ideally below category markers but above any other content).
+
 
+
&#123;{i18n|Template:i18n}}
+
 
+
The argument must match the English title of the article (i.e. without any language tag).
+
 
+
====Example====
+
  
 
{{i18n|Template:i18n}}</noinclude><includeonly><div class="toc noprint" style="text-align: center; margin-bottom: 1em">
 
{{i18n|Template:i18n}}</noinclude><includeonly><div class="toc noprint" style="text-align: center; margin-bottom: 1em">
'''[[Help:i18n|i18n]]'''
+
This template has only maintenance purposes. For linking to local translations please use interlanguage links, see [[Help:Editing]] and [[Help:i18n]].
 
----
 
----
{{Lang|{{{1}}}|Dansk}}
+
[[{{{1}}} (Dansk)|Dansk]]&nbsp;&ndash;
[[{{{2|{{{1}}}}}}|English]]&nbsp;&ndash; <!-- English is special -->
+
[[{{{1}}} (Deutsch)|Deutsch]]&nbsp;&ndash;
{{Lang|{{{1}}}|Español}}
+
[[{{{1}}}|English]]&nbsp;&ndash;
{{Lang|{{{1}}}|Hrvatski}}
+
[[{{{1}}} (Español)|Español]]&nbsp;&ndash;
{{Lang|{{{1}}}|Indonesia}}
+
[[{{{1}}} (Français)|Français]]&nbsp;&ndash;
{{Lang|{{{1}}}|Italiano}}
+
[[{{{1}}} (Hrvatski)|Hrvatski]]&nbsp;&ndash;
{{Lang|{{{1}}}|Lietuviškai}}
+
[[{{{1}}} (Indonesia)|Indonesia]]&nbsp;&ndash;
{{Lang|{{{1}}}|Magyar}}
+
[[{{{1}}} (Italiano)|Italiano]]&nbsp;&ndash;
{{Lang|{{{1}}}|Nederlands}}
+
[[{{{1}}} (Lietuviškai)|Lietuviškai]]&nbsp;&ndash;
{{Lang|{{{1}}}|Polski}}
+
[[{{{1}}} (Magyar)|Magyar]]&nbsp;&ndash;
{{Lang|{{{1}}}|Português}}
+
[[{{{1}}} (Nederlands)|Nederlands]]&nbsp;&ndash;
{{Lang|{{{1}}}|Slovenský}}
+
[[{{{1}}} (Polski)|Polski]]&nbsp;&ndash;
{{Lang|{{{1}}}|Svenska}}
+
[[{{{1}}} (Português)|Português]]&nbsp;&ndash;
{{Lang|{{{1}}}|Česky}}
+
[[{{{1}}} (Română)|Română]]&nbsp;&ndash;
{{Lang|{{{1}}}|Ελληνικά}}
+
[[{{{1}}} (Slovenský)|Slovenský]]&nbsp;&ndash;
{{Lang|{{{1}}}|Български}}
+
[[{{{1}}} (Suomi)|Suomi]]&nbsp;&ndash;
{{Lang|{{{1}}}|Русский}}
+
[[{{{1}}} (Svenska)|Svenska]]&nbsp;&ndash;
{{Lang|{{{1}}}|Српски}}
+
[[{{{1}}} (Türkçe)|Türkçe]]&nbsp;&ndash;
{{Lang|{{{1}}}|Українська}}
+
[[{{{1}}} (Česky)|Česky]]&nbsp;&ndash;
{{Lang|{{{1}}}|עברית}}
+
[[{{{1}}} (Ελληνικά)|Ελληνικά]]&nbsp;&ndash;
{{Lang|{{{1}}}|ไทย}}
+
[[{{{1}}} (Български)|Български]]&nbsp;&ndash;
{{Lang|{{{1}}}|日本語}}
+
[[{{{1}}} (Русский)|Русский]]&nbsp;&ndash;
{{Lang|{{{1}}}|正體中文}}
+
[[{{{1}}} (Српски)|Српски]]&nbsp;&ndash;
{{Lang|{{{1}}}|简体中文}}
+
[[{{{1}}} (Українська)|Українська]]&nbsp;&ndash;
[[{{{1}}} (한국어)|한국어]] <!-- last entry is special (don't display trailing dash) -->
+
[[{{{1}}} (עברית)|עברית]]&nbsp;&ndash;
 +
[[{{{1}}} (فارسی)|فارسی]]&nbsp;&ndash;
 +
[[{{{1}}} (ไทย)|ไทย]]&nbsp;&ndash;
 +
[[{{{1}}} (日本語)|日本語]]&nbsp;&ndash;
 +
[[{{{1}}} (正體中文)|正體中文]]&nbsp;&ndash;
 +
[[{{{1}}} (简体中文)|简体中文]]&nbsp;&ndash;
 +
[[{{{1}}} (한국어)|한국어]]
 
</div></includeonly>
 
</div></includeonly>

Revision as of 11:16, 14 June 2012

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:Editing and Help:i18n.

Example

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی