Template:Cl-act/doc

The "cl-act" templates are an attempt to standardize and simplify the formatting of Commonwealth (initially Canadian) legislation (the "cl" stands for "Commonwealth law").

Templates
The templates include:
 * cl-act
 * cl-act-s
 * cl-act-s1
 * cl-act-s1/2
 * cl-act-s2
 * cl-act-s3
 * cl-act-s4
 * cl-act-h1
 * cl-act-h2
 * cl-act-pre
 * cl-act-pre-nt
 * cl-act-t
 * cl-act-t-int
 * cl-act-t-int1
 * cl-act-amend
 * cl-act-missing

cl-act
cl-act wraps the entire act. It formats the acts title, and automatically inserts the act into the country's legisation category (default Country:Acts of Parliament, year). It also automatically inserts the appropriate copyright tag at the bottom of the act (default PD-EdictGov). Current non-default values are "Canada", "U.K." and "England". More countries can be added as needed.

cl-act-s
cl-act-s is for generic formatting for a section of the act, and should only be used where one of the more specific templates will not work. The templates "cl-act-sx", "cl-act-hx" are for formatting specific cases, where "s" stands for "section", "h" stands for "heading" and "x" is the level of the section or heading: cl-act-s1 would format a level 1 section, cl-act-s2 would format a level 2 section (i.e. a subsection), cl-act-s3 would format a level 3 section (i.e. a subsubsection), etc.

Generally, these templates shift text to the right to leave space for section titles, float a title to the left (if used), apply formating to the section number/letter, and create an anchor for linking.

cl-act-s1
cl-act-s1 formats a "level 1" section.

cl-act-s2
cl-act-s2 formats a "level 2" section.

cl-act-s1/2
cl-act-s1/2 is used where there is no level 1 text, i.e. the section opens immediately with 1.(1) or equivalent, rather than
 * 1. text
 * (1) text.

cl-act-h1
cl-act-h1 formats a "level 1" heading.

cl-act-h2
cl-act-h2 formats a "level 2" heading.

cl-act-pre
cl-act-pre is used to automatically format the preamble. If the preamble has no title, use cl-act-pre-nt

cl-act-t-int
cl-act-t-int floats a title to the left of the text, used where titles are in the main body of the text, rather than at the begining of a (sub)section. Typical CSS rendering of floats puts them on the next line. To correct this, use cl-act-t-int1, which shifts the titles up one line, but may cause problems with titles overlapping.

cl-act-t is a generic template for floating a title. It is called by the section formatting templates above, and is not used directly when editing an act.

cl-act-missing
cl-act-missing inserts generic text where pieces of the act are missing. No parameters.

cl-act-amend
cl-act-amend is used where a section contains an amendment of another act.