Template:Box: Difference between revisions

Want an adless experience? Log in or Create an account.
added undocumented style hook
m (Protected "Template:Box": Widely used page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(added undocumented style hook)
Line 24: Line 24:
}}<!--
}}<!--


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