Template:Heading/doc

Template to create HTML headings with variable and adjustable styles.

Parameters
All parameters are unnamed. The first two parameters are used to define the basic heading, the next ten control the styling.

General

 * : Text of the heading. Default:
 * : Level of the heading. Can be entered as any number from 1 to 6 or the codes h1 to h6.  Default:

Styling
This template uses a sub-routine to parse a series of shorthand codes into the appropriate styles. This shorthand can be seen in the table below. Up to ten codes can be entered. A few codes will apply more than one property.

Note: The headings will inherit the standard MediaWiki styling for their level by default. This needs to be over-ridden with the appropriate codes if an alternative is desired.

Similar

 * table style

{	"params": { "1": {			"aliases": [ "text" ],			"label": "1", "description": "text of heading line", "required": true },		"2": {			"label": "2", "description": "Heading level (i.e number of = characters at start and end)", "type": "number", "required": true },		"3": {},		"4": {},		"5": {},		"6": {},		"7": {},		"8": {},		"9": {},		"10": {},		"11": {},		"12": {},		"class": { "label": "class", "description": "CSS classes to apply to this heading" },		"title": {}, "@": {			"label": "@", "description": "title or id to use as an anchor for linking to this heading", "type": "string" }	} }