Template:Ls/doc
Jump to navigation
Jump to search
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
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> |
→ | Deutsch: Dieser Text ist auf Deutsch.
Zazaki: Eno nuşte zazakiyo.
English: This text is in English.
Français: Ce texte est en français.
Македонски: Овој текст е на македонски јазик.
العربية: هذا النص القديم في اللغة العربية.
|
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>
→ Deutsch: Dieser Text ist auf Deutsch.Zazaki: Eno nuşte zazakiyo.English: This new text is in English.Français: [update required [translate this]: en] Cet ancien texte est en français.Македонски: [update required [translate this]: en] Овој стар текст е на македонски јазикالعربية: [update required [translate this]: en] هذا النص القديم في اللغة العربية.
- 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>
→ Deutsch: Dieser Text ist auf Deutsch.Zazaki: Eno nuşte zazakiyo.English: This text is in English.Français: Ce texte est en français.Македонски: Овој текст е на македонски јазик.العربية: هذا النص باللغة العربية.
Warning: Default sort key "Ls" overrides earlier default sort key "Ls/doc".