Jump to content

Template:Cl-act/doc

From Wikisource

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

[edit]

The templates include:

Usage

[edit]

cl-act

[edit]

{{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.

Parameters
Paramater Mandatory Definition Notes
monarch no Monarch under which the act was passed if "monarch" is not included, "year" is substituted for "reign" and "monarch" in the title of the act.
reign no Year(s) of reign of the monarch in which the act was passed. if "monarch" is not included, "year" is substituted for "reign" and "monarch" in the title of the act.
chapter yes Chapter of act.
country yes Country in which the act was passed.
title yes Title of the act Should probably be split into two parameters "long title" and "short title". Use long title by default, as text should be created at short title.
day no Day the act recieved royal assent.
month no The month the act recieved royal assent.
year yes The year the act recieved royal assent.
act yes The text of the act. The rest of the "cl-act" templates are to ease formatting of this text

cl-act-s

[edit]

{{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-s" Parameters
Paramater Mandatory Definition Notes
anchor no Creates an anchor for linking.
section no The section number/letter, including formatting.
title no Section title.
text no Section text.

cl-act-s1

[edit]

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

"cl-act-s1" Parameters
Paramater Mandatory Definition Notes
s1 no The (level 1) section number/letter. An anchor is automatically created in the form of s1.
title no Section title.
text yes Section text.

cl-act-s2

[edit]

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

"cl-act-s2" Parameters
Paramater Mandatory Definition Notes
s1 no The (level 1) section number/letter. An anchor is automatically created in the form of s1.(s2)
s2 no The (level 2) section number/letter. An anchor is automatically created in the form of s1.(s2)
title no Section title.
text yes Sub-section text.

cl-act-s1/2

[edit]

{{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-s1/2" Parameters
Paramater Mandatory Definition Notes
s1 no The (level 1) section number/letter. An anchor is automatically created in the form of s1.(s2)
s2 no The (level 2) section number/letter. An anchor is automatically created in the form of s1.(s2)
title no Section title.
text yes Sub-section text.

cl-act-h1

[edit]

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

"cl-act-h1" Parameters
Paramater Mandatory Definition Notes
1 yes Heading text, not including heading number (if applicable) An anchor is automatically created in the form of "1" (or "Part 2" if applicable).
2 no Heading number (if applicable)

cl-act-h2

[edit]

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

"cl-act-h2" Parameters
Paramater Mandatory Definition Notes
1 yes Heading text, not including heading number (if applicable) An anchor is automatically created in the form of "1" (or "2. 1" if applicable).
2 no Heading number (if applicable)

cl-act-pre

[edit]

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

"cl-act-pre" and "cl-act-pre-nt" Parameters
Paramater Mandatory Definition Notes
1 yes Preamble text

cl-act-t-int

[edit]

{{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-int" and "cl-act-t-int1" Parameters
Paramater Mandatory Definition Notes
1 yes Title anchor
2 yes Title text

{{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-t" Parameters
Paramater Mandatory Definition Notes
anchor no the section anchor
text no the section title text
internal no adjusts title location if called from inside a section body
adjust no adjusts title location up one line to compensate for CSS rendering of floats on most browsers

cl-act-missing

[edit]

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

cl-act-amend

[edit]

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

"cl-act-amend" Parameters
Paramater Mandatory Definition Notes
1 yes The text of the ammendments. Format with section formatting templates above.

Example 1

[edit]
{{cl-act
 | reign   = 23
 | monarch = Elizabeth II
 | chapter = 4
 | country = Canada
 | title   = An Act to make provision for the retirement of members of the Senate
 | day     = 2
 | month   = June
 | year    = 1965
 | act     = 

{{cl-act-pre-nt|Her Majesty, by and with the advice and consent of the Senate and House of Commons of Canada, enacts as follows:}} 

{{cl-act-h1|Amendments to the British North America Act, 1867|I}}

{{cl-act-s1
  |s1=1
  |title=Amendment as to legislation respecting the term of office for Senators
  |text=Section 29 of the ''British North America Act, 1867'' is repealed and the following substituted therefor:

{{cl-act-amend|
{{cl-act-s1/2
  |s1=29
  |s2=1
  |title=Tenure of place in Senate
  |text=Subject to subsection ''(2)'', a Senator shall, subject to the provisions of this Act, hold his place in the Senate for life.}}

{{cl-act-s2
  |s1=29
  |s2=2
  |text=A Senator who is summoned to the Senate after the coming into force of this subsection shall, subject to this Act, hold his place in the Senate until he attains the age of seventy-five years.}}
}}
}}

{{cl-act-s1
  |s1=2
  |title=Short title and citation of Part I
  |text=This Part may be cited as the ''British North America Act, 1965'', and the ''British North America Acts, 1867 to 1964'', and this Part may be cited together as the ''British North America Acts, 1867 to 1965''.}}

{{cl-act-missing}}
}}

Example 2

[edit]
{{cl-act
 | country = Israel
 | title   = Basic Law: The President of the State (Amendment №5)
 | chapter = 36
 | day     = 3
 | month   = Tevet
 | year    = 5759
 | catyear = 1998
 | act     = 

{{cl-act-s1
  |s1=1
  |title=Amendment as to legislation respecting the term of office for Senators
  |text=The Provisions of Article 3 of ''Basic Law: The President of the State'' shall become Section (a) of Article 3, and in which, "Seven Years" shall be Substituted for "Five Years", and after it shall come:

{{cl-act-amend|
{{cl-act-s2
  |s2=b
  |text=The President of the State shall serve for One Term Only}}
}}}}

{{cl-act-missing}}
}}