Template:Section: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
<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="font-weight: bold; color: #fff; text-align: center; vertical-align: middle; text-shadow: 1px 1px 1px black; height: 2em;{{{TitleStys|}}}">{{#if:{{{Title0|}}}| | ||
<td 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|}}}</td>|}}{{#if:{{{Title1|}}}| | <td 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|}}}</td>|}}{{#if:{{{Title1|}}}| | ||
<td style="width:{{{Width1|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color1|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color1|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty1|}}}" {{{Attr1|}}}>{{{Title1|}}}</td>|}}{{#if:{{{Title2|}}}| | <td 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|}}}</td>|}}{{#if:{{{Title2|}}}| | ||
<td style="width:{{{Width2|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color2|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color2|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty2|}}}" {{{Attr2|}}}>{{{Title2|}}}</td>|}}{{#if:{{{Title3|}}}| | <td style="width:{{{Width2|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color2|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color2|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty2|}}}" {{{Attr2|}}}>{{{Title2|}}}</td>|}}{{#if:{{{Title3|}}}| | ||
<td style="width:{{{Width3|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color3|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color3|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty3|}}}" {{{Attr3|}}}>{{{Title3|}}}</td>|}}{{#if:{{{Title4|}}}| | <td style="width:{{{Width3|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color3|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color3|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty3|}}}" {{{Attr3|}}}>{{{Title3|}}}</td>|}}{{#if:{{{Title4|}}}| | ||
<td style="width:{{{Width4|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color4|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color4|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty4|}}}" {{{Attr4|}}}>{{{Title4|}}}</td>|}}{{#if:{{{Title5|}}}| | <td style="width:{{{Width4|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color4|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color4|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty4|}}}" {{{Attr4|}}}>{{{Title4|}}}</td>|}}{{#if:{{{Title5|}}}| | ||
<td style="width:{{{Width5|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color5|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color5|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty5|}}}" {{{Attr5|}}}>{{{Title5|}}}</td>|}}{{#if:{{{Title6|}}}| | <td style="width:{{{Width5|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color5|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color5|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty5|}}}" {{{Attr5|}}}>{{{Title5|}}}</td>|}}{{#if:{{{Title6|}}}| | ||
<td style="width:{{{Width6|{{{Width|}}}}}}; border-bottom: 1px #000 solid; | <td style="width:{{{Width6|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color6|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color6|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty6|}}}" {{{Attr6|}}}>{{{Title6|}}}</td>|}}{{#if:{{{Title7|}}}| | ||
<td style="width:{{{Width7|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color7|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color7|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty7|}}}" {{{Attr7|}}}>{{{Title7|}}}</td>|}}{{#if:{{{Title8|}}}| | <td style="width:{{{Width7|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color7|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color7|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty7|}}}" {{{Attr7|}}}>{{{Title7|}}}</td>|}}{{#if:{{{Title8|}}}| | ||
<td style="width:{{{Width8|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color8|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color8|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty8|}}}" {{{Attr8|}}}>{{{Title8|}}}</td>|}}{{#if:{{{Title9|}}}| | <td style="width:{{{Width8|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color8|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color8|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty8|}}}" {{{Attr8|}}}>{{{Title8|}}}</td>|}}{{#if:{{{Title9|}}}| | ||
<td style="width:{{{Width9|{{{Width|}}}}}}; border-bottom: 1px #000 solid; | <td style="width:{{{Width9|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color9|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color9|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty9|}}}" {{{Attr9|}}}>{{{Title9|}}}</td>|}}{{#if:{{{Title10|}}}| | ||
<td style="width:{{{Width10|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color10|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color10|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty10|}}}" {{{Attr10|}}}>{{{Title10|}}}</td>|}}{{#if:{{{Title11|}}}| | <td style="width:{{{Width10|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color10|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color10|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty10|}}}" {{{Attr10|}}}>{{{Title10|}}}</td>|}}{{#if:{{{Title11|}}}| | ||
<td style="width:{{{Width11|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color11|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color11|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty11|}}}" {{{Attr11|}}}>{{{Title11|}}}</td>|}}{{#if:{{{Title12|}}}| | <td style="width:{{{Width11|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color11|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color11|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty11|}}}" {{{Attr11|}}}>{{{Title11|}}}</td>|}}{{#if:{{{Title12|}}}| | ||
<td style="width:{{{Width12|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color12|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color12|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty12|}}}" {{{Attr12|}}}>{{{Title12|}}}</td>|}}{{#if:{{{Title13|}}}| | <td style="width:{{{Width12|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color12|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color12|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty12|}}}" {{{Attr12|}}}>{{{Title12|}}}</td>|}}{{#if:{{{Title13|}}}| | ||
<td style="width:{{{Width13|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color13|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color13|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty13|}}}" {{{Attr13|}}}>{{{Title13|}}}</td>|}}{{#if:{{{Title14|}}}| | <td style="width:{{{Width13|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color13|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color13|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty13|}}}" {{{Attr13|}}}>{{{Title13|}}}</td>|}}{{#if:{{{Title14|}}}| | ||
<td style="width:{{{Width14|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color14|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color14|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty14|}}}" {{{Attr14|}}}>{{{Title14|}}}</td>|}}{{#if:{{{Title15|}}}| | <td style="width:{{{Width14|{{{Width|}}}}}}; border-bottom: 1px #000 solid; border-left: 1px #000 solid; background-color:{{{Color14|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color14|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty14|}}}" {{{Attr14|}}}>{{{Title14|}}}</td>|}}{{#if:{{{Title15|}}}| | ||
<td style="width:{{{Width15|{{{Width|}}}}}}; border-bottom: 1px #000 solid; background-color:{{{Color15|{{{Color|}}}}}}; background-image: linear-gradient(to bottom, #eee, {{{Color15|{{{Color|}}}}}});{{{TitleSty|}}};{{{TitleSty15|}}}" {{{Attr15|}}}>{{{Title15|}}}</td>|}} | <td 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|}}}</td>|}} | ||
</tr> | </tr> | ||
<tr style="vertical-align: top;{{{Styles|}}}">{{#if:{{{Title0|}}}| | <tr style="vertical-align: top;{{{Styles|}}}">{{#if:{{{Title0|}}}| | ||
Line 47: | Line 47: | ||
| Title0=模板参数 | | Title0=模板参数 | ||
| Content0=<span style="display:none">{{</span> | | Content0=<span style="display:none">{{</span> | ||
模板参数即传入模板的变量,一般为'''''<code>参数名=参数值</code>'''''('''<code><nowiki>{{模板名 | 参数名1=参数值1 | 参数名2=参数值2}}</nowiki></code>)'''或者'''''<code>参数值</code>'''''('''<code><nowiki>{{模板名 | 参数值1 | 参数值2}}</nowiki></code>''' | #模板参数即传入模板的变量,一般为'''''<code>参数名=参数值</code>'''''('''''<code><nowiki>{{模板名 | 参数名1=参数值1 | 参数名2=参数值2}}</nowiki></code>)'''''或者'''''<code>参数值</code>'''''('''''<code><nowiki>{{模板名 | 参数值1 | 参数值2}}</nowiki></code>''''')。 | ||
#后者方式传入的参数,模板用'''''<code><nowiki>{{{参数序号}}}</nowiki></code>'''''('''''<code><nowiki>{{{1}}}</nowiki></code>''''')调用。前者既可以用'''''<code><nowiki>{{{参数序号}}}</nowiki></code>'''''调用,也可以用'''''<code><nowiki>{{{参数名}}}</nowiki></code>'''''('''''<code><nowiki>{{{param}}}</nowiki></code>''''')调用。 | |||
<span style="display:none">}}</span> | |||
}} | |||
< | |||
<nowiki>{{ | |||
}}</nowiki> | |||
Revision as of 03:23, 24 July 2014
Section模板 |
Section模板是由boxsnake编写的UI模板,旨在美化界面。此页即为Section模板示例。 |
模板参数 |
|