Template:Cl-act
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:
- {{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}}
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.
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.
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.
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.
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.
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.
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.
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}}
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.
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.
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.
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}} }}
23 Elizabeth II, c. 4 (Canada)
An Act to make provision for the retirement of members of the Senate
[Assented to 2nd June, 1965.]
Her Majesty, by and with the advice and consent of the Senate and House of Commons of Canada, enacts as follows:
1. Section 29 of the British North America Act, 1867 is repealed and the following substituted therefor:
29.(1) Subject to subsection (2), a Senator shall, subject to the provisions of this Act, hold his place in the Senate for life.
(2) 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.
2. 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.
. . .
This work is in the public domain worldwide because it was prepared or published by or under the direction or control of the Canadian Government or any government department prior to 1974.
Section 12 of the Canadian Copyright Act provides a reservation for Crown rights or privileges. Lack of modern case law on the subject makes it unclear whether perpetual prerogative rights over these documents still apply, or whether these rights have lapsed. Notwithstanding, these documents are reproducible under the terms of the Reproduction of Federal Law Order.
Public domainPublic domainfalsefalse
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}} }}
5759, c. 36 (Israel)
Basic Law: The President of the State (Amendment №5)
[Assented to 3rd Tevet, 5759.]
1. 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:
(b) The President of the State shall serve for One Term Only
. . .