Template:Ls/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
40px | This is a documentation subpage for Template:Terminate sentence It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Template:Ls | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Usage[edit source]
}}{{#switch: }}{{#switch: }}{{#switch: }}{{#switch: }}{{#switch:<div class="multilingual"> {{ls|en|This text is English}} {{ls|fr|Ce texte est en français}} {{ls|it|Questo testo è Italiano}} {{ls|nl|Deze tekst is in het Nederlands}} {{ls|el|Αυτό το κείμενο είναι στα Ελληνικά.}} </div> |
→ | <{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-en" }} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:|no||{{#if:||English}}{{#switch:en | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}This text is English{{#if:| [edit{{#switch:en |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}}
<{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-fr" }} class="lang-fr {{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="fr" dir="{{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:|no||{{#if:||français}}{{#switch:fr | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}Ce texte est en français{{#if:| [edit{{#switch:fr |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}}
<{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-it" }} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:|no||{{#if:||italiano}}{{#switch:it | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}Questo testo è Italiano{{#if:| [edit{{#switch:it |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}}
<{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-nl" }} class="lang-nl {{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="nl" dir="{{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:|no||{{#if:||Nederlands}}{{#switch:nl | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}Deze tekst is in het Nederlands{{#if:| [edit{{#switch:nl |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}}
<{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-el" }} class="lang-el {{#switch:{{#if:el|el|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="el" dir="{{#switch:{{#if:el|el|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:|no||{{#if:||Ελληνικά}}{{#switch:el | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}Αυτό το κείμενο είναι στα Ελληνικά.{{#if:| [edit{{#switch:el |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}} |
This template wraps translations for Language select, a script which dynamically hides languages when the user's preferred language is available.
Parameters[edit source]
- Suppressing the leading label of the language name
- To suppress the language name heading the content (because it is already part of it):
- }}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
<div class="multilingual"> {{ls|en|This new text is '''English'''.|label=no}} {{ls|fr|Cet ancien texte est en '''français'''.|label=no}} {{ls|it|Questo vecchio testo è '''Italiano'''.|label=no}} {{ls|nl|Deze oude tekst is in het '''Nederlands'''.|label=no}} </div>
→ <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-en"
}} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||English}}{{#switch:en ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}This new text is English.{{#if:| [edit{{#switch:en
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-fr"
}} class="lang-fr {{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="fr" dir="{{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||français}}{{#switch:fr ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Cet ancien texte est en français.{{#if:| [edit{{#switch:fr
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-it"
}} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||italiano}}{{#switch:it ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Questo vecchio testo è Italiano.{{#if:| [edit{{#switch:it
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-nl"
}} class="lang-nl {{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="nl" dir="{{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||Nederlands}}{{#switch:nl ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Deze oude tekst is in het Nederlands.{{#if:| [edit{{#switch:nl
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} - |dl=
- Outdated translations
- To mark a translation as outdated:
- }}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
<div class="multilingual"> {{ls|en|This new text is English.}} {{ls|fr|Cet ancien texte est en français.|update=en}} {{ls|it|Questo vecchio testo è Italiano.|update=en}} {{ls|nl|Deze oude tekst is in het Nederlands.|update=en}} </div>
→ <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-en"
}} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||English}}{{#switch:en ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}This new text is English.{{#if:| [edit{{#switch:en
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-fr"
}} class="lang-fr {{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="fr" dir="{{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:en|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||français}}{{#switch:fr ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Cet ancien texte est en français.{{#if:en| [edit{{#switch:fr
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} en]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-it"
}} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:en|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||italiano}}{{#switch:it ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Questo vecchio testo è Italiano.{{#if:en| [edit{{#switch:it
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} en]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-nl"
}} class="lang-nl {{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="nl" dir="{{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:en|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||Nederlands}}{{#switch:nl ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Deze oude tekst is in het Nederlands.{{#if:en| [edit{{#switch:nl
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} en]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} - |dl=
- Customize appearance
- To customize the appearance using CSS:
- }}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
}}{{#switch:
<div class="multilingual"> {{ls|en|This text is English.|CSS-box=background:#000; color:#FFF;}} {{ls|en|This text is English.|CSS-label=background:#000; color:#FFF;}} {{ls|fr|Ce texte est en français.|CSS-box=background:#000; color:#FFF;}} {{ls|fr|Ce texte est en français.|CSS-label=background:#000; color:#FFF;}} {{ls|it|Questo testo è Italiano.|CSS-box=background:#000; color:#FFF;}} {{ls|it|Questo testo è Italiano.|CSS-label=background:#000; color:#FFF;}} {{ls|nl|Deze tekst is in het Nederlands.|CSS-box=background:#000; color:#FFF;}} {{ls|nl|Deze tekst is in het Nederlands.|CSS-label=background:#000; color:#FFF;}} </div>
→ <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-en"
}} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}background:#000; color:#FFF;">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||English}}{{#switch:en ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}This text is English.{{#if:| [edit{{#switch:en
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-en"
}} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||English}}{{#switch:en ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}This text is English.{{#if:| [edit{{#switch:en
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-fr"
}} class="lang-fr {{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="fr" dir="{{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}background:#000; color:#FFF;">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||français}}{{#switch:fr ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Ce texte est en français.{{#if:| [edit{{#switch:fr
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-fr"
}} class="lang-fr {{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="fr" dir="{{#switch:{{#if:fr|fr|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||français}}{{#switch:fr ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Ce texte est en français.{{#if:| [edit{{#switch:fr
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-it"
}} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}background:#000; color:#FFF;">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||italiano}}{{#switch:it ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Questo testo è Italiano.{{#if:| [edit{{#switch:it
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-it"
}} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||italiano}}{{#switch:it ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Questo testo è Italiano.{{#if:| [edit{{#switch:it
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-nl"
}} class="lang-nl {{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="nl" dir="{{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}background:#000; color:#FFF;">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||Nederlands}}{{#switch:nl ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Deze tekst is in het Nederlands.{{#if:| [edit{{#switch:nl
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} <{{#switch:
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s= span|div}} #default=div }} {{#if:|id="-nl"
}} class="lang-nl {{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="nl" dir="{{#switch:{{#if:nl|nl|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol=- |dl=
- |tr=
}}{{#ifeq:|no||{{#if:||Nederlands}}{{#switch:nl ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Deze tekst is in het Nederlands.{{#if:| [edit{{#switch:nl
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> bdi|span|q|strong|em|ins|del|b|i|u|s=</> |}} #default=}}{{#if:|}} - |dl=
- Use of span boxes
- To mark a translation in a header:
- }}{{#switch:span
}}{{#switch:span
<div class="multilingual"> {{ls|en|This new text is English.|label=no|tag=span}} {{ls|it|Questo vecchio testo è Italiano.|label=no|tag=span}} </div>
→ <{{#switch:span
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s=span span|div}} #default=div }} {{#if:|id="-en"
}} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:span|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||English}}{{#switch:en ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}This new text is English.{{#if:| [edit{{#switch:en
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:span|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td= bdi|span|q|strong|em|ins|del|b|i|u|s= |}} #default=}}{{#if:|}} <{{#switch:span
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td bdi|span|q|strong|em|ins|del|b|i|u|s=span span|div}} #default=div }} {{#if:|id="-it"
}} class="lang-it {{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="it" dir="{{#switch:{{#if:it|it|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:span|ul|ol=- |dl=
- |tr=
}}{{#ifeq:no|no||{{#if:||italiano}}{{#switch:it ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} }}Questo vecchio testo è Italiano.{{#if:| [edit{{#switch:it
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : hy=. km=៖ zh|zh-hans=: #default=: }} ]}}{{#switch:span|ul|ol= - |dl=|tr=
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td= bdi|span|q|strong|em|ins|del|b|i|u|s= |}} #default=}}{{#if:|}} - |dl=
Translation[edit source]
To translate the "update needed" message, edit {{snippets/update needed}}.
Workaround if the translation contains an equal sign (because of URLs or custom HTML tags)[edit source]
If the translation contains an equal sign, possibly inside an URL, it will cause the text to not show up (phab:T16235). To workaround that, use the following syntax: precede the language parameter with 1=
, and the text parameter with 2=
.
In the following examples, the first one won't display correctly because of the equal sign of the URL. The second one uses the workaround to fix the issue.
}}{{#switch: }}{{#switch:<div class="multilingual"> {{ls|en|Example URL: http://example.com/?p=1|label=no}} {{ls|1=en|2=Example URL: http://example.com/?p=1|label=no}} </div> |
→ | <{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-en" }} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:no|no||{{#if:||English}}{{#switch:en | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}{{{2}}}{{#if:| [edit{{#switch:en |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}}
<{{#switch: |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td | bdi|span|q|strong|em|ins|del|b|i|u|s= | span|div}} | #default=div
}} {{#if:|id="-en" }} class="lang-en {{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" lang="en" dir="{{#switch:{{#if:en|en|{{#ifeq:⧼Lang⧽|⧼Lang⧽|en|⧼Lang⧽}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi=rtl|ltr}}" style="margin:.3em 0;{{#if:|background:#FDD;}}">{{#switch:|ul|ol= | }}{{#ifeq:no|no||{{#if:||English}}{{#switch:en | ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} }}Example URL: http://example.com/?p=1{{#if:%7C+[edit{{#switch:en |
ca|co|es|fr|gsw|oc|pt|pt-br|ro= : | hy=. | km=៖ | zh|zh-hans=: | #default=:
}} ]}}{{#switch:|ul|ol= |
blockquote|p|h1|h2|h3|h4|h5|h6|ol|ul|li|dl|dt|dd|tr|td=</> | bdi|span|q|strong|em|ins|del|b|i|u|s=</> | |}} | #default=}}{{#if:|}} |
See also[edit source]
- {{#if:||
}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:LangSelect|LangSelect]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if:||
}}