Template:Box: Difference between revisions

Want an adless experience? Log in or Create an account.
m
left bracket workaround is unnecessary. fixed right bracket within its template.
mNo edit summary
m (left bracket workaround is unnecessary. fixed right bracket within its template.)
 
Line 24: Line 24:
}}<!--
}}<!--


--><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:{{{edit|}}}|<span class{{=}}"edit plainlinks">[{{fullurl:{{{edit}}}|action=edit}} {{!(}}edit{{)!}}]</span>}}{{#if:{{{hide|}}}|{{Toggler|default={{{hide}}}}}}}</div>}}<div class="{{#if:{{{hide|}}}|_toggle_init{{{hide}}} _toggle}}">{{#if:{{#var:contents}}|{{#var:contents}}</div></div>}}</includeonly></onlyinclude>
--><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:{{{edit|}}}|<span class{{=}}"edit plainlinks">[{{fullurl:{{{edit}}}|action=edit}} [edit{{)!}}]</span>}}{{#if:{{{hide|}}}|{{Toggler|default={{{hide}}}}}}}</div>}}<div class="{{#if:{{{hide|}}}|_toggle_init{{{hide}}} _toggle}}">{{#if:{{#var:contents}}|{{#var:contents}}</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}}