Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Restyle codes, if this affect pages, please contact @boxsnake)
Line 1: Line 1:
__NOTOC__<table
__NOTOC__<table
   style="{{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
   style="
        {{{SectionSty|}}}"
    {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
    {{{SectionSty|}}}
  "
  class="
    section
    {{{SectionCls|}}}
  "
   {{{Attr|}}}
   {{{Attr|}}}
   class="section {{{SectionCls|}}}"><tr
>
  style="{{{hStyles|}}}"
   <tr
  class="textfloat {{{hClses|}}} {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}">{{#forargs:Title
    style="{{{hStyles|}}}"
| key
    class="
| value
      textfloat
| {{#if:{{#var:value|}}
      {{{hClses|}}}
  |<th
      {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}
  style="{{#if:{{{Width|}}}|width:{{{Width}}};}}
    ">
        {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
    {{#forargs:Title
        {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
      | key
        {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
      | value
        {{{hStyle|}}};
      | {{#if:{{#var:value|}}
        {{{hStyle{{#var:key|}}|}}}"
          |<th
  {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
            style="
  class="{{{hCls{{#var:key|}}|{{{hCls|}}}}}} {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}">{{#if:{{{header|}}}
              {{#if:{{{Width|}}}|width:{{{Width}}};}}
    |<h{{{header|}}} id="{{anchorencode:{{#var:value|}}}}">{{#var:value|}}</h{{{header|}}}>
              {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
    |{{#var:value|}}}}</th>
              {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
}}}}</tr><tr
              {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
  style="{{{Styles|}}}"
              {{{hStyle|}}};
  class="{{{Clses|}}}">{{#forargs:Title
              {{{hStyle{{#var:key|}}|}}}
| key
            "
| value
            class="
| {{#if:{{#var:value|}}
              {{{hCls{{#var:key|}}|{{{hCls|}}}}}}
  |<td
              {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}
  style="{{#if:{{{Width|}}}|width:{{{Width}}};}}
            "
        {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
            {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
        {{{Style|}}};
          >
        {{{Style{{#var:key|}}|}}}"
            {{#if:{{{header|}}}
  {{{Attr{{#var:key|}}|{{{Attr|}}}}}}
              |<h{{{header|}}} id="{{anchorencode:{{#var:value|}}}}">{{#var:value|}}</h{{{header|}}}>
  class="{{{Cls{{#var:key|}}|{{{Cls|}}}}}}">{{{Content{{#var:key|}}|}}}</td>
              |{{#var:value|}}
}}}}</tr></table>
            }}
          </th>
        }}
    }}
  </tr>
  <tr
    style="{{{Styles|}}}"
    class="{{{Clses|}}}"
  >
    {{#forargs:Title
      | key
      | value
      | {{#if:{{#var:value|}}
          |<td
            style="
              {{#if:{{{Width|}}}|width:{{{Width}}};}}
              {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
              {{{Style|}}};
              {{{Style{{#var:key|}}|}}}
            "
            class="{{{Cls{{#var:key|}}|{{{Cls|}}}}}}"
            {{{Attr{{#var:key|}}|{{{Attr|}}}}}}
          >
            {{{Content{{#var:key|}}|}}}
          </td>
        }}
    }}
  </tr>
</table>

Revision as of 20:06, 25 August 2020