Template:Section: Difference between revisions

From Elwiki
mNo edit summary
m (Reverted edits by Ritsu (talk) to last revision by Boxsnake)
Tag: Rollback
 
(191 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="width: 100%; padding: 0; margin: 0; font-size: 1em; line-height: 1.5em; word-break: break-all; border: 1px #000 solid; border-bottom: none; border-sapcing: 0;{{{StyleSec|}}}" cellspacing="0" cellpadding="0">
__NOTOC__<includeonly><table
  <tr style="font-weight: bold; color: #fff; text-align: center; vertical-align: middle; text-shadow: 1px 1px 1px black; height: 2em; border-bottom: 1px #000 solid;{{{StyleTitle|}}}">
  style="
    <td style="width: {{{Width|}}}; border-bottom: 1px #000 solid; background-color: {{{Color|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color}}} 100%);{{{StyleT|}}}">{{{Title|}}}</td>
    {{#if:{{{Widths|}}}|width:{{{Widths|}}};}}
     {{#if:{{{Title1}}}|<td style="width: {{{Width1|}}}; border-bottom: 1px #000 solid; background-color: {{{Color1|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color1|}}} 100%);{{{StyleT1|}}}">{{{Title1|}}}</td>|}}
    {{{SectionSty|}}}
    {{#if:{{{Title2}}}|<td style="width: {{{Width2|}}}; border-bottom: 1px #000 solid; background-color: {{{Color2|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color2|}}} 100%);{{{StyleT2|}}}">{{{Title2|}}}</td>|}}
  "
    {{#if:{{{Title3}}}|<td style="width: {{{Width3|}}}; border-bottom: 1px #000 solid; background-color: {{{Color3|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color3|}}} 100%);{{{StyleT3|}}}">{{{Title3|}}}</td>|}}
  class="
    {{#if:{{{Title4}}}|<td style="width: {{{Width4|}}}; border-bottom: 1px #000 solid; background-color: {{{Color4|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color4|}}} 100%);{{{StyleT4|}}}">{{{Title4|}}}</td>|}}
    section
    {{#if:{{{Title5}}}|<td style="width: {{{Width5|}}}; border-bottom: 1px #000 solid; background-color: {{{Color5|}}}; background-image: linear-gradient(to bottom, #eee 0, {{{Color5|}}} 100%);{{{StyleT1|}}}">{{{Title5|}}}</td>|}}
    {{{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>
   <tr style="{{{StyleContent|}}}>
   <tr
     <td style="padding: 0.5em;{{{Style|}}}">{{{Content|}}}</td>
    style="{{{Styles|}}}"
    {{#if:{{{Title1}}}|<td style="padding: 0.5em;{{{Style1|}}}">{{{Content1|}}}</td>|}}
     class="{{{Clses|}}}"
    {{#if:{{{Title2}}}|<td style="padding: 0.5em;{{{Style2|}}}">{{{Content2|}}}</td>|}}
  >
    {{#if:{{{Title3}}}|<td style="padding: 0.5em;{{{Style3|}}}">{{{Content3|}}}</td>|}}
    {{#forargs:Title
    {{#if:{{{Title4}}}|<td style="padding: 0.5em;{{{Style4|}}}">{{{Content4|}}}</td>|}}
      | key
    {{#if:{{{Title5}}}|<td style="padding: 0.5em;{{{Style5|}}}">{{{Content5|}}}</td>|}}
      | value
    {{#if:{{{Title6}}}|<td style="padding: 0.5em;{{{Style6|}}}">{{{Content6|}}}</td>|}}
      | {{#if:{{#var:value|}}
    {{#if:{{{Title7}}}|<td style="padding: 0.5em;{{{Style7|}}}">{{{Content7|}}}</td>|}}
          |<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>
   </tr>
</table>
</table><includeonly><noinclude>{{Doc}}</noinclude>

Latest revision as of 11:59, 2 May 2022