Template:Section: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><table cellspacing="0" cellpadding="0" style="width:{{{Widths|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;{{{SectionSty|}}}" {{{Attr|}}}>
<includeonly><table cellspacing="0" cellpadding="0" style="width:{{{Widths|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;{{{SectionSty|}}}" {{{Attr|}}}>
   <tr style="width: 100%; font-weight: bold; color: #fff; text-align: center; vertical-align: middle; text-shadow: 1px 1px 1px black; height: 2em;{{{TitleStys|}}}">{{#forargs:Title
   <tr style="width: 100%; font-weight: bold; color: #fff; text-align: center; vertical-align: middle; text-shadow: 1px 1px 1px black; height: 2em;{{{TitleStys|}}}">{{#if:{{{Title0|}}}|<th style="width:{{{Width0|{{{Width|}}}}}}; border-left: 1px #000 solid; border-bottom: 1px #000 solid; background-color:{{{Color0|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color0|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty0|}}}" {{{Attr0|}}}>{{{Title0|}}}</th>|}}{{#for:20|<th style="width:{{{Width$n$|{{{Width|}}}}}}; border-left: 1px #000 solid; border-bottom: 1px #000 solid; background-color:{{{Color$n$|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color$n$|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty$n$|}}}" {{{Attr$n$|}}}>{{{Title$n$|}}}</th>}}</tr>
| key
   <tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#if:{{{Title0|}}}|<td style="padding: 0.5em;{{{Style|}}};{{{Style0|}}}">{{{Content0|}}}</td>|}}{{#for:20|<td style="padding: 0.5em;{{{Style|}}};{{{Style$n$|}}}">{{{Content$n$|}}}</td>}}</tr>
| value
| <nowiki/>
{{#if:{{Isnumeric|{{#var:key|}}}}
|
<th style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}}; {{#ifeq:{{#var:key|}}|0||border-left: 1px #000 solid;}}border-bottom: 1px #000 solid; background-color:{{{Color{{#var:key|}}|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color{{#var:key|}}|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty{{#var:key|}}|}}}" {{{Attr{{#var:key|}}|}}}>{{#var:value|}}</th>
}}}}</tr>
   <tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#forargs:Title
| key
| value
| <nowiki/>
{{#if:{{Isnumeric|{{#var:key|}}}}
|
<td style="padding: 0.5em;{{{Style|}}};{{{Style{{#var:key|}}|}}}">{{{Content{{#var:key|}}|}}}</td>
}}}}</tr>
</table></includeonly><noinclude>{{DISPLAYTITLE:Section模板}}
</table></includeonly><noinclude>{{DISPLAYTITLE:Section模板}}
{{Section
{{Section