Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(24 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|}}}">{{#forargs:Title
   <tr
| key
    style="{{{hStyles|}}}"
| value
    class="
| <th
      textfloat
  style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}};
      {{{hClses|}}}
        background-color:{{{Color{{#var:key|}}|{{{Color|}}}}}};
      {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}
        {{{hStyle|}}};
    ">
        {{{hStyle{{#var:key|}}|}}}"
    {{#forargs:Title
  {{{hAttr{{#var:key|}}|{{{hAttr|}}}}}}>{{#if:{{{header|}}}
      | key
    |<h{{{header|}}} id="{{anchorencode:{{#var:value|}}}}">{{#var:value|}}</h{{{header|}}}>
      | value
    |{{#var:value|}}}}</th>
      | {{#if:{{#var:value|}}
}}</tr><tr
          |<th
  style="{{{Styles|}}}">{{#forargs:Title
            style="
| key
              {{#if:{{{Width|}}}|width:{{{Width}}};}}
| value
              {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
| <td
              {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
  style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}};
              {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
        {{{Style|}}};
              {{{hStyle|}}};
        {{{Style{{#var:key|}}|}}}"
              {{{hStyle{{#var:key|}}|}}}
  {{{Attr{{#var:key|}}|{{{Attr|}}}}}>{{{Content{{#var:key|}}|}}}</td>
            "
}}</tr></table></includeonly>
            class="
              {{{hCls{{#var:key|}}|{{{hCls|}}}}}}
              {{#ifeq:{{{Color{{#var:key|}}|}}}|Rainbow|rainbow}}
            "
            {{{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