模板:Block
出自Meshal Lite
第1行: | 第1行: | ||
<includeonly>{{#vardefine: contentTextColor|{{#switch: {{{preset|rule}}} | <includeonly>{{#vardefine: contentTextColor|{{#switch: {{{preset|rule}}} | ||
|rule=inherit | |rule=inherit | ||
− | |info= | + | |info=inherit |
− | |cmpgntale= | + | |cmpgntale=inherit |
− | |cmpgntip= | + | |cmpgntip=inherit |
− | |op= | + | |op= inherit |
− | |#default= | + | |#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{preset|rule}}} |
− | |rule= | + | |rule=rgb(242,242,242) |
− | |info= | + | |info=rgb(254,249,227) |
− | |cmpgntale= | + | |cmpgntale=rgb(224,212,197) |
− | |cmpgntip= | + | |cmpgntip=rgb(227,231,244) |
− | |op= | + | |op=rgb(255,240,229) |
− | |#default= | + | |#default=rgb(242,242,242)}}}}{{#vardefine: headerTextColor|{{#switch: {{{preset|rule}}} |
− | |rule= | + | |rule=rgb(255,255,255) |
− | |info= | + | |info=rgb(255,255,255) |
− | |cmpgntale= | + | |cmpgntale=rgb(255,255,255) |
− | |cmpgntip= | + | |cmpgntip=rgb(255,255,255) |
− | |op= | + | |op= rgb(255,255,255) |
− | |#default= | + | |#default=rgb(255,255,255)}}}}{{#vardefine: headerBgColor|{{#switch: {{{preset|rule}}}| |
− | |rule= | + | |rule=rgb(116,125,130) |
− | |info= | + | |info=rgb(140,127,104) |
− | |cmpgntale= | + | |cmpgntale=rgb(152,112,88) |
− | |cmpgntip= | + | |cmpgntip=rgb(82,83,136) |
− | |op= | + | |op=rgb(146,116,112) |
− | |#default= | + | |#default=rgb(116,125,130)}}}}<div class="block" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{headerBgColor |{{#var: headerBgColor}}}}};"><div class="blockTitle" style="background-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; color: {{{headerTextColor|{{#var: headerTextColor}}}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}</div> |
<div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> | <div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> | ||
{{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]] | {{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]] |