Difference between revisions of "Template:Subsection box"
Jump to navigation
Jump to search
(explain how to change subsection level) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div id="box" style="{{{ostyle|}}}"> | <div id="box" style="{{{ostyle|}}}"> | ||
{{{1|}}} | {{{1|}}} | ||
<div style="padding:0.5em; {{{istyle|}}}"> | <div style="padding:0.5em; {{{istyle|}}}"> | ||
Line 9: | Line 10: | ||
<code><nowiki>{{subsection box|<h5>Title</h5>|Contents}}</nowiki>}}</code> | <code><nowiki>{{subsection box|<h5>Title</h5>|Contents}}</nowiki>}}</code> | ||
The section level of the title can be controlled by <code><nowiki><hn></nowiki></code> tags. | The section level of the title can be controlled by <code><nowiki><hn></nowiki></code> tags. For level 2 (top-most section level of most pages on this wiki), you can also use [[Template:Box]]. | ||
[[Category:Box templates]]</noinclude> | [[Category:Box templates]]</noinclude> |
Latest revision as of 14:53, 31 July 2010
How-To
To create a box with this script simply type the following as a base template:
{{subsection box|<h5>Title</h5>|Contents}}
The section level of the title can be controlled by <hn>
tags. For level 2 (top-most section level of most pages on this wiki), you can also use Template:Box.