Difference between revisions of "Template:Section depth"

From relax wiki
Jump to navigation Jump to search
(Fixes for the template.)
(Fixed the example.)
Line 32: Line 32:
 
  <nowiki>{{section depth|level=3|default=4|heading=This is a level 6 heading}}</nowiki>
 
  <nowiki>{{section depth|level=3|default=4|heading=This is a level 6 heading}}</nowiki>
  
{{section depth|level=3|default=4|heading=This is a level 6 the heading}}
+
{{section depth|level=3|default=4|heading=This is a level 6 heading}}
  
 
}}
 
}}

Revision as of 09:28, 16 October 2015

{{{heading}}}

Template documentation

The Section depth template

Goal

To allow for dynamically changing the depth of headings.


Usage

{{section depth
| default =
| level   =
| 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|level=3|default=4|heading=This is a level 6 heading}}

This is a level 6 heading