17,230
edits
m (made width not override if not specified) |
(added hiding capability and default centered title) |
||
Line 24: | Line 24: | ||
}}<!-- | }}<!-- | ||
--><div class="{{#var:type}}box {{{class|}}}" style="{{#var:align}} {{#if:{{{width|}}}|width:{{{width}}};}} {{{style|}}}">{{#if: {{{title|}}} | <div class="title">{{{title}}}</div> | --><div class="{{#var:type}}box {{{class|}}}" style="{{#var:align}} {{#if:{{{width|}}}|width:{{{width}}};}} {{{style|}}}">{{#if:{{{title|}}}|<div class="title" style="text-align:{{{titlealign|center}}}">{{{title}}}{{#if:{{{hide|}}}|{{Toggler|default={{{hide}}}}}}}</div>}}{{#if:{{#var:contents}}|<div class="{{#if:{{{hide|}}}|_toggle_init{{{hide}}} _toggle}}">{{#var:contents}}</div></div>|<div>}}</includeonly></onlyinclude> | ||
{{Box|title=Example|Default light box with a title.}}{{Box|dark|right|Dark box floated right.}}{{Clear}} | {{Box|title=Example|Default light box with a title.}}{{Box|dark|right|Dark box floated right.}}{{Clear}} | ||