Open main menu
relax wiki
Search
Changes
← Older edit
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: {{{
default
base
|
1
}}}| 1 = {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}}{{{heading}}}{{#switch: {{{
level
dyn
|}}} | 1 = = | 2 = == | 3 = === | ==}}| 2 = {{#switch: {{{dyn|}}} | 1 = == | 2 = === | 3 = ==== | ===}}{{{heading}}}{{#switch: {{{
level
dyn
|}}} | 1 = == | 2 = === | 3 = ==== | ===}}| 3 = {{#switch: {{{dyn|}}} | 1 = === | 2 = ==== | 3 = ===== | ====}}{{{heading}}}{{#switch: {{{
level
dyn
|}}} | 1 = === | 2 = ==== | 3 = ===== | ====}}| 4 = {{#switch: {{{dyn|}}} | 1 = ==== | 2 = ===== | 3 = ====== | =====}}{{{heading}}}{{#switch: {{{
level
dyn
|}}} | 1 = ==== | 2 = ===== | 3 = ====== | ===
==}}
| {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === | ==}} {{{heading}}} {{#switch: {{{dyn|}}} | 1 = = | 2 = == | 3 = === |
==}}
}}<noinclude>
<nowiki>{{</nowiki>''section depth''
|
default
base
= |
level
dyn
=
| heading =
<nowiki>}}</nowiki>
=== Example ===
<nowiki>{{section depth|
level
dyn
=3|
default
base
=4|heading=This is a level 6 heading}}</nowiki>
{{section depth|
level
dyn
=3|
default
base
=4|heading=This is a level 6
the
heading}}
}}
</noinclude>
Bugman
Trusted,
Bureaucrats
4,228
edits