Open main menu

Changes

Template:Section depth

123 bytes added, 09:31, 16 October 2015
Fix for the default value of the 'base' parameter in the #switch: statement.
{{#switch: {{{defaultbase|1}}}
| 1 = {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}}
| 2 = {{#switch: {{{dyn|}}} | 1 = == | 2 = === | 3 = ==== | ===}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = == | 2 = === | 3 = ==== | ===}}
| 3 = {{#switch: {{{dyn|}}} | 1 = === | 2 = ==== | 3 = ===== | ====}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = === | 2 = ==== | 3 = ===== | ====}}
| 4 = {{#switch: {{{dyn|}}} | 1 = ==== | 2 = ===== | 3 = ====== | =====}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = ==== | 2 = ===== | 3 = ====== | =====}}
| {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}}
}}<noinclude>
<nowiki>{{</nowiki>''section depth''
&#124; default base = &#124; level dyn =
&#124; heading =
<nowiki>}}</nowiki>
=== Example ===
<nowiki>{{section depth|leveldyn=3|defaultbase=4|heading=This is a level 6 heading}}</nowiki>
{{section depth|leveldyn=3|defaultbase=4|heading=This is a level 6 the heading}}
}}
</noinclude>
Trusted, Bureaucrats
4,223

edits