Changes

Jump to navigation Jump to search
Created page with "<languages/> <onlyinclude>{|class="wikitable" style="text-align:center" |+ Help for choosing the right template for your use case: |- |- !scope="row" style="text-align:left"|..."
<languages/>
<onlyinclude>{|class="wikitable" style="text-align:center"
|+ Help for choosing the right template for your use case:
|-
|-
!scope="row" style="text-align:left"| <small style="font-size:x-small">[[Template:I18n templates|I18n templates]]:</small>
!scope="col" style="text-align:left"| {{tlx|Multilingual description|2=lang=<br />|3=de,en,default=''Deutsch/English''<br />|4=fr=''français''<br />|5=...<br />}}
!scope="col" style="text-align:left"| {{tlx|de|2=''Deutsch''}}<br/> {{tlx|en|2=''English''}}<br/> {{tlx|fr|2=''français''}}<br/> ...
!scope="col" style="text-align:left"| {{tlx|LangSwitch|2=lang=<br />|3=de,en,default=''Deutsch/English''<br />|4=fr=''français''<br />|5=...<br />}}
!scope="col"| {{tlx|Autotranslate}}
!scope="col"| {{tlx|TNT}}
|-
!scope="row" style="text-align:left"| Recommended use at
|style="text-align:left"| Categories, galleries
|style="text-align:left"| File description pages ''(deprecated, can be safely replaced by {{tl|Multilingual description}})''
|style="text-align:left"| Small templates, whenever the previous options are not suitable (removes the visual indication of the language before each translated text)
|style="text-align:left"| Data tables with translated cells or 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
|style="text-align:left"| 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 [[:mw:Help:Extension:Translate|Translate Extension]]
|-
!scope="row" style="text-align:left"| Requires JavaScript enabled for folding
|colspan="2" style="background:#FDD"| Yes
|colspan="3" style="background:#CFC"| No
|-
!scope="row" style="text-align:left"| Folding can be disabled by user
|colspan="2" style="background:#CFC"| Yes
|colspan="3" style="background:#FDD"| No
|-
!scope="row" style="text-align:left"| Folding is done server-side
|colspan="2" style="background:#CFC"| No
|colspan="3" style="background:#FDD"| Yes
|-
!scope="row" style="text-align:left"| Folding when at least ''n'' languages are provided
|style="background:#FFC"| 1 (all translations are shown without folding if the preferred language selected by the user has no matching translation)
|style="background:#FDD"| 4
|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
|style="background:#CFC"| Yes
|style="background:#FDD"| No
|colspan="3" style="background:#CFC"| Yes
|-
!scope="row" style="text-align:left"| Supports language fallbacks
|colspan="2" style="background:#FDD"| No
|style="background:#CFC"| Yes
|style="background:#FDD"| No
|style="background:#CFC"| Yes
|-
!scope="row" style="text-align:left"| Collation order of languages (when not folded)
|style="background:#CFC;text-align:left"| Consistent 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)
* RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko)
|style="background:#FDD"| As provided by the user in the wikitext (any inconsistent order may be difficult to lookup visually)
|style="background:#CCC" colspan="3"| N/A
|-
!scope="row" style="text-align:left"| Search indexing issues
|colspan="2" style="background:#CFC"| No (all translations are included on the same page, however search results may be less relevant with many languages mixed)
|style="background:#FDD"| Yes (may not index all languages depending on search engines, unless there's a list of links for visiting other languages)
|style="background:#FFC"| Partially (where used; language subpages of templates are indexed)
|style="background:#CFC"| No (translated pages should include a <code><nowiki><languages/></nowiki></code> navigation bar for visiting other languages)
|-
!scope="row" style="text-align:left"| Page size issues
|colspan="2" style="background:#FDD"| Yes (may exhaust size or time limits in the wiki parser if many languages are included; larger pages to download for all visitors; slower navigation for visitors with slow Internet access; may be costly for visitors with limited data plans)
|colspan="3" style="background:#CFC"| No (only the content for the selected language or a suitable fallback language is present in the generated page)
|-
!scope="row" style="text-align:left"| Contains expensive parser functions
|colspan="3" style="background:#CFC"| No
|colspan="2" style="background:#FDD"| Yes (unless there's an editable <code>/lang</code> subpage listing all the existing translations selected with a {{tl|LangSwitch}})
|}</onlyinclude>{{Documentation|Template:I18n templates/doc}}<!-- put categories and docu for this template on its /doc subpage --></noinclude>

Navigation menu