Template:LanguageBar/call: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="direction:{{text-dir|rtl=rtl}}; display:flex; gap:4px; width:calc(100% + 4px); user-select:none; pointer-events:none; position:absolute; z-index:100; top:calc({{#ifeq:{{ | <div style="direction:{{text-dir|rtl=rtl}}; display:flex; gap:4px; width:calc(100% + 4px); user-select:none; pointer-events:none; position:absolute; z-index:100; top:calc({{#ifeq:{{{BASENAME}}}|Main Page|-6|-17}}px - {{{up|{{#ifeq:{{{BASENAME}}}|{{SUBPAGENAME}}|0|9}}}}}px); left:-4px"><!-- | ||
- Flags - | - Flags - | ||
--><div style="height:19px; background-color:{{#ifeq:{{ | --><div style="height:19px; background-color:{{#ifeq:{{{BASENAME}}}|Main Page|transparent|#262626}}; border:1px solid #65635F; border-bottom:0;{{#ifeq:{{{BASENAME}}}|Main Page|border-color:transparent;|}}border-radius:3px 3px 0 0; pointer-events:all; margin-{{text-dir|ltr=left|rtl=right}}:auto"><!-- Remember to sort the language codes from A to Z. Don't forget to update the "Currently Supported Languages" section once you added new languages here. | ||
-->{{#ifeq:{{{USEDLANG}}}|en|<span style="background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.3); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|en}}</span></span>|<span style="margin:1px; border:1px solid transparent"><span style="user-select:none; position:relative; top:-1px">{{Flag|en|link={{{BASENAME}}}}}</span></span>}}<!-- English | -->{{#ifeq:{{{USEDLANG}}}|en|<span style="background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.3); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|en}}</span></span>|<span style="margin:1px; border:1px solid transparent"><span style="user-select:none; position:relative; top:-1px">{{Flag|en|link={{{BASENAME}}}}}</span></span>}}<!-- English | ||
-->{{LanguageBar/flag|ca|BASENAME={{{BASENAME}}}|USEDLANG={{{USEDLANG}}} }}<!-- | -->{{LanguageBar/flag|ca|BASENAME={{{BASENAME}}}|USEDLANG={{{USEDLANG}}} }}<!-- |