« Modèle:Dir » : différence entre les versions
m 1 revision imported from meta:Template:Dir |
revert imported revision by User:Billinghurst that broke the template and inserted "ltr" in random places on the wiki, e.g. Wikimedia Platform Engineering/MediaWiki Core Team displaying "ltr" instead of an arrow |
||
Ligne 1 : | Ligne 1 : | ||
{{#switch:{{#if:{{{1|}}}|{{{1|}}}|{{ | {{#switch:{{lc:{{#if:{{{lang|}}}|{{{lang|}}}|{{#if:{{{1|}}}|{{{1|}}}|{{int:lang}}}}}}}} | ||
|aeb|aeb-arab|aic|ar|arc|arq|ary|arz|azb|bcc|bgn|bqi|bqp|ckb|ckb-arab|dv|en-rtl|fa|fa-af|glk|ha-arab|haz|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|ota|phn|pnb|prd|prs|ps|sd|sdh|skr|skr-arab|tg-arab|tly|ug|ug-arab|ur|uz-arab|xpu|ydd|yi | |||
={{#ifeq:{{{rtl|}}}|{{{rtl|-}}}|{{{rtl|}}}|{{#ifeq:{{{2|}}}|{{{2|-}}}|{{{2|}}}|rtl}}}} | |||
|#default | |||
={{#ifeq:{{{ltr|}}}|{{{ltr|-}}}|{{{ltr|}}}|{{#ifeq:{{{3|}}}|{{{3|-}}}|{{{3|}}}|ltr}}}} | |||
}}<noinclude>{{documentation}}</noinclude> |
Version du 7 juillet 2023 à 15:15
{{#switch:{{#if:||{{#if:||⧼lang⧽}}}} |aeb|aeb-arab|aic|ar|arc|arq|ary|arz|azb|bcc|bgn|bqi|bqp|ckb|ckb-arab|dv|en-rtl|fa|fa-af|glk|ha-arab|haz|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|ota|phn|pnb|prd|prs|ps|sd|sdh|skr|skr-arab|tg-arab|tly|ug|ug-arab|ur|uz-arab|xpu|ydd|yi ={{#ifeq:|-||{{#ifeq:|-||rtl}}}} |#default ={{#ifeq:|-||{{#ifeq:|-||ltr}}}}
}}
Documentation du modèle
[créer]
{{#if:|
[[Category:Template documentation pages{{#translation:}}]] }}