Open main menu

Template:Section depth

Revision as of 09:31, 16 October 2015 by Bugman (talk | contribs) (Fix for the default value of the 'base' parameter in the #switch: statement.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{heading}}}

Template documentation

The Section depth template

Goal

To allow for dynamically changing the depth of headings.


Usage

{{section depth
| base    =
| dyn     =
| heading =
}}
base 
The base depth which defaults to 1.
dyn 
The obligatory dynamic heading depth.
heading 
The heading text.

The final heading depth is calculated as default - 1 + dyn.

Example

{{section depth|dyn=3|base=4|heading=This is a level 6 heading}}
This is a level 6 heading