Template:I18n templates/en: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
|style="background:#FDD"| 4 | |style="background:#FDD"| 4 | ||
|colspan="3" style="background:#CFC"| 1 | |colspan="3" style="background:#CFC"| 1 | ||
|- | |||
!scope="row" style="text-align:left"| Detection of duplicate, incorrect, or unsupported language codes | |||
|style="background:#CFC"| Yes | |||
|style="background:#FDD"| No | |||
|colspan="3" style="background:#CFC"| Yes | |||
|- | |||
!scope="row" style="text-align:left"| Allows the same translation to be used for several languages | |||
|colspan="2" style="background:#CFC"| No | |||
|colspan="3" style="background:#FDD"| Yes | |||
|- | |- | ||
!scope="row" style="text-align:left"| Supports language fallbacks | !scope="row" style="text-align:left"| Supports language fallbacks | ||
| Line 41: | Line 50: | ||
|- | |- | ||
!scope="row" style="text-align:left"| Collation order of languages (when not folded) | !scope="row" style="text-align:left"| Collation order of languages (when not folded) | ||
|style="background:#CFC;text-align:left"| Consistant order: | |style="background:#CFC;text-align:left"| Consistant order by native language name, languages grouped by script: | ||
* 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) | * 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) | * RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko) | ||
|style="background:#FDD"| | |style="background:#FDD"| As provided by the user in the wikitext (any inconsistant order may be difficult to lookup visually) | ||
|style="background:#CCC" colspan="3"| N/A | |style="background:#CCC" colspan="3"| N/A | ||
|- | |- | ||
| Line 60: | Line 69: | ||
|colspan="3" style="background:#CFC"| No | |colspan="3" style="background:#CFC"| No | ||
|colspan="2" style="background:#FDD"| Yes | |colspan="2" style="background:#FDD"| Yes | ||
|}</onlyinclude> | |}</onlyinclude>{{Documentation|Template:I18n templates/doc}}<!-- put categories and docu for this template on its /doc subpage --></noinclude> | ||
{{Documentation| | |||
Revision as of 16:35, 4 May 2020
| I18n templates: | {{Multilingual description}} | {{En}}{{Fr}}... | {{LangSwitch}} | {{Autotranslate}} | {{TNT}} | ||
|---|---|---|---|---|---|---|---|
| Recommended use at | Categories, galleries | File description pages | Small templates, whenever the previous options are not suitable (removes the visual indication of the language before each translated text) | Data tables with translated cells or 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
|
Data tables with translated cells or larger templates, when used on pages that do have language subpages; most of the time these will be pages prepared with the Translate Extension | ||
| 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 n languages are provided | 1 | 4 | 1 | ||||
| Detection of duplicate, incorrect, or unsupported language codes | Yes | No | Yes | ||||
| Allows the same translation to be used for several languages | No | Yes | |||||
| Supports language fallbacks | No | Yes | No | Yes | |||
| Collation order of languages (when not folded) | Consistant order by native language name, languages grouped by script:
|
As provided by the user in the wikitext (any inconsistant order may be difficult to lookup visually) | N/A | ||||
| Search indexing issues | No (all translations are included on the same page, however search results may be less relevant with many languages mixed) | 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; larger pages to download for all visitors; slower navigation for visitors with slow Internet access; may be costly for visitors with limited data plans) | No (only the content for the selected language or a suitable fallback language is present in the generated page) | |||||
| 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 | ||||||