Template:Infobox Canadian legislation/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

Usage

Full syntax

This infobox takes a number of parameters:

{{{short_title}}}
Long title{{{long_title}}}
Citation{{{citation}}}
Introduced by{{{introduced_by}}}
Territorial extent{{{territorial_extent}}}
Dates
Made{{{si_made_date}}}
Laid before Parliament{{{si_laid_date}}}
Royal assent{{{royal_assent}}}
Commencement{{{commencement}}}
Repealed{{{repeal_date}}}
Other legislation
Amends{{{amends}}}
Replaces{{{replaces}}}
Made under{{{primary_legislation}}}
Amended by{{{amendments}}}
Repealed by{{{repealing_legislation}}}
Relates to{{{related_legislation}}}
Status: Unknown
[{{{legislation_history}}} History of passage through Parliament]
[{{{original_text}}} Text of statute as originally enacted]
[{{{revised_text}}} Revised text of statute as amended]
{{Infobox Canadian legislation
|short_title          = 
|type                 = 
|parliament           = 
|long_title           = 
|year                 = 
|citation             = 
|introduced_by        = 
|territorial_extent   = 
|si_made_date         = 
|si_laid_date         = 
|royal_assent         = 
|commencement         = 
|repeal_date          = 
|replaces             = 
|primary_legislation  = 
|amendments           = 
|related_legislation  = 
|repealing_legislation= 
|status               = 
|original_text        = 
|legislation_history  = 
|revised_text         = 
}}

Acts of Parliament

{{Infobox Canadian legislation
|short_title          = 
|type                 = Act
|parliament           = 
|long_title           = 
|year                 = 
|citation             = 
|introduced_by        = 
|territorial_extent   = 
|royal_assent         = 
|commencement         = 
|repeal_date          = 
|replaces             = 
|amends               = 
|amendments           = 
|related_legislation  = 
|repealing_legislation= 
|status               = 
|original_text        = 
|legislation_history  = 
|revised_text         = 
}}

Statutory instruments

{{Infobox Canadian legislation
|short_title          = 
|type                 = Statutory Instrument
|parliament           = 
|year                 = 
|citation             = 
|introduced_by        = 
|territorial_extent   = 
|si_made_date         = 
|si_laid_date         = 
|commencement         = 
|repeal_date          = 
|replaces             = 
|amends               = 
|primary_legislation  = 
|amendments           = 
|related_legislation  = 
|repealing_legislation= 
|status               = 
|original_text        = 
|legislation_history  = 
|revised_text         = 
}}

Microformat

The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases.

Classes used

The HTML classes of this microformat include:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox Canadian legislation in articles based on its TemplateData.

TemplateData for Infobox Canadian legislation

<templatedata> {

 "description": "An infobox for CA statute legislation.",
 "params": {
   "short_title": {
     "label": "Short title",
     "description": "The short title of the legislation, displayed at the top of the infobox. This will usually be the same as the article title.",
     "type": "string",
     "default": "Infobox Canadian legislation/doc",
     "suggested": true
   },
   "type": {
     "label": "Type",
     "description": "The type of legislation, whether an Act or Statutory Instrument. Displays as a subheading at the top of the infobox.",
     "type": "string",
     "default": ""
   },
   "parliament": {
     "description": "The name of the parliament which made the legislation.",
     "type": "wiki-page-name",
     "default": "Parliament of Canada",
     "suggested": true
   },
   "long_title": {
     "label": "Long title",
     "description": "The long title of the legislation. Some are extremely long and can clutter up the infobox.",
     "type": "string"
   },
   "year": {
     "description": "The (calendar) year of the legislation — along with \"parliament\", this parameter affects the coat of arms to be displayed.",
     "type": "number",
     "suggested": true
   },
   "citation": {
     "label": "Statute book chapter",
     "description": "The chapter within the statute book where the legislation is to be found. Where this is before 1963, it must use the regnal year, not the calendar year; see Citation of United Kingdom legislation#Acts of Parliament.",
     "type": "string"
   },
   "introduced_by": {
     "label": "Introduced by",
     "description": "Who first introduced the legislation into parliament? This could be a link to an individual politician, or a political party if you do not know the individual. One could also mention whether it was a government-supported bill or a private member's bill.",
     "type": "content"
   },
   "territorial_extent": {
     "label": "Territorial extent",
     "description": "The part(s) of the United Kingdom to which the act extends.",
     "type": "wiki-page-name"
   },
   "si_made_date": {
     "label": "Date made",
     "description": "The date a Statutory Instrument was made.",
     "type": "date"
   },
   "si_laid_date": {
     "label": "Date laid before Parliament",
     "description": "The date a Statutory Instrument was laid before Parliament.",
     "type": "date"
   },
   "royal_assent": {
     "label": "Royal Assent",
     "description": "The date the legislation received Royal Assent (only applicable in Commonwealth countries, other users may wish to copy and modify the template).",
     "type": "date"
   },
   "commencement": {
     "description": "The date(s) at which the legislation was brought into force (but note that for acts with more than three or four commencement dates this is inappropriate to use).",
     "type": "content"
   },
   "amends": {
     "label": "Amends",
     "description": "Earlier legislation that is amended by this piece of legislation.",
     "type": "date"
   },
   "replaces": {
     "label": "Replaces",
     "description": "Earlier legislation that is replaced by this piece of legislation.",
     "type": "date"
   },
   "primary_legislation": {
     "description": "The primary legislation secondary legislation is made under.",
     "type": "content",
     "label": "Primary legislation",
     "default": ""
   },
   "amendments": {
     "description": "Internal links to amending or repealing legislation, or even a list of years in which the legislation has been modified (note that for acts with a great deal of amending or repealing legislation only the most significant pieces of legislation should be listed).",
     "type": "content"
   },
   "related_legislation": {
     "label": "Related legislation",
     "description": "Internal links to related legislation",
     "type": "content"
   },
   "repealing_legislation": {
     "label": "Repealing legislation",
     "description": "Internal links to legislation repealing this statute.",
     "type": "content"
   },
   "status": {
     "description": "This can be one of six values:* \"Current\" (for legislation still in force)* \"Amended\" (for legislation which has been modified by separate legislation)* \"Repealed\" (for legislation which has been repealed, or is no longer in force)* \"Not_yet_in_force\" (for legislation which has not been commenced yet)* \"Not_fully_in_force\" (for legislation which has been partially commenced* \"Not_passed\" (for bills that have not been enacted). This defaults to \"Unknown\" if an illegal value is entered. The text area is colour-coded.",
     "default": "Unknown",
     "type": "string"
   },
   "original_text": {
     "label": "Original text",
     "description": "External link to the text of the legislation as originally enacted.",
     "type": "string"
   },
   "legislation_history": {
     "label": "Legislation history",
     "description": "External link to information about the passage of the legislation through the legislature.",
     "type": "string"
   },
   "revised_text": {
     "label": "Revised text link",
     "description": "External link to the revised text of the statute, as amended",
     "type": "string"
   },
   "repeal_date": {
     "description": "The date the legislation was repealed.",
     "type": "content",
     "label": "Repeal date"
   },
   "collapsed": {
     "label": "Collapse?",
     "description": "\"y\" if the infobox should be collapsed by default.",
     "type": "string"
   }
 },
 "paramOrder": [
   "short_title",
   "type",
   "parliament",
   "long_title",
   "year",
   "citation",
   "introduced_by",
   "territorial_extent",
   "replaces",
   "amends",
   "si_made_date",
   "si_laid_date",
   "royal_assent",
   "commencement",
   "repeal_date",
   "amendments",
   "primary_legislation",
   "repealing_legislation",
   "related_legislation",
   "status",
   "original_text",
   "legislation_history",
   "revised_text",
   "collapsed"
 ]

} </templatedata>