Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:I18n templates: Difference between revisions

Template page
disable T:17 translation of the caption for now, the template has to work as is
disable all translation, because this template has to work as is, get rid of HTML table while at it
Line 1: Line 1:
<languages/>
<!-- disabled for now, c.f. [[Commons:Requests for comment/How Commons should deal with TemplateData]] -->
 
{| class="wikitable"
<onlyinclude>
|+ Help for choosing the right template for your use case
<table class="wikitable">
|-
<caption><!-- translate --><!--T:17-->Help for choosing the right template for your use case</caption><!-- /translate -->
!Criterion \\ Template
<tr><th><translate><!--T:1-->
!{{tl|Multilingual description}}
Criterion \\ Template</translate></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>
!{{tl|en}}{{tl|fr}}…
<tr><th><translate><!--T:2-->
!{{tl|LangSwitch}}
Requires JavaScript enabled for folding</translate></th><td>+</td><td>+</td><td>-</td><td>-</td><td>-</td></tr>
!{{tl|Autotranslate}}
<tr><th><translate><!--T:3-->
!{{tl|TNT}}
Folding can be disabled by user</translate></th><td>+</td><td>+</td><td>-</td><td>-</td><td>-</td></tr>
|-
<tr><th><translate><!--T:4-->
!Requires JavaScript enabled for folding
Folding is done server-side</translate></th><td>-</td><td>-</td><td>+</td><td>+</td><td>+</td></tr>
||+||+||-||-||-
<tr><th><translate><!--T:5-->
|-
Folding when at least x languages are provided</translate></th><td>1</td><td>4</td><td>1</td><td>1</td><td>1</td></tr>
!Folding can be disabled by user
<tr><th><translate><!--T:6-->
||+||+||-||-||-
Collation order of languages (when not folded)</translate></th><td><translate><!--T:18-->
|-
Latin, Latin or Cyrillic, Cyrillic, Greek, Other simple LTR alphabets, Indic, Other South Asian, Syllabaries, Hangul, Japanese scripts, Sinograms, (RTL) Hebrew, (RTL) Arabic languages</translate></td><td><translate><!--T:7-->
!Folding is done server-side
as provided by the user in the wikitext</translate></td><td>//</td><td>//</td><td>//</td></tr>
||-||-||+||+||+
<tr><th><translate><!--T:8-->
|-
Search indexing issues</translate></th><td>-</td><td>-</td><td>+</td><td><translate><!--T:9-->
!Folding when at least x languages are provided
partially (where used; language subpages of templates are indexed)</translate></td><td>-</td></tr>
||1||4||1||1||1
<tr><th><translate><!--T:10-->
|-
Recommended use at</translate></th><td><translate><!--T:11-->
!Collation order of languages (when not folded)
pages requiring JavaScript anyway</translate></td><td><translate><!--T:12-->
|Latin, Latin or Cyrillic, Cyrillic, Greek, Other simple LTR alphabets, Indic, Other South Asian, Syllabaries, Hangul, Japanese scripts, Sinograms, (RTL) Hebrew, (RTL) Arabic languages
n/a</translate></td><td><translate><!--T:13-->
|as provided by the user in the wikitext
anything not needing more convoluted solutions.</translate></td><td><translate><!--T:14-->
||//||//||//
larger templates when used on pages that do not have language subpages (e.g. not having <tvar|example><code><nowiki>Main page/en</nowiki></code></>, <tvar|example2><code><nowiki>Main page/de</nowiki></code></>) and where the language displayed will be automatically determined by the language set in user preferences</translate></td><td><translate><!--T:15-->
|-
larger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the [[<tvar|page>:mw:Help:Extension:Translate</>|Translate Extension]]</translate></td></tr>
!Search indexing issues
<tr><th><translate><!--T:16-->
||-
Contains expensive parser functions</translate></th><td>-</td><td>-</td><td>-</td><td>+</td><td>+</td></tr>
||-
</table></onlyinclude>
||+
||partially (where used; language subpages of templates are indexed)
||-
|-
!Recommended use at
|pages requiring JavaScript anyway
|//
|anything not needing more convoluted solutions
|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
|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]]
|-
!Contains expensive parser functions
||-||-||-||+||+
|}

Revision as of 21:11, 6 January 2015

Help for choosing the right template for your use case
Criterion \\ Template {{Multilingual description}} {{En}}{{Fr}} {{LangSwitch}} {{Autotranslate}} {{TNT}}
Requires JavaScript enabled for folding + + - - -
Folding can be disabled by user + + - - -
Folding is done server-side - - + + +
Folding when at least x languages are provided 1 4 1 1 1
Collation order of languages (when not folded) Latin, Latin or Cyrillic, Cyrillic, Greek, Other simple LTR alphabets, Indic, Other South Asian, Syllabaries, Hangul, Japanese scripts, Sinograms, (RTL) Hebrew, (RTL) Arabic languages as provided by the user in the wikitext // // //
Search indexing issues - - + partially (where used; language subpages of templates are indexed) -
Recommended use at pages requiring JavaScript anyway // anything not needing more convoluted solutions 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 - - - + +
Cookies help us deliver our services. By using our services, you agree to our use of cookies.