Template:Ls

From "PTTLink Wiki"
Revision as of 10:46, 21 January 2022 by Kg7qin (talk | contribs) (Created page with "<includeonly><div class="{{{classes|}}} {{{1|{{Int:Lang}}}}} lang-{{{1|{{Int:Lang}}}}}" lang="{{{1|{{Int:Lang}}}}}" dir="{{#switch:{{lc:{{{dir|}}}}}|ltr|rtl={{lc:{{{dir|}}}}}|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
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

ParameterDescriptionDefaultStatus
1Language code (e. g. en)emptyrequired
2Text in that languageemptyrequired
updateIf the language text needs update, then the new text's language code (e. g. en)emptyoptional
CSS-boxCSS style for the whole textemptyoptional
CSS-labelCSS style only for the label ("English:" text)emptyoptional

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.
Македонски: Овој текст е на македонски јазик.
العربية: هذا النص باللغة العربية.