Template:Box: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
no edit summary
No edit summary
No edit summary
Line 24: Line 24:


--><div class="{{#var:type}}box" style="{{#var:align}} width={{{width|80%}}}">{{#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|80%}}}">{{#if: {{{title|}}} | <div class="title">{{{title}}}</div> |}}{{#if: {{#var:contents}} | {{#var:contents}}</div> |}}</includeonly></onlyinclude>
{{Box|Default light box.}}{{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}}


==Purpose==
==Purpose==
Line 41: Line 41:


==Usage==
==Usage==
Basic usage: {{Usage|dark?|align|contents}}
{{Usage|dark?|align|width{{=}}|title{{=}}|contents}}
{{Usage/Param|dark?|Boxes are light by default. For a dark box, use the argument "dark".|optional|light}}
{{Usage/Param|dark?|Boxes are light by default. For a dark box, use the argument "dark".|optional|light}}
{{Usage/Param|align|"left", "right", or "center". Left and right float the box so other content wraps around it.|optional}}
{{Usage/Param|align|"left", "right", or "center". Left and right float the box so other content wraps around it.|optional}}
{{Usage/Param|width|Width of the box, including units (such as "px", "em", "%").|optional}}
{{Usage/Param|title|Title to be placed on the top of the box.|optional}}
{{Usage/Param|contents|Everything that goes inside the box.|optional}}
{{Usage/Param|contents|Everything that goes inside the box.|optional}}


Navigation menu