Template:Section: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| style="width: 100%; padding: 0; margin: 0; word-break; break-all; border: 1px #000 solid; border-bottom: none; border-collapse: collapse;"
<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">
| 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; background-color: {{{Color|}}}; {{#ifeq: {{{Grad}}} | true | background-image: linear-gradient(to bottom, #eee, {{{Color|}}});|}}" | '''{{{TName|Section Title}}}'''
  <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|}}}">
|-
    <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>
| style="padding: 0.5em; margin: 0;{{{StyleEx|}}}" |
    {{#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>|}}
<span style="display: none">{{</span>
    {{#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>|}}
{{{Content|Contents}}}
    {{#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>|}}
<span style="display: none">}}</span>
    {{#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>|}}
|}
    {{#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>|}}
  </tr>
  <tr style="{{{StyleContent|}}}>
    <td style="padding: 0.5em;{{{Style|}}}">{{{Content|}}}</td>
    {{#if:{{{Title1}}}|<td style="padding: 0.5em;{{{Style1|}}}">{{{Content1|}}}</td>|}}
    {{#if:{{{Title2}}}|<td style="padding: 0.5em;{{{Style2|}}}">{{{Content2|}}}</td>|}}
    {{#if:{{{Title3}}}|<td style="padding: 0.5em;{{{Style3|}}}">{{{Content3|}}}</td>|}}
    {{#if:{{{Title4}}}|<td style="padding: 0.5em;{{{Style4|}}}">{{{Content4|}}}</td>|}}
    {{#if:{{{Title5}}}|<td style="padding: 0.5em;{{{Style5|}}}">{{{Content5|}}}</td>|}}
    {{#if:{{{Title6}}}|<td style="padding: 0.5em;{{{Style6|}}}">{{{Content6|}}}</td>|}}
    {{#if:{{{Title7}}}|<td style="padding: 0.5em;{{{Style7|}}}">{{{Content7|}}}</td>|}}
  </tr>
</table>

Revision as of 00:59, 23 July 2014