Template:Section: Difference between revisions

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