Template:Ls: Difference between revisions
Template page
More actions
m occitan (oc) is certainly NOT a "rtl" language ! |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Ls/core|1={{{1|und}}}|2={{{2|}}}|3={{#switch:{{{1}}}|zh-hans=lang-zh-cn lang-zh-my lang-zh-sg|zh-hant=lang-zh-hk lang-zh-mo lang-zh-tw|#default=lang-{{{1|und}}}}}|update={{{update|}}}|CSS-box={{{CSS-box|}}}|CSS-label={{{CSS-label|}}}}} | |||
<noinclude>{{documentation}}</noinclude> | |||
Revision as of 16:13, 23 January 2009
This documentation is transcluded from Template:Ls/doc.
This template wraps translations for Language select, a script which dynamically hides languages when the user's preferred language is available.
Usage
{{ls |1= |2= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Language code (e. g. en) | empty | required | |
2 | Text in that language | empty | required | |
update | If the language text needs update, then the new text's language code (e. g. en) | empty | optional | |
CSS-box | CSS style for the whole text | empty | optional | |
CSS-label | CSS style only for the label ("English:" text) | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Localization
This template is not intended to be localized.
To translate the "update needed" message, edit {{snippets/update needed}}.
Usage
<div class="multilingual">
{{ls|de|Dieser Text ist auf Deutsch.}}
{{ls|diq|Eno nuşte zazakiyo.}}
{{ls|en|This text is in English.}}
{{ls|fr|Ce texte est en français.}}
{{ls|mk|Овој текст е на македонски јазик.}}
{{ls|ar|هذا النص القديم في اللغة العربية.}}
</div>
|
→ |
Parameters
- Outdated translations
- To mark a translation as outdated:
<div class="multilingual"> {{ls|de|Dieser Text ist auf Deutsch}} {{ls|diq|Eno nuşte zazakiyo.}} {{ls|en|This new text is English}} {{ls|fr|Cet ancien texte est en français.|update=en}} {{ls|mk|Овој стар текст е на македонски јазик|update=en}} {{ls|ar|هذا النص القديم في اللغة العربية.|update=en}} </div>
→
- Customize appearance
- To customize the appearance using CSS:
<div class="multilingual"> {{ls|de|Dieser Text ist auf Deutsch.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} {{ls|diq|Eno nuşte zazakiyo.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} {{ls|en|This text is in English.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} {{ls|fr|Ce texte est en français.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} {{ls|mk|Овој текст е на македонски јазик.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} {{ls|ar|هذا النص باللغة العربية.|CSS-box=background:#CCF;color:#000;|CSS-label=background:#00F;color:#FFF;}} </div>
→