Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(232 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="width: 100%; border: 1px #000 solid; border-bottom: none; border-collapse: collapse; word-break: break-all;"
__NOTOC__<includeonly><table
|-
  style="
| style="width: 100%; font-size: 1em; height: 1.5em; line-height: 1.5em; border-bottom: 1px #000 solid; margin: 0; padding: 0.5em; border-collapse: collapse; background-color: {{{Color}}}; color: #fff; text-align: center; {{#ifeq: {{{Grad}}}|true|background: -moz-linear-gradient(270deg, lightgray 0, {{{Color}}} 100%); background: -webkit-gradient(linear, 270deg, color-stop(0, lightgray), color-stop(100%, {{{Color}}})); background: -webkit-linear-gradient(270deg, lightgray 0, {{{Color}}} 100%); background: -o-linear-gradient(270deg, lightgray 0, {{{Color}}} 100%); background: -ms-linear-gradient(270deg, lightgray 0, {{{Color}}} 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='lightgray', endColorstr='{{{Color}}}', GradientType='1'); background: linear-gradient(270deg, lightgray 0, #123456 100%)}};" | '''{{{TName|Section Title}}}'''
    {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
|-
    {{{SectionSty|}}}
| style="width: 100%; padding: 0.5em; margin: 0; border-collapse: collapse; font-size: 1em; line-height: 1.5em; background-color: #fff; {{{StyleEx|}}};" | {{{Content|Contents}}}
  "
|}
  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