Vorlage:Deutsch: Unterschied zwischen den Versionen
Daniel (Diskussion | Beiträge) |
Daniel (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
<includeonly><div class="lang"><ul> | <includeonly><div class="lang"><ul> | ||
<li class="lang_main">[[{{NAMESPACE}}:{{BASEPAGENAME}}|DE]]</li> | <li class="lang_main">[[{{NAMESPACE}}:{{BASEPAGENAME}}|EN]]</li> | ||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ | <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ar|AR]]</li> | ||
</ul></div> | <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ast|AST]]</li> | ||
{{DISPLAYTITLE:{{{1}}}|{{ | <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/be|BE]]</li> | ||
[[Category:DE]] | <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/bg|BG]]</li> | ||
</includeonly> | <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/bn|BN]]</li> | ||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/brx|BRX]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ca|CA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ca-xv|CA-VAL]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/cs|CS]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/dk|DA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/de|DE]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/el|EL]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/eo|EO]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/es|ES]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/fa|FA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/fi|FI]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/fr|FR]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/gd|GD]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/gl|GL]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/he|HE]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/hi|HI]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/hu|HU]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/id|ID]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/is|IS]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/it|IT]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ja|JA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ko|KO]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/lo-la|LO-LA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/lt|LT]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/mr|MR]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/nl|NL]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/no|NO]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/pa|PA]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/pt|PT]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/pt-br|PT-BR]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ro|RO]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ru|RU]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/sk|SK]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/sl|SL]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/sv|SV]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/te|TE]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/th|TH]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/tr|TR]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/uk|UK]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/vi|VI]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/zh-tw|ZH-TW]]</li> | |||
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/zh-hans|ZH-HANS]]</li> | |||
<li class="lang_title">Article Title: {{PAGENAME}}</li> | |||
</ul></div>{{DISPLAYTITLE:{{{1}}}|{{BASEPAGENAME}}}}{{#switch: {{SUBPAGENAME}} | |||
| {{PAGENAME}} = [[Category:EN]] | |||
| = [[Category:EN]] | |||
| ar = [[Category:AR]] | |||
| ast = [[Category:AST]] | |||
| be = [[Category:BE]] | |||
| bg = [[Category:BG]] | |||
| bn = [[Category:BN]] | |||
| brx = [[Category:BRX]] | |||
| ca = [[Category:CA]] | |||
| ca-xv = [[Category:CA-VAL]] | |||
| cs = [[Category:CS]] | |||
| dk = [[Category:DA]] | |||
| de = [[Category:DE]] | |||
| el = [[Category:EL]] | |||
| eo = [[Category:EO]] | |||
| es = [[Category:ES]] | |||
| fa = [[Category:FA]] | |||
| fi = [[Category:FI]] | |||
| fr = [[Category:FR]] | |||
| gd = [[Category:GD]] | |||
| gl = [[Category:GL]] | |||
| he = [[Category:HE]] | |||
| hi = [[Category:HI]] | |||
| hu = [[Category:HU]] | |||
| is = [[Category:IS]] | |||
| it = [[Category:IT]] | |||
| ja = [[Category:JA]] | |||
| ko = [[Category:KO]] | |||
| lo-la = [[Category:LO-LA]] | |||
| lt = [[Category:LT]] | |||
| mr = [[Category:MR]] | |||
| nl = [[Category:NL]] | |||
| no = [[Category:NO]] | |||
| pa = [[Category:PA]] | |||
| pt = [[Category:PT]] | |||
| pt-br = [[Category:PT-BR]] | |||
| ro = [[Category:RO]] | |||
| ru = [[Category:RU]] | |||
| sk = [[Category:SK]] | |||
| sl = [[Category:SL]] | |||
| sv = [[Category:SV]] | |||
| te = [[Category:TE]] | |||
| th = [[Category:TH]] | |||
| tr = [[Category:TR]] | |||
| uk = [[Category:UK]] | |||
| vi = [[Category:VI]] | |||
| zh-tw = [[Category:ZH-TW]] | |||
| zh-hans = [[Category:ZH-HANS]] | |||
| #default = | |||
}}</includeonly><noinclude> | |||
Version vom 5. Oktober 2012, 16:28 Uhr
Usage
OrigLang{{OrigLang|}}
You may display a title to your page, that is different to the page name by OrigLang{{OrigLang|Title}}. On the translated pages, you have to change it to use the second Template Template:Lang.
Documentation
This template should be added to all original english articles in the main namespace, at least to all that are or are supposed to be translated.
It shows the list of all languages an article should be translated to and also sets the correct, localised display title of the article.
Adding new Languages
Additional languages can easily be added here. You just need to add one line:
- put a new language link into the div container (please make sure they are alphabetically ordered):
- <li>[[{{NAMESPACE}}:{{PAGENAME}}/hu|HU]]</li>
The subpages will automatically be used by different MediaWiki extensions which detect language settings in browsers or user preferences. The user will then automatically be redirected into the appropriate subpage.
Appearance
The CSS code for the div container of the class "lang" can be adopted in MediaWiki:Common.css.