Changes
Jump to navigation
Jump to search
← 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
Navigation menu
Personal tools
Create account
Log in
Namespaces
Template
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Homepage
Installation guides
Community portal
Recent changes
Random page
Help
Tools
Upload file
Special pages
Printable version