Template:Section: Difference between revisions
From Elwiki
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="font-weight: bold; color: #fff; text-align: center; vertical-align: middle; text-shadow: 1px 1px 1px black; height: 2em;{{{TitleStys|}}}">{{#if:{{{Title0|}}}| | <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-bottom: 1px #000 solid; background-color:{{{Color0|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color0|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty0|}}}" {{{Attr0|}}}>{{{Title0|}}}</th>|}}{{#if:{{{Title1|}}}| | <th style="width:{{{Width0|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color0|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color0|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty0|}}}" {{{Attr0|}}}>{{{Title0|}}}</th>|}}{{#if:{{{Title1|}}}| | ||
<th style="width:{{{Width1|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color1|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color1|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty1|}}}" {{{Attr1|}}}>{{{Title1|}}}</th>|}}{{#if:{{{Title2|}}}| | <th style="width:{{{Width1|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color1|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color1|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty1|}}}" {{{Attr1|}}}>{{{Title1|}}}</th>|}}{{#if:{{{Title2|}}}| | ||
Line 18: | Line 18: | ||
<th style="width:{{{Width15|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color15|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color15|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty15|}}}" {{{Attr15|}}}>{{{Title15|}}}</th>|}} | <th style="width:{{{Width15|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color15|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color15|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty15|}}}" {{{Attr15|}}}>{{{Title15|}}}</th>|}} | ||
</tr> | </tr> | ||
<tr style="vertical-align: top;{{{Styles|}}}">{{#if:{{{Title0|}}}| | <tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#if:{{{Title0|}}}| | ||
<td style="padding: 0.5em;{{{Style|}}};{{{Style0|}}}">{{{Content0|}}}</td>|}}{{#if:{{{Title1|}}}| | <td style="padding: 0.5em;{{{Style|}}};{{{Style0|}}}">{{{Content0|}}}</td>|}}{{#if:{{{Title1|}}}| | ||
<td style="padding: 0.5em;{{{Style|}}};{{{Style1|}}}">{{{Content1|}}}</td>|}}{{#if:{{{Title2|}}}| | <td style="padding: 0.5em;{{{Style|}}};{{{Style1|}}}">{{{Content1|}}}</td>|}}{{#if:{{{Title2|}}}| |
Revision as of 14:39, 29 July 2014
Section模板 |
---|
Section模板是由boxsnake编写的UI模板,旨在美化界面。此页即为Section模板示例。 |
模板参数 |
---|
|
参数 | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
其他注意事项和提示 |
---|
|
其他示例 | ||
---|---|---|
{{Section | SectionSty=border: 2px #ccc solid; border-radius: 5px; | Color0=lightblue | Title0=示例1 | Content0=示例1 }} |