Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__<table
__NOTOC__<includeonly><table
   class="section"
   style="
  style="width:{{{Widths|}}}; {{{SectionSty|}}}"
    {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
    {{{SectionSty|}}}
  "
  class="
    section
    {{{SectionCls|}}}
  "
   {{{Attr|}}}
   {{{Attr|}}}
   class="{{{SectionCls|}}}"><tr
>
  style="{{{hStyles|}}}"
   <tr
  class="{{{hClses|}}}>{{#forargs:Title
    style="{{{hStyles|}}}"
| key
    class="
| value
      textfloat
| <th
      {{{hClses|}}}
  style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}};
      {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}
        background-color:{{{Color{{#var:key|}}|{{{Color|}}}}}};
    ">
        {{{hStyle|}}};
    {{#forargs:Title
        {{{hStyle{{#var:key|}}|}}}"
      | key
  {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
      | value
  class="{{{hCls{{#var:key|}}|hCls}}}>{{#if:{{{header|}}}
      | {{#if:{{#var:value|}}
    |<h{{{header|}}} id="{{anchorencode:{{#var:value|}}}}">{{#var:value|}}</h{{{header|}}}>
          |<th
    |{{#var:value|}}}}</th>
            style="
}}</tr><tr
              {{#if:{{{Width|}}}|width:{{{Width}}};}}
  style="{{{Styles|}}}"
              {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
  class="{{{Clses|}}}">{{#forargs:Title
              {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
| key
              {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
| value
              {{{hStyle|}}};
| <td
              {{{hStyle{{#var:key|}}|}}}
  style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}};
            "
        {{{Style|}}};
            class="
        {{{Style{{#var:key|}}|}}}"
              {{{hCls{{#var:key|}}|{{{hCls|}}}}}}
  {{{Attr{{#var:key|}}|{{{Attr|}}}}}
              {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}
  class="{{{Cls{{#var:key|}}|Cls}}}>{{{Content{{#var:key|}}|}}}</td>
            "
}}</tr></table></includeonly>
            {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}
          ><!--
            -->{{#if:{{{header|}}}
              |<h{{{header|}}} id="{{anchorencode:{{#var:value|}}}}">{{#var:value|}}</h{{{header|}}}>
              |{{#var:value|}}
            }}<!--
          --></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><includeonly><noinclude>{{Doc}}</noinclude>

Latest revision as of 11:59, 2 May 2022