Template:Section: Difference between revisions

From Elwiki
(Created page with "<div style="display: block; position: relative; border: 1px #000 solid; margin: 0; padding: 0; border-collapse: collapse; border-bottom: none"> <span style="text-align: cente...")
 
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(245 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="display: block; position: relative; border: 1px #000 solid; margin: 0; padding: 0; border-collapse: collapse; border-bottom: none">
__NOTOC__<includeonly><table
<span style="text-align: center; display: block; position: relative; line-height: 2em; height: 2em; background-color: {{{Color}}}; color: #fff;">'''{{{TName|Section Title}}}'''</span>
  style="
<span style="display: block; position: relative; margin: 0; padding: 0.4em; {{{StyleEx|}}}">{{{Content|Contents}}}</span>
    {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
</div>
    {{{SectionSty|}}}
  "
  class="
    section
    {{{SectionCls|}}}
  "
  {{{Attr|}}}
>
  <tr
    style="{{{hStyles|}}}"
    class="
      textfloat
      {{{hClses|}}}
      {{#ifeq:{{{Color|}}}|Rainbow|rainbow}}
    ">
    {{#forargs:Title
      | key
      | value
      | {{#if:{{#var:value|}}
          |<th
            style="
              {{#if:{{{Width|}}}|width:{{{Width}}};}}
              {{#if:{{{Width{{#var:key|}}|}}}|width:{{{Width{{#var:key|}}}}};}}
              {{#if:{{{Color|}}}|background-color:{{{Color}}};}}
              {{#if:{{{Color{{#var:key|}}|}}}|background-color:{{{Color{{#var:key|}}}}};}}
              {{{hStyle|}}};
              {{{hStyle{{#var:key|}}|}}}
            "
            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