Template:Ls/doc: Difference between revisions
Template page
More actions
m →Usage |
m →Usage |
||
| Line 5: | Line 5: | ||
|- | |- | ||
| <pre><div class="multilingual"> | | <pre><div class="multilingual"> | ||
{{ls|en|This text is English}} | {{ls|en|This text is in English.}} | ||
{{ls|fr| | {{ls|fr|Ce texte est en français.}} | ||
</div></pre> | </div></pre> | ||
|style="font-size:3em;"| → | |style="font-size:3em;"| → | ||
| Line 24: | Line 24: | ||
| <pre><div class="multilingual"> | | <pre><div class="multilingual"> | ||
{{ls|en|This new text is English}} | {{ls|en|This new text is English}} | ||
{{ls|fr|This old text is | {{ls|fr|Cet ancien texte est en français.|update=en}} | ||
{{ls|ar|dir=rtl|This old text is in Arabic.|update=en}} | |||
</div></pre> | </div></pre> | ||
|style="font-size:3em;"| → | |style="font-size:3em;"| → | ||
| Line 30: | Line 31: | ||
{{ls|en|This new text is in English.}} | {{ls|en|This new text is in English.}} | ||
{{ls|fr|Cet ancien texte est en français.|update=en}} | {{ls|fr|Cet ancien texte est en français.|update=en}} | ||
{{ls|ar|This old text is in Arabic.|update=en}} | {{ls|ar|dir=rtl|This old text is in Arabic.|update=en}} | ||
</div> | </div> | ||
|} | |} | ||
| Line 39: | Line 40: | ||
|- | |- | ||
| <pre><div class="multilingual"> | | <pre><div class="multilingual"> | ||
{{ls|en|This text is English|CSS-box=background:#000; color:#FFF;}} | {{ls|en|This text is in English.|CSS-box=background:#000;color:#FFF;}} | ||
{{ls|fr| | {{ls|fr|Ce texte est en français.|CSS-label=background:#000;color:#FFF;}} | ||
</div></pre> | </div></pre> | ||
|style="font-size:3em;"| → | |style="font-size:3em;"| → | ||
| <div class="multilingual"> | | <div class="multilingual"> | ||
{{ls|en|This text is English|CSS-box=background:#000; color:#FFF;}} | {{ls|en|This text is in English.|CSS-box=background:#000;color:#FFF;}} | ||
{{ls|en | {{ls|fr|Ce texte est en français.|CSS-label=background:#000;color:#FFF;}} | ||
</div> | </div> | ||
|} | |} | ||
Revision as of 07:17, 7 October 2009
Usage
<div class="multilingual">
{{ls|en|This text is in English.}}
{{ls|fr|Ce texte est en français.}}
</div>
|
→ | English: This text is in English.
Français : Ce texte est en français.
|
This template wraps translations for Language select, a script which dynamically hides languages when the user's preferred language is available.
Parameters
- Outdated translations
- To mark a translation as outdated:
<div class="multilingual"> {{ls|en|This new text is English}} {{ls|fr|Cet ancien texte est en français.|update=en}} {{ls|ar|dir=rtl|This old text is in Arabic.|update=en}} </div>→ English: This new text is in English.Français : [update needed : en] Cet ancien texte est en français.العربية : [update needed : en] This old text is in Arabic.
- customize appearance
- To customize the appearance using CSS:
<div class="multilingual"> {{ls|en|This text is in English.|CSS-box=background:#000;color:#FFF;}} {{ls|fr|Ce texte est en français.|CSS-label=background:#000;color:#FFF;}} </div>→ English: This text is in English.Français : Ce texte est en français.
Translation
To translate the "update needed" message, edit {{snippets/update needed}}.