Template:Box: Difference between revisions

Want an adless experience? Log in or Create an account.
m
made width not override if not specified
No edit summary
m (made width not override if not specified)
Line 24: Line 24:
}}<!--
}}<!--


--><div class="{{#var:type}}box {{{class|}}}" style="{{#var:align}} width:{{{width|auto}}}; {{{style|}}}">{{#if: {{{title|}}} | <div class="title">{{{title}}}</div> |}}{{#if: {{#var:contents}} | {{#var:contents}}</div> |}}</includeonly></onlyinclude>
--><div class="{{#var:type}}box {{{class|}}}" style="{{#var:align}} {{#if:{{{width|}}}|width:{{{width}}};}} {{{style|}}}">{{#if: {{{title|}}} | <div class="title">{{{title}}}</div> |}}{{#if: {{#var:contents}} | {{#var:contents}}</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}}