Template:Parent tab: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="parent-tabs" style="text-align: center; font-weight: bold; margin-bottom: 0; border: none; display: flex; gap: 2px;">{{#forargs:tab
<div class="parent-tabs {{{divCls|}}}" style="text-align: center; font-weight: bold; margin-bottom: 0.5em; border: none; display: flex; gap: 2px; flex-wrap: wrap;">{{#forargs:tab
| key
| key
| value
| value
Line 5: Line 5:
{{#ifexpr:{{Isnumeric|{{#var:key|}}}}
{{#ifexpr:{{Isnumeric|{{#var:key|}}}}
|
|
<div class="parent-tab" style="min-width: {{{minwidth|5}}}em;
<div class="parent-tab {{#ifeq:{{FULLPAGENAME}}|{{{dir|}}}{{#if:{{#var:value|}}|/{{#var:value|}}}}||parent-alt-tab}}" style="min-width: {{{minwidth|5}}}em;
   max-width: {{{maxwidth|12}}}em;
   max-width: {{{maxwidth|12}}}em;
   margin-left: {{{marginwidth|0}}}px;
   margin-left: {{{marginwidth|0}}}px;
   color: black;
   color: black;
   border-width: 0;
   border-width: 0;
   font-weight: 500;
   font-weight: 500!important;
   border-color: {{{bordercolor|gray}}};
   border-color: {{{bordercolor|gray}}};
   border-style: solid;
   border-style: solid;
   border-radius: {{{borderradius|4}}}px {{{borderradius|4}}}px 0 0;
   border-radius: {{{borderradius|4}}}px {{{borderradius|4}}}px 0 0;
  padding: 0 0.5em;
   height: {{{height|3.8}}}em;
   height: {{{height|3.8}}}em;
   font-size: 1em;
   font-size: 1em;
Line 22: Line 21:
   background-color: {{{altbackcolor{{#var:key|}}|{{{altbackcolor|#dddddd}}}}}};
   background-color: {{{altbackcolor{{#var:key|}}|{{{altbackcolor|#dddddd}}}}}};
;
;
}}"><font color="{{{fontcolor{{#var:key|}}|{{{fontcolor|black}}}}}}">[[{{{dir|}}}{{#if:{{#var:value|}}|/{{#var:value|}}}}|{{{tab{{#var:key|}}Name|{{#var:value|}}}}}]]</font></div>
}}">
<font color="{{{fontcolor{{#var:key|}}|{{{fontcolor|black}}}}}}">[[{{{dir|}}}{{#if:{{#var:value|}}|/{{#var:value|}}}}|{{{tab{{#var:key|}}Name|{{#var:value|}}}}}]]</font></div>
|}}
|}}
}}<div style="clear:both"></div>
}}<div style="clear:both"></div>
</div>
</div>

Latest revision as of 14:50, 1 May 2022