Zum Inhalt springen

Metalab Wiki:Languages: Unterschied zwischen den Versionen

Reckoner (Diskussion | Beiträge)
Added language codes
Reckoner (Diskussion | Beiträge)
K How to: Formatting fixes
Zeile 9: Zeile 9:
Here's how to add language bar to a page:
Here's how to add language bar to a page:


# Create a sub-page and name it after the corresponding language code, for example de for German, en for English.
# Create a sub-page and name it after the corresponding language code, for example de for German, en for English. <br/>See the list of supported languages and corresponding codes below.
# Add a special markup on the top of the page and all sub-pages:
# Write a special markup on the top of the page and all sub-pages: <br/>Add <code><nowiki>{{Languages}}</nowiki></code> to use German by default (i.e. language of the main page) or <br/>add <code><nowiki>{{Languages|en}}</nowiki></code> to use English by default (or any other language supported).<br/>It's also possible to use German markup: <code><nowiki>{{Sprache}}</nowiki></code> or <code><nowiki>{{Sprache|fr}}</nowiki></code>
:: Add <code><nowiki>{{Languages}}</nowiki></code> to use German as a default (i.e. language of the main page) or
:: add <code><nowiki>{{Languages|en}}</nowiki></code> to use English as a default (or any other language supported).
:: It's also possible to use German markup: <code><nowiki>{{Sprache}}</nowiki></code> or <code><nowiki>{{Sprache|fr}}</nowiki></code>


== Language codes ==
== Language codes ==