Vorlage:Deutsch: Unterschied zwischen den Versionen

Aus Wohnheim TF
Zur Navigation springen Zur Suche springen
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „<includeonly><div class="lang"><ul> <li class="lang_main">[[{{NAMESPACE}}:{{BASEPAGENAME}}|EN]]</li> <li>[[{{NAMESPACE}}:{{BASEPAGEN…“)
Zeile 2: Zeile 2:
<li class="lang_main">[[{{NAMESPACE}}:{{BASEPAGENAME}}|EN]]</li>
<li class="lang_main">[[{{NAMESPACE}}:{{BASEPAGENAME}}|EN]]</li>
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ar|AR]]</li>
<li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/ar|AR]]</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>
<noinclude>
<noinclude>
== Usage ==
<nowiki>OrigLang{{OrigLang|}}</nowiki><br>
You may display a title to your page, that is different to the page name by <nowiki>OrigLang{{OrigLang|Title}}</nowiki>. 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):
:<nowiki><li>[[{{NAMESPACE}}:{{PAGENAME}}/hu|HU]]</li></nowiki>
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]].
[[Category:Template]]
</noinclude>

Version vom 5. Oktober 2012, 16:31 Uhr