Difference between revisions of "Template:Cite canlaw"
Jump to navigation
Jump to search
imported>TheFeds (Disabling wiki markup in captions of external links (to improve link parsing).) |
imported>TheFeds |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{{type}}}|reg|{{#if:{{{wikilink|}}}|''[[{{{wikilink}}}{{!}}{{{regtitle}}}]]'', {{{regnumber}}} ([{{{link}}} | + | {{#ifeq:{{{type}}}|reg|{{#if:{{{wikilink|}}}|''[[{{{wikilink}}}{{!}}{{{regtitle}}}]]'', {{{regnumber}}} ([{{{link}}} {{{regtitle}}}] at {{{linkloc}}})|''[{{{link}}} {{{regtitle}}}]'', {{{regnumber}}}}}|{{#ifexist:{{{wikilink}}}|''[[{{{wikilink}}}{{!}}{{{short title}}}]]''|''[{{{link}}} {{{short title}}}]''}}, {{#switch:{{{abbr}}}|S.C.|R.S.C.=[[Statutes of Canada{{!}}{{{abbr}}}]]|{{{abbr}}}}} {{{year}}}, c. {{{chapter}}}{{#if:{{{section|}}}|, s. {{{section}}}}}{{#if:{{{subsection|}}}|({{{subsection}}})}}{{#if:{{{part|}}}|, Part {{{part}}}}}{{#if:{{{division|}}}|, Div. {{{division}}}}}{{#if:{{{schedule|}}}|, Sch. {{{schedule}}}}}{{#if:{{{amended1|}}} |, as amended by {{{amended1}}}}}{{#if:{{{amended2|}}} | and {{{amended2}}}}}{{#if:{{{amended3|}}} | and {{{amended3}}}}}{{#if:{{{amended4|}}} | and {{{amended4}}}}}{{#if:{{{amended5|}}} | and {{{amended5}}}}} {{#ifexist:{{{wikilink}}}|([{{{link}}} {{{short title}}}] at {{{linkloc}}})|}}}}{{#if:{{{accessdate|}}}|. <span class="reference-accessdate">{{{accessdate}}}.</span>}} |
| − | <noinclude><!--NOTE: Please add categories and interwikis to [[Template:Cite canlaw/doc]] -->{{Documentation}}</noinclude> | + | <noinclude><!--NOTE: Please add categories and interwikis to [[Template:Cite canlaw/doc]] -->{{Documentation}} <</noinclude> |
Latest revision as of 09:14, 28 November 2020
[{{{link}}} {{{short title}}}], {{{abbr}}} {{{year}}}, c. {{{chapter}}}
This citation template is for use in citing Canadian federal and provincial laws and regulations in a uniform manner. It is based on the format used at Queen's University at Kingston, found here.
Please note: use of this template is not required by policy, MOS, CITE, or any other policies and guidelines. It just keeps things tidy and uniform.
Syntax
{{Cite canlaw
|short title =
|abbr =
|year =
|chapter =
|section =
|subsection =
|part =
|division =
|schedule =
|link =
|linkloc =
|wikilink =
|type =
|amended1 =
|amended2 =
|amended3 =
|amended4 =
|amended5 =
|regtitle =
|regnumber =
}}
or
{{Cite canlaw|short title =|abbr =|year =|chapter =|section =|subsection =|part =|division =|schedule =|link =|linkloc =|wikilink =|type =|amended1 =|amended2=|amended3 =|amended4 =|amended5 =|regtitle =|regnumber =}}
Usage
| Parameter | Mandatory | Description | Input | Result |
|---|---|---|---|---|
| short title | yes | The short title of the Act | Employment Standards Act | Employment Standards Act Will be linked, subject to wikilink and/or link parameters. |
| abbr | yes | The abbreviation of the record in which the statute was published. | S.O. | S.O. S.C. and R.S.C. will automatically be linked to Statutes of Canada; all other inputs will render as plaintext (until we have articles for them...) |
| year | yes | Year of publication in the above record. | 2000 | 2000 |
| chapter | yes | Chapter name or number in the record. | 41 | chap. 41 |
| section | no | Section of chapter | 8 | section 8 |
| subsection | no | Subsection of above section | 3 | sub. 3 |
| part | no | Part of Act | IV | Part IV |
| division | no | Division within Part | III | Div. III |
| schedule | no | Schedule to Act | Sch. | |
| link | yes | Full link to website of statute. Please be specific. | http://www.e-laws.gov.on.ca/html/statutes/english/elaws_statutes_00e41_e.htm#s8s3 | Will be linked from the title of the act, or separately at the end of the citation if there is a valid wikilink for the act. |
| linkloc | yes if wikilink is provided | Name of website where text is sourced | ServiceOntario | at ServiceOntario Appended to the end of the citation if a valid wikilink is provided only. |
| wikilink | no | Bare wikilink to enwiki article about the act | Employment Standards Act | Employment Standards Act |
| type | no | Determines whether this is a statute or a regulation. | reg | Switches template to shorter version for citing regulations. If this variable is used, only the regtitle, regnumber, wikilink, link and linkloc parameters need be used. |
| amended1 | no | Displays information about amendments to the original statute. | S.O. 2009, c. 9, s. 1 | as amended by S.O. 2009, c. 9, s. 1 Note that the full volume, year, chapter, section information needs to be included as plaintext, because I wasn't up to coding all that. |
| amended2 | no | Displays information about further amendments to the original statute. | S.O. 2017, c. 4, s. 42 | and S.O. 2017, c. 4, s. 42 |
| amended3 | no | as above | as above | as above |
| amended4 | no | as above | as above | as above |
| amended5 | no | as above | as above | as above |
| regtitle | no unless citing a regulation as opposed to statute | Title of the regulation | Canadian Aviation Regulations | Canadian Aviation Regulations Will be linked, subject to wikilink and/or link parameters. |
| regnumber | no unless citing a regulation as opposed to statute | Number of the regulation | SOR/96-433 | SOR/96-433 |
Examples
Statute
{{Cite canlaw
|short title = Employment Standards Act
|abbr = S.O.
|year = 2000
|chapter = 41
|section = 8
|subsection = 3
|wikilink = Employment Standards Act
|link = http://www.e-laws.gov.on.ca/html/statutes/english/elaws_statutes_00e41_e.htm#s8s3
|linkloc = ServiceOntario
|amended1 = S.O. 2009, c. 9, s. 1
}}
Gives: Employment Standards Act, S.O. 2000, c. 41, s. 8(3), as amended by S.O. 2009, c. 9, s. 1
Regulation
{{Cite canlaw
|link = http://www.canlii.org/en/ca/laws/regu/sor-96-433/latest/sor-96-433.html
|linkloc = CanLII
|wikilink = Canadian Aviation Regulations
|type = reg
|regtitle = Canadian Aviation Regulations
|regnumber = SOR/96-433
}}
Gives: Canadian Aviation Regulations, SOR/96-433 (Canadian Aviation Regulations at CanLII)
See also
- {{Cite CanLII}}
- {{Cite Canadian Court}}
| The above documentation is transcluded from Template:Cite canlaw/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
<