Template:Chapter heading/doc

This template is for creating chapter headings (or titles) with some standard formatting. You may use either Chapter heading or the shorter ch.

Defaults

 * Font size: 120% (equal to larger)
 * Text alignment: center
 * Small caps: no
 * Uppercase: yes
 * Top margin: 2em
 * Bottom margin: inherited

Uppercase?
Uppercase text, especially in headings, is generally a typographic/stylistic choice, not a statement of emphasis. It is therefore better to type titles in title case and use CSS (via uc or this template) to style it.

Basic template
This template is without the optional parameters.



Full template
This template includes all optional parameters, except for the extra CSS styling parameter. Note that you may need to delete unused parameters for the template to work correctly.

Labeled: 

Parameters

 * Content.

or : Size of the font, defined in %, em, px, pt, in or cm. See W3Schools for more possible definitions. Default: 120%

or : Text alignment. left, center, right, justify. Default: center

or : Small caps. Use for small caps. Cancels out uppercase effect. Default: null

or : Uppercase. Use for text as written. If, then this parameter will be null. Default: uppercase

or : Margin above the heading, defined in %, em, px, pt, in or cm. Default: 2em

or : Margin below the heading, defined in %, em, px, pt, in or cm. Default: null


 * CSS, which will override any styles defined before it. Remember to use semicolons to end statements.

Default


Produces:

Bold and italics
Use can single quotes to define italics and bold as your normally would. (Or, if you know the CSS, you can use that as well.)

Bold


Produces:

Italics


Produces:

Bold italics


Produces:

Font size


Produces:

Alignment


Produces:

Small caps


Produce:

No uppercase


Produces:

Top and bottom margins (changed)
Text before

Text after

Produces:

Text before

Text after

Styling with CSS


Produces:



Produces:



Produces: