Template:Uselangflags: Difference between revisions
Jump to navigation
Jump to search
m (WIP for multipage workaround) |
m (More multipage workaround work) |
||
Line 5: | Line 5: | ||
-->{{doc | -->{{doc}}<!-- | ||
Line 34: | Line 13: | ||
--><includeonly><onlyinclude>{{#if:{{{1|}}}{{{title|}}}|{{DISPLAYTITLE:{{{title|{{{1|}}}}}}}}}}{{#if:{{{no-right-align|}}}||<div style="display:flex; gap:4px; width:calc(100% + 4px); pointer-events: none; position:absolute; z-index:100; top:calc(-{{#ifeq:{{ROOTPAGENAME}}|{{PAGENAME}}|17|26}}px - 0px); left:-4px"><div style="pointer-events: none; margin-left: auto"><div style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:0; border-radius:3px 3px 0 0; pointer-events: all;">}}<!-- | --><includeonly><onlyinclude>{{#if:{{{1|}}}{{{title|}}}|{{DISPLAYTITLE:{{{title|{{{1|}}}}}}}}}}{{#if:{{{no-right-align|}}}||<div style="display:flex; gap:4px; width:calc(100% + 4px); pointer-events: none; position:absolute; z-index:100; top:calc(-{{#ifeq:{{ROOTPAGENAME}}|{{PAGENAME}}|17|26}}px - 0px); left:-4px"><div style="pointer-events: none; margin-left: auto"><div style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:0; border-radius:3px 3px 0 0; pointer-events: all;">}}<!-- | ||
Flags | Flags | ||
Line 111: | Line 69: | ||
-->{{#if:{{{all-lang|{{{he|}}}}}}|{{#ifeq:{{uselang}}|he|<span style="margin:1px; border:1px solid rgba(255,255,255,.3); padding:0 1px; border-radius:2px; background:rgba(255,255,255,.05)"><span style="position:relative;top:-1px">{{Flag|he}}</span></span>|<span style="margin:1px; padding:1px"><span style="position:relative;top:-1px">{{Flag|he|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}}}</span></span>}}}}<!-- | -->{{#if:{{{all-lang|{{{he|}}}}}}|{{#ifeq:{{uselang}}|he|<span style="margin:1px; border:1px solid rgba(255,255,255,.3); padding:0 1px; border-radius:2px; background:rgba(255,255,255,.05)"><span style="position:relative;top:-1px">{{Flag|he}}</span></span>|<span style="margin:1px; padding:1px"><span style="position:relative;top:-1px">{{Flag|he|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}}}</span></span>}}}}<!-- | ||
- Multipage workaround - | |||
{{#if:{{{multipageworkaround|}}}|<!-- | |||
-->{{#if:{{{altEditButton|}}}||<div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | |||
<div class="mw-customtoggle-editbutton" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><span style="display:flex; justify-content:center; width:20px; height:100%"><div style="position: relative; top:-1px;">[[File:Icon-edit.png|link={{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}|14px|{{int:edit}}|{{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}}}|14px|{{int:edit}}]]</div></span></div> | |||
</div>}}<!-- | |||
- Actions - | |||
--><div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | |||
<div class="mw-customtoggle-editaction" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><!-- | |||
--><span class=plainlinks style="display:flex; justify-content:center; width:20px; height:100%; font-size:10px" title="{{int:actions}}"><div style="position: relative; top:-3.5px; color:rgb(255,255,255);">'''…'''</div></span> | |||
</div> | |||
<div class="mw-collapsible mw-collapsed plainlinks" id="mw-customcollapsible-editaction" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255,255,255,.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:none; position:absolute; z-index:1001; {{text-dir|ltr=right|rtl=left}}:calc(0px + {{{margin-right|0px}}}); top:26px"> | |||
<div style="overflow-y:auto; max-height:200px; padding:2px 6px"> | |||
<div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-visibility.png|18px|link={{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{int:view}}]] [{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}}} <span style="color: white;">{{ucfirst:{{int:view}}}}</span>]</div> | |||
{{#if:{{{altEditButton|}}}|<div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-edit.png|18px|link={{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}|{{int:edit}}]] [{{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}} <span style="color: white;">{{int:edit}}</span>]</div> | |||
}} | |||
<div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-history.png|18px|link={{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=history}}|{{int:history}}]] [{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=history}} <span style="color: white;">{{ucfirst:{{int:history}}}}]</div> | |||
<div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-deblur.png|18px|link={{fullurl:{{FULLPAGENAME}}|action=purge}}|{{ucfirst:{{int:confirm-purge-title}}}}]] [{{fullurl:{{FULLPAGENAME}}|action=purge}} <span style="color: white;">{{ucfirst:{{int:confirm-purge-title}}}}</span>]</div>|}} | |||
-->{{#if:{{{no-right-align|}}}||</div></div></div>}}{{#if:{{{category-en|}}}|[[Category:English]]}}</onlyinclude></includeonly> | -->{{#if:{{{no-right-align|}}}||</div></div></div>}}{{#if:{{{category-en|}}}|[[Category:English]]}}</onlyinclude></includeonly> |