Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(201 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="padding: 0; margin: 0; position: relative; border: 1px #000 solid; border-bottom: none;">
__NOTOC__<includeonly><table
     <div style="padding: 0.5em; margin: 0; height: 1.5em; border-bottom: 1px #000 solid; text-align: center; color: #fff; text-shadow: 1px 1px 1px black; {{#ifeq: {{{Grad}}} | true | background-image: linear-gradient(to bottom, lightgray, {{{Color|}}}) | background-color: {{{Color|}}}}};">'''{{{TName|Section Title}}}'''</div>
  style="
     <span style="display: none;">{{</span><div style="padding: 0.5em; margin: 0;{{{StyleEx|}}}">{{{Content|Contents}}}</div><span style="display: none;">}}</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