Template:Box: Difference between revisions

Want an adless experience? Log in or Create an account.
101 bytes removed ,  October 15, 2012
no edit summary
(Created page with "<onlyinclude><includeonly>{{#vardefine:type|}}{{#vardefine:align|}}{{#vardefine:contents|}}<!-- -->{{#switch: {{lc:{{{1|}}}}} | dark = {{#vardefine:type|dark}} | left = {{#v...")
 
No edit summary
Line 46: Line 46:
{{Usage/Param|contents|Everything that goes inside the box.|optional}}
{{Usage/Param|contents|Everything that goes inside the box.|optional}}


For contents that would be inconvenient to pass as an argument to a template due to high use of equal signs or pipe characters, such as tables, the contents can instead be included immediately ''after'' this template declaration and followed by {{Usage|sub=Bottom}}.
For contents that would be inconvenient to pass as an argument to a template due to high use of equal signs or pipe characters, such as tables, the contents can instead be included immediately ''after'' this template declaration and followed by {{Usage|sub=Bottom}}. ''e.g.'':


{{Usage/Example}}
<pre>{{Box|right}}
<pre>{{Box|right}}
{| class="wikitable"
{| class="wikitable"
| table
| table
|}
|}
{{Box/Bottom}}</pre>}}
{{Box/Bottom}}</pre>
{{Usage/Result|
{{Box|right}}
{{(!}} class="wikitable"
{{!}} table
{{!)}}
{{Box/Bottom}}}}




{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}
{{Cat|Box Templates}}
{{Cat|Box Templates}}