模板:Block
出自Meshal Lite
第1行: | 第1行: | ||
− | <includeonly>{{#vardefine: | + | <includeonly>{{#vardefine: contentTextColor|{{#switch: {{{3|{{{preset|rule}}}}}} |
− | cmpgntale= | + | |rule=inherit |
− | cmpgntip= | + | |info=inherit |
− | #default= | + | |legend=inherit |
− | cmpgntale= | + | |chronicle=inherit |
− | cmpgntip= | + | |datalist=inherit |
− | #default= | + | |creature=inherit |
− | <div class="blockContent" style="{{{ | + | |feature=inherit |
− | {{{2|{{{text|}}}}}}</div></div></includeonly><noinclude> | + | |ability=inherit |
− | + | |item=inherit | |
− | + | |maplocation=inherit | |
− | + | |cmpgntale=inherit | |
− | + | |cmpgntip=inherit | |
− | + | |code=inherit | |
− | + | |op= inherit | |
− | + | |#default=inherit}}}}{{#vardefine: contentBgColor|{{#switch: {{{3|{{{preset|rule}}}}}} | |
− | + | |rule=rgb(242,242,242) | |
− | + | |info=rgb(254,249,227) | |
− | + | |legend=rgb(238, 237, 233) | |
− | + | |chronicle=rgb(247, 246, 245) | |
− | + | |datalist=rgb(255,255,255) | |
− | + | |maplocation=rgb(242,242,242) | |
− | + | |cmpgntale=rgb(224,212,197) | |
− | + | |cmpgntip=rgb(227,231,244) | |
− | + | |code=rgb(237, 244, 247) | |
− | + | |op=rgb(255,240,229) | |
− | + | |#default=rgb(242,242,242)}}}}{{#vardefine: headerTextColor|{{#switch: {{{3|{{{preset|rule}}}}}} | |
− | + | |rule=rgb(255,255,255) | |
− | + | |info=rgb(255,255,255) | |
− | + | |legend=rgb(74, 59, 45) | |
− | + | |chronicle=initial | |
− | + | |datalist=rgb(78, 81, 84) | |
− | + | |creature=initial | |
− | + | |feature=initial | |
− | {{ | + | |ability=initial |
− | + | |item=initial | |
− | + | |maplocation=rgb(255,255,255) | |
− | }} | + | |cmpgntale=rgb(255,255,255) |
− | + | |cmpgntip=rgb(255,255,255) | |
− | </noinclude> | + | |code=rgb(255,255,255) |
+ | |op= rgb(255,255,255) | ||
+ | |#default=rgb(255,255,255)}}}}{{#vardefine: headerBgColor|{{#switch: {{{3|{{{preset|rule}}}}}}| | ||
+ | |rule=rgb(116,125,130) | ||
+ | |info=rgb(140,127,104) | ||
+ | |legend=rgb(203, 198, 188) | ||
+ | |chronicle=rgb(235, 230, 221) | ||
+ | |datalist=rgb(242, 242, 242) | ||
+ | |creature=rgba(216, 206, 193, .75) | ||
+ | |feature=rgba(241, 209, 255, .75) | ||
+ | |ability=rgba(255, 227, 157, .75) | ||
+ | |item=rgba(209, 220, 237, .75) | ||
+ | |maplocation=rgb(180, 38, 64) | ||
+ | |cmpgntale=rgb(152,112,88) | ||
+ | |cmpgntip=rgb(82,83,136) | ||
+ | |code=rgb(101, 137, 154) | ||
+ | |op=rgb(146,116,112) | ||
+ | |#default=rgb(116,125,130)}}}}{{#vardefine: containerStyle|{{#switch: {{{3|{{{preset|rule}}}}}}| | ||
+ | |datalist=box-shadow: 0 0 3px rgba(0,0,0,.1); | ||
+ | |#default=}}}}<div class="block" style="background-color: {{{contentBgColor |{{#var: contentBgColor}}}}}; border-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; margin-left: {{{indent|0}}}em;{{#var: containerStyle}};"><div class="blockTitle" style="background-color: {{{headerBgColor |{{#var: headerBgColor}}}}}; color: {{{headerTextColor|{{#var: headerTextColor}}}}}; {{{headerStyle|}}}">{{{1|{{{title|}}}}}}<span style="float:right; font-size:smaller;">{{{tip|}}}</span></div> | ||
+ | <div class="blockContent" style="color: {{{contentTextColor|{{#var:contentTextColor}}}}}; {{{contentStyle|}}}"> | ||
+ | {{{2|{{{text|}}}}}}</div></div></includeonly><noinclude>{{tpl_helpdoc}}</noinclude> |