Template:Section: Difference between revisions

From Elwiki
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__<includeonly><table
__NOTOC__<includeonly><div
   style="
   style="
     {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
     {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
Line 10: Line 10:
   {{{Attr|}}}
   {{{Attr|}}}
>
>
  <tr
    style="{{{hStyles|}}}"
    class="
      textfloat
      {{{hClses|}}}
      {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}
    ">
     {{#forargs:Title
     {{#forargs:Title
       | key
       | key
       | value
       | value
       | {{#if:{{#var:value|}}
       | {{#if:{{#var:value|}}
           |<th
           |<div
             style="
             style="
               {{#if:{{{Width|}}}|width:{{{Width}}};}}
               {{#if:{{{Width|}}}|width:{{{Width}}};}}
Line 27: Line 20:
               {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
               {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
               {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
               {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
               {{{hStyle|}}};
               {{{hStyle|}}}
               {{{hStyle{{#var:key|}}|}}}
               {{{hStyle{{#var:key|}}|}}}
              {{{hStyles|}}}
             "
             "
             class="
             class="
               {{{hCls{{#var:key|}}|{{{hCls|}}}}}}
               {{{hCls{{#var:key|}}|{{{hCls|}}}}}}
               {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}
               {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}
              {{{hClses|}}} section-header
             "
             "
             {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
             {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
Line 40: Line 35:
               |{{#var:value|}}
               |{{#var:value|}}
             }}<!--
             }}<!--
           --></th>
           --></div>
         }}
         }}
     }}
     }}
  </tr>
  <tr
    style="{{{Styles|}}}"
    class="{{{Clses|}}}"
  >
     {{#forargs:Title
     {{#forargs:Title
       | key
       | key
       | value
       | value
       | {{#if:{{#var:value|}}
       | {{#if:{{#var:value|}}
           |<td
           |<div
             style="
             style="
               {{#if:{{{Width|}}}|width:{{{Width}}};}}
               {{#if:{{{Width|}}}|width:{{{Width}}};}}
               {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
               {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
               {{{Style|}}};
               {{{Style|}}};
               {{{Style{{#var:key|}}|}}}
               {{{Style{{#var:key|}}|}}}{{{Styles|}}}
             "
             "
             class="{{{Cls{{#var:key|}}|{{{Cls|}}}}}}"
             class="{{{Cls{{#var:key|}}|{{{Cls|}}}}}}{{{Clses|}}} mw-collapsible-content section-content"
             {{{Attr{{#var:key|}}|{{{Attr|}}}}}}
             {{{Attr{{#var:key|}}|{{{Attr|}}}}}}
           ><!--
           ><!--
             -->{{{Content{{#var:key|}}|}}}<!--
             -->{{{Content{{#var:key|}}|}}}<!--
           --></td>
           --></div>
         }}
         }}
     }}
     }}
  </tr>
</div><includeonly><noinclude>{{Doc}}</noinclude>
</table><includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 11:52, 2 May 2022