Template:I18n templates/en: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
<table class="wikitable" style="text-align:center"> | <table class="wikitable" style="text-align:center"> | ||
<tr><th>Criterion \\ Template</th><th>{{tl|Multilingual description}}</th><th>{{tl|en}}{{tl|fr}}…</th><th>{{tl|LangSwitch}}</th><th>{{tl|Autotranslate}}</th><th>{{tl|TNT}}</th></tr> | <tr><th>Criterion \\ Template</th><th>{{tl|Multilingual description}}</th><th>{{tl|en}}{{tl|fr}}…</th><th>{{tl|LangSwitch}}</th><th>{{tl|Autotranslate}}</th><th>{{tl|TNT}}</th></tr> | ||
<tr><th>Requires JavaScript enabled for folding</th><td> | <tr><th>Requires JavaScript enabled for folding</th><td colspan="2">yes</td><td colspan="3">no</td></tr> | ||
<tr><th>Folding can be disabled by user</th><td> | <tr><th>Folding can be disabled by user</th><td colspan="2">yes</td><td colspan="3">no</td></tr> | ||
<tr><th>Folding is done server-side</th><td> | <tr><th>Folding is done server-side</th><td colspan="2">no</td><td colspan="3">yes</td></tr> | ||
<tr><th>Folding when at least x languages are provided</th><td>1</td><td>4</td><td | <tr><th>Folding when at least x languages are provided</th><td>1</td><td>4</td><td colspan="3">1</td></tr> | ||
<tr><th>Supports language fallbacks</th><td colspan="2 | <tr><th>Supports language fallbacks</th><td colspan="2">no</td><td>yes</td><td>no</td><td>yes</td></tr> | ||
<tr><th>Collation order of languages (when not folded)</th><td>LTR scripts: Latin, Latin or Cyrillic, Cyrillic, Greek, other simple LTR alphabets (Armenian, Georgian, etc.), abugidas (North Indian, South Indian, other South-East Asian, etc.), syllabaries (European, American, African, Asian), Korean alphabets (basic Jamos, Hangul including some sinograms), Japanese syllabaries (including some sinograms), sinograms (including some syllabaries); RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko)</td><td>as provided by the user in the wikitext | <tr><th>Collation order of languages (when not folded)</th><td>LTR scripts: Latin, Latin or Cyrillic, Cyrillic, Greek, other simple LTR alphabets (Armenian, Georgian, etc.), abugidas (North Indian, South Indian, other South-East Asian, etc.), syllabaries (European, American, African, Asian), Korean alphabets (basic Jamos, Hangul including some sinograms), Japanese syllabaries (including some sinograms), sinograms (including some syllabaries); RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko)</td><td>as provided by the user in the wikitext</td><td colspan="3">N/A</td></tr> | ||
<tr><th>Search indexing issues</th><td> | <tr><th>Search indexing issues</th><td colspan="2">no (all translations are included on the same page)</td><td>yes (may not index all languages depending on search engines, unless there's a list of links for visiting other languages)</td><td>partially (where used; language subpages of templates are indexed)</td><td colspan="3">no (translated pages should include a <code><nowiki><languages/></nowiki></code> navigation bar for visiting other languages)</td></tr> | ||
<tr><th>Recommended use at</th><td>categories, galleries</td><td>file description pages</td><td>small templates, whenever the previous options are not suitable</td><td>larger templates when used on pages that do not have language subpages (e.g. not having <code><nowiki>Main page/en</nowiki></code>, <code><nowiki>Main page/de</nowiki></code>) and where the language displayed will be automatically determined by the language set in user preferences</td><td>larger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the [[:mw:Help:Extension:Translate|Translate Extension]]</td></tr> | <tr><th>Page size issues</th><td colspan="2">yes (may exhaust size or time limits in the wiki parser if many languages are included; no folding and all translations included if the preferred language selected by the user is missing)</td><td colspan="3">no (the content only for the selected language is present in the generated page)</td></tr> | ||
<tr><th>Recommended use at</th><td>categories, galleries</td><td>file description pages</td><td>small templates, whenever the previous options are not suitable</td><td>data tables with translated cells; larger templates when used on pages that do not have language subpages (e.g. not having <code><nowiki>Main page/en</nowiki></code>, <code><nowiki>Main page/de</nowiki></code>) and where the language displayed will be automatically determined by the language set in user preferences</td><td>larger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the [[:mw:Help:Extension:Translate|Translate Extension]]</td></tr> | |||
<tr><th>Contains expensive parser functions</th><td colspan="3">no</td><td colspan="2">yes</td></tr> | <tr><th>Contains expensive parser functions</th><td colspan="3">no</td><td colspan="2">yes</td></tr> | ||
</table></onlyinclude> | </table></onlyinclude> | ||
{{documentation}} | {{documentation}} | ||
Revision as of 15:32, 4 May 2020
Help for choosing the right template for your use case:
| Criterion \\ Template | {{Multilingual description}} | {{En}}{{Fr}}… | {{LangSwitch}} | {{Autotranslate}} | {{TNT}} | ||
|---|---|---|---|---|---|---|---|
| Requires JavaScript enabled for folding | yes | no | |||||
| Folding can be disabled by user | yes | no | |||||
| Folding is done server-side | no | yes | |||||
| Folding when at least x languages are provided | 1 | 4 | 1 | ||||
| Supports language fallbacks | no | yes | no | yes | |||
| Collation order of languages (when not folded) | LTR scripts: Latin, Latin or Cyrillic, Cyrillic, Greek, other simple LTR alphabets (Armenian, Georgian, etc.), abugidas (North Indian, South Indian, other South-East Asian, etc.), syllabaries (European, American, African, Asian), Korean alphabets (basic Jamos, Hangul including some sinograms), Japanese syllabaries (including some sinograms), sinograms (including some syllabaries); RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko) | as provided by the user in the wikitext | N/A | ||||
| Search indexing issues | no (all translations are included on the same page) | yes (may not index all languages depending on search engines, unless there's a list of links for visiting other languages) | partially (where used; language subpages of templates are indexed) | no (translated pages should include a <languages/> navigation bar for visiting other languages) | |||
| Page size issues | yes (may exhaust size or time limits in the wiki parser if many languages are included; no folding and all translations included if the preferred language selected by the user is missing) | no (the content only for the selected language is present in the generated page) | |||||
| Recommended use at | categories, galleries | file description pages | small templates, whenever the previous options are not suitable | data tables with translated cells; larger templates when used on pages that do not have language subpages (e.g. not having Main page/en, Main page/de) and where the language displayed will be automatically determined by the language set in user preferences | larger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the Translate Extension | ||
| Contains expensive parser functions | no | yes | |||||
This documentation is transcluded from Template:I18n templates/doc.
This template is used as info in i18n template documentations and has no parameters
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||