Template:Section: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
| 0 | | 0 | ||
| 16 | | 16 | ||
| {{#if:{{{Title{{#var:n|}}}}}|<th style="width:{{{Width{{#var:n|}}|{{{Width|}}}}}}; {{#ifeq:{{#var:n|}}|0||border-left: 1px #000 solid;}}border-bottom: 1px #000 solid; background-color:{{{Color{{#var:n|}}|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color{{#var:n|}}|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty{{#var:n|}}|}}}" {{{Attr{{#var:n|}}|}}}>{{{Title{{#var:n|}}}}}</th> | | {{#if:{{{Title{{#var:n|}}|}}}|<th style="width:{{{Width{{#var:n|}}|{{{Width|}}}}}}; {{#ifeq:{{#var:n|}}|0||border-left: 1px #000 solid;}}border-bottom: 1px #000 solid; background-color:{{{Color{{#var:n|}}|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color{{#var:n|}}|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty{{#var:n|}}|}}}" {{{Attr{{#var:n|}}|}}}>{{{Title{{#var:n|}}|}}}</th> | ||
|}}</tr> | |}}}}</tr> | ||
<tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#loop:n | <tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#loop:n | ||
| 0 | | 0 | ||
| 16 | | 16 | ||
| {{#if:{{{Title{{#var:n|}}}}}|<td style="padding: 0.5em;{{{Style|}}};{{{Style{{#var:key|}}|}}}">{{{Content{{#var:n|}}|}}}</td> | | {{#if:{{{Title{{#var:n|}}}|}}|<td style="padding: 0.5em;{{{Style|}}};{{{Style{{#var:key|}}|}}}">{{{Content{{#var:n|}}|}}}</td> | ||
|}}</tr> | |}}}}</tr> | ||
</table></includeonly><noinclude>{{DISPLAYTITLE:Section模板}} | </table></includeonly><noinclude>{{DISPLAYTITLE:Section模板}} | ||
{{Section | {{Section |
Revision as of 10:15, 10 September 2014
Section模板 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Section模板是由boxsnake编写的UI模板,旨在美化界面。此页即为Section模板示例。 |
模板参数 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
参数 | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
其他注意事项和提示 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
其他示例 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Section | SectionSty=border: 2px #ccc solid; border-radius: 5px; | Color0=lightblue | Title0=示例1 | Content0=示例1 }} |