Vorlage:Deutsch: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
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}}:{{PAGENAME}}|DE]]</li> | ||
<li> [[{{NAMESPACE}}:{{PAGENAME}}/en|EN]]</li> | <li> [[{{NAMESPACE}}:{{PAGENAME}}/en|EN]]</li> | ||
</ul></div> | </ul></div> |
Version vom 5. Oktober 2012, 16:47 Uhr
Usage
{{Lang|Localised Page Name}}
Documentation
This template should be added to all translated articles in the main namespace. For the source (English) pages, use the second Template Template:OrigLang.
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 to lines:
- put a new language link into the div container (please make sure they are alphabetically ordered):
- <li>[[{{NAMESPACE}}:{{BASEPAGENAME}}/hu|HU]]</li>
- put a new case into the sanityzing switch function which adds the page to the correct category:
- | hu = [[Category:HU]]
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.