Template:Section: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 18: Line 18:
     <td style="width:{{{Width15|}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color15|}}}; background-image: linear-gradient(to bottom, #eee, {{{Color15|}}});{{{StyleT15|}}}">{{{Title15|}}}</td>|}}
     <td style="width:{{{Width15|}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color15|}}}; background-image: linear-gradient(to bottom, #eee, {{{Color15|}}});{{{StyleT15|}}}">{{{Title15|}}}</td>|}}
   </tr>
   </tr>
   <tr style="{{{StyleCont|}}}">{{#if:{{{Title|}}}|
   <tr style="{{{StyleContent|}}}">{{#if:{{{Title|}}}|
     <td style="padding: 0.5em;{{{Style|}}}">{{{Content|}}}</td>|}}{{#if:{{{Title1|}}}|
     <td style="padding: 0.5em;{{{Style|}}}">{{{Content|}}}</td>|}}{{#if:{{{Title1|}}}|
     <td style="padding: 0.5em; border-left: 1px #000 solid;{{{Style1|}}}">{{{Content1|}}}</td>|}}{{#if:{{{Title2|}}}|
     <td style="padding: 0.5em; border-left: 1px #000 solid;{{{Style1|}}}">{{{Content1|}}}</td>|}}{{#if:{{{Title2|}}}|
Line 54: Line 54:
==== StyleTitle ====
==== StyleTitle ====
*此参数用于为整个Section表头增加样式,样式写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式。
*此参数用于为整个Section表头增加样式,样式写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式。
==== StyleCont ====
==== StyleContent ====
*此参数用于为整个Section内容区增加样式,样写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式。
*此参数用于为整个Section内容区增加样式,样写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式。
=== 个体参数 ===
=== 个体参数 ===
Line 68: Line 68:
*颜色参数,参数名称为'''Color'''到'''Color15'''(规则同'''Title'''参数)。指定对应个体标签部分的背景颜色。可以使用rgba函数,以#开头的颜色值,或者是CSS颜色值(如red,white等)。注意,颜色后不要添加分号。
*颜色参数,参数名称为'''Color'''到'''Color15'''(规则同'''Title'''参数)。指定对应个体标签部分的背景颜色。可以使用rgba函数,以#开头的颜色值,或者是CSS颜色值(如red,white等)。注意,颜色后不要添加分号。
==== StyleT ====
==== StyleT ====
*标题附加样式,参数名称为'''StyleT'''到'''StyleT15'''(T的意思为Title,规则同'''Title'''参数)。作用类似整体参数'''StyleSec'''、'''StyleTitle'''和'''StyleCont''',给对应的个体标题附加样式。样式写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式,以及'''StyleSec'''和'''StyleTitle'''中定义的相同样式。
*标题附加样式,参数名称为'''StyleT'''到'''StyleT15'''(T的意思为Title,规则同'''Title'''参数)。作用类似整体参数'''StyleSec'''、'''StyleTitle'''和'''StyleContent''',给对应的个体标题附加样式。样式写法兼容CSS语句。并且,此样式会覆盖之前已有的同名样式,以及'''StyleSec'''和'''StyleTitle'''中定义的相同样式。
==== Style ====
==== Style ====
*内容附加样式,参数名称为'''Style'''到'''Style15'''(规则同'''Title'''参数)。对应个体内容区域的附加样式,作用和'''StyleT'''类似。
*内容附加样式,参数名称为'''Style'''到'''Style15'''(规则同'''Title'''参数)。对应个体内容区域的附加样式,作用和'''StyleT'''类似。
Line 84: Line 84:
{{Section
{{Section
| StyleTitle=background-color: red;
| StyleTitle=background-color: red;
| StyleCont=background-color: black;
| StyleContent=background-color: lightblue;
| Title=Section
| Title=Section
| Content=Content
| Content=Content
Line 95: Line 95:
<code><pre>{{Section
<code><pre>{{Section
| StyleTitle=background-color: red;
| StyleTitle=background-color: red;
| StyleCont=background-color: black;
| StyleContent=background-color: lightblue;
| Title=Section
| Title=Section
| Content=Content
| Content=Content