Template:Infobox legislation/doc

Usage
This template summarizes information about a piece of legislation or a bill. It is designed to be generic so that it can be used for the bills, statutes and subsidiary legislation (delegated legislation) of any jurisdiction. If you have suggestions as to how the template may be improved, please leave a message on the talk page.

Specific infoboxes for European Union, United Kingdom (national and devolved) and United States (federal only) legislation are at Infobox EU legislation, Infobox UK legislation and Infobox U.S. legislation respectively (although this template also supports the latter two to a limited extent).

Legislation enacted by a legislature (e.g. an Act of Parliament/Congress)
See next section for bills that did not pass or is still being considered by the legislature.



Proposed legislation considered (but failed) or in consideration by a legislature (e.g. a bill)


Legislation enacted or considered without going through a legislature (e.g. a regulation or an order)


All available parameters


Parameters
This infobox takes a number of parameters, which are all optional:

Statute


Bill


Technical information
The image parameter in the template contains (with slight modifications) the following function:



The function does the following tasks:
 * If the parameter image is used in the template, that image is displayed.
 * If image is not used, a check is done to see if the value of legislature or enacted_by is listed in Infobox legislation/images. If the result is blank, then no image is displayed. If the result is an image file (the coat of arms or seal, or a photograph of a building representing the person or institution that enacted the legislation), then the image file is displayed. Infobox legislation/images can be tweaked to display different images depending on the date when the legislation was decided – for help with this, leave a message on the talk page.
 * If a value is specified for imagesize, the image is given that width; otherwise the image width defaults to "frameless".
 * If a value, adds value to image. Values less than 1 scale the image down (0.9 = 90%); values greater than 1 scale the image up (1.15 = 115%).
 * In either case the image is given alt text specified by imagealt.

JackLee came up with the first version of this function for Infobox court case, but thanks are due to Chris Cunningham for coming up with a cleaner solution that works better.

TemplateData
{	"description": "Infobox for an article about an act, statute, bill, regulation, order, measure or other legislation in any jurisdiction. European Union, United Kingdom and United States federal legislations have specialised infoboxes of their own.", "format": "\n", "params": { "short_title": { "aliases": [ "name" ],			"label": "Short title", "description": "Short title of the legislation. If a bill, enter the bill's current or most recent short title.", "type": "string", "default": "", "suggested": true },		"image": { "label": "Image", "description": "An image representing the institution or office that enacted/is enacting the legislation, such as a coat of arms, a seal, an emblem or a photograph of the institution's building. Omit \"File:\". Overrides any automatically set image.", "type": "wiki-file-name", "default": "|date=}}" },		"legislature": { "label": "Legislature", "type": "content", "description": "Name of the legislature or institution enacting the legislation, wikilinked. Automatically sets image if available.", "suggested": true },		"considered_by": { "label": "Considered by", "description": "The institution (usually a debate chamber) that is considering/considered the bill or proposed/failed legislation. If the bill was passed or enacted by this institution, use 'enacted_by' instead. Wikilink where possible.", "type": "content" },		"enacted_by": { "label": "Enacted by", "description": "The institution (usually a debate chamber) that enacted the legislation. For bicameral legislatures, this is the first chamber the bill was introduced in. If the legislation is still being debated by or failed to be enacted by this chamber, use 'considered_by' instead. Wikilink where possible.", "type": "content", "suggested": true },		"date_enacted": { "label": "Date enacted", "description": "Date when the legislation was enacted by the institution specified in 'enacted_by'. Use 'date_passed' instead if appropriate in jurisdiction, but not both.", "type": "date", "suggested": true },		"imagesize": { "aliases": [ "image_size" ],			"label": "Image size", "description": "Size of the image automatically set or specified in the image parameter.", "type": "string" },		"imagealt": { "label": "Image alternative text", "description": "Description of the specified image when the image cannot be rendered, or for screen readers. Strongly recommended if an image is specified.", "type": "string" },		"caption": { "label": "Image caption", "description": "Caption for the image. This explains the image or its purpose in the current context and therefore is not necessarily the same as the alt text.", "type": "content" },		"long_title": { "label": "Long title", "description": "The long \"official\" title of the legislation or bill, in jurisdictions that use them.", "type": "string", "suggested": true },		"citation": { "label": "Citation", "description": "The citation of the legislation or bill. Use a template from 'Category:Law citation templates' or manually create an external link to the legislation if available online. Replace square brackets in the citation text with &#91; and &#93;", "type": "content", "suggested": true },		"territorial_extent": { "label": "Territorial extent", "description": "The territorial area(s) to which the legislation extends or applies. Wikilink where possible.", "type": "content", "suggested": true },		"date_passed": { "label": "Date passed", "description": "Date when the legislation was passed by the institution specified in 'enacted_by'. Use 'date_enacted' instead if appropriate in jurisdiction, but not both.", "type": "date" },		"considered_by2": { "label": "Considered by (second chamber)", "description": "The second chamber that is considering/considered the bill or proposed/failed legislation. For bicameral legislatures only. If the bill was passed or enacted by this chamber, use 'enacted_by2' instead. Wikilink where possible.", "type": "content" },		"enacted_by2": { "label": "Enacted by (second chamber)", "description": "The second chamber that enacted the legislation. For bicameral legislatures only. If the legislation is still being debated by or failed to be enacted by this chamber, use 'considered_by2' instead. Wikilink where possible.", "type": "content" },		"date_passed2": { "label": "Date passed (second chamber)", "description": "Date when the legislation was passed by the institution specified in 'enacted_by2'. For bicameral legislatures only. Use 'date_enacted2' instead if appropriate in jurisdiction, but not both.", "type": "date" },		"date_enacted2": { "label": "Date enacted (second chamber)", "description": "Date when the legislation was enacted by the chamber specified in 'enacted_by2'. For bicameral legislatures only. Use 'date_passed2' instead if appropriate in jurisdiction, but not both.", "type": "date" },		"date_assented": { "label": "Date assented to", "description": "Date when a head of state or their representative gave formal assent to the legislation. Use 'royal_assent' or 'date_signed' instead if appropriate in jurisdiction, but not two or all three simultaneously.", "type": "date", "suggested": true },		"royal_assent": { "label": "Date of royal assent", "description": "Date when a monarch or their representative gave royal assent to the legislation. Use 'date_assented' or 'date_signed' instead if appropriate in jurisdiction, but not two or all three simultaneously.", "type": "date" },		"date_signed": { "label": "Date signed", "description": "Date when a head of state or their representative signed the legislation into law. Use 'date_assented' or 'royal_assent' instead if appropriate in jurisdiction, but not two or all three simultaneously.", "type": "date" },		"signed_by": { "label": "Signed by", "description": "Person who signed the legislation into law. Only use if 'date_signed' is used. Wikilink if possible.", "type": "content" },		"date_commenced": { "aliases": [ "commencement" ],			"description": "Date when the legislation came into force. This may be different from the date of assent or signature. Use 'date_effective' instead if appropriate in jurisdiction, but not both.", "type": "date", "label": "Date commenced", "suggested": true },		"date_effective": { "label": "Date effective", "description": "Date when the legislation became effective as law. This may be different from the date of assent or signature. Use 'date_commenced' instead if appropriate in jurisdiction, but not both.", "type": "date" },		"date_of_expiry": { "label": "Date of expiry", "description": "Date when the legislation automatically ceases to have effect (usually, but not always, when a sunset provision is included).", "type": "date" },		"date_repealed": { "label": "Date repealed", "description": "Date when the legislation is repealed. Note that legislation may be repealed before or after it had expired, so this parameter is not necessarily identical to 'date_of_expiry'.", "type": "date" },		"administered_by": { "label": "Administered by", "description": "The institution administering the legislation. Not necessary for most legislation. Wikilink if possible.", "type": "content" },		"bill": { "label": "Bill name", "description": "Name of the bill or proposed law when the legislation was still being considered by the institution specified in 'enacted_by' or 'considered_by'. Omit if this is still a bill in this institution and the name is the same as the current 'short_title'.", "type": "string", "suggested": true },		"bill_date": { "label": "Date bill published", "description": "Date when the bill was published to the institution specified in 'enacted_by' or 'considered_by'.", "type": "date", "suggested": true },		"1st_reading": { "label": "First reading", "description": "Date when the bill was read a first time in the chamber specified in 'enacted_by' or 'considered_by'. If in the unlikely circumstance the bill was first read over multiple days, specify a date range.", "type": "date", "suggested": true },		"2nd_reading": { "label": "Second reading", "description": "Date(s) when the bill was read a second time in the chamber specified in 'enacted_by' or 'considered_by'. If read over multiple days, specify a date range.", "type": "date", "suggested": true },		"3rd_reading": { "label": "Third reading", "description": "Date when the bill was read a third time in the chamber specified in 'enacted_by' or 'considered_by'. If in the unlikely circumstance the bill was read at this stage over multiple days, specify a date range.", "type": "date", "suggested": true },		"bill_citation": { "label": "Bill citation", "description": "The citation of the bill for this legislation in the institution specified in 'enacted_by' or 'considered_by'. Omit if this is still a bill in this institution and the citation is the same as the current 'citation'. Create an external link to the bill if available online. Replace square brackets in the citation text with &#91; and &#93;", "suggested": true, "type": "content" },		"introduced_by": { "label": "Introduced by", "description": "The member of the legislature that introduced the bill into the chamber. Wikilink where possible.", "type": "content", "suggested": true },		"conf_committee_passed": { "label": "Date conference committee bill passed", "description": "Date when the version of the bill adopted by the conference committee is passed by the chamber specified in 'enacted_by' or 'considered_by', in jurisdictions that do this.", "type": "date" },		"committee_report": { "label": "Committee report name", "description": "The name of a report issued by a committee in the chamber specified in 'enacted_by' or 'considered_by' about the bill. Create an external link to the report if available online.", "type": "content" },		"bill2": { "label": "Bill name (second chamber)", "type": "string", "description": "Name of the bill or proposed law when the legislation was still being considered by the chamber specified in 'enacted_by2' or 'considered_by2'. For bicameral legislatures only." },		"bill_citation2": { "label": "Bill citation (second chamber)", "type": "content", "description": "The citation of the bill for this legislation in the second chamber. For bicameral legislatures only. Create an external link to the bill if available online. Replace square brackets in the citation text with &#91; and &#93;" },		"bill_date2": { "label": "Date bill published (second chamber)", "type": "date", "description": "Date when the bill was published to the second chamber. For bicameral legislatures only." },		"introduced_by2": { "label": "Introduced by (second chamber)", "type": "content", "description": "The member of the legislature that introduced the bill into the second chamber. For bicameral legislatures only. Wikilink where possible." },		"1st_reading2": { "label": "First reading (second chamber)", "type": "date", "description": "Date when the bill was read a first time in the second chamber. For bicameral legislatures only. If in the unlikely circumstance the bill was first read over multiple days, specify a date range." },		"2nd_reading2": { "label": "Second reading (second chamber)", "type": "date", "description": "Date(s) when the bill was read a second time in the second chamber. For bicameral legislatures only. If read over multiple days, specify a date range." },		"3rd_reading2": { "label": "Third reading (second chamber)", "type": "date", "description": "Date when the bill was read a third time in the second chamber. For bicameral legislatures only. If in the unlikely circumstance the bill was read at this stage over multiple days, specify a date range." },		"conf_committee_passed2": { "label": "Date conference committee bill passed (second chamber)", "type": "date", "description": "Date when the version of the bill adopted by the conference committee is passed by the second chamber, in jurisdictions that do this. For bicameral legislatures only." },		"committee_report2": { "label": "Committee report name (second chamber)", "type": "content", "description": "The name of a report issued by a committee in the second chamber about the bill. For bicameral legislatures only. Create an external link to the report if available online." },		"date_conf_committee": { "label": "Date conference committee adopted bill", "type": "date", "description": "Date when the conference committee adopted their version of the bill, in jurisdictions that do this." },		"white_paper": { "label": "White paper", "type": "content", "description": "The name of a white paper relating to the legislation. Create an external link to the white paper if available online." },		"amends": { "label": "Amends", "type": "content", "description": "List of citations of other notable legislation that this legislation amends. Wikilink or external link where possible." },		"repeals": { "label": "Repeals", "type": "content", "description": "List of citations of other notable legislation that this legislation repeals. Wikilink or external link where possible." },		"amendments": { "deprecated": "Deprecated due to ambiguity. Use amends or amended_by as appropriate.", "label": "Amended by", "type": "content", "description": "Same as 'amended_by', but this parameter is deprecated." },		"amended_by": { "label": "Amended by", "type": "content", "description": "List of citations of other notable legislation that amends this legislation. Wikilink or external link where possible." },		"repealed_by": { "label": "Repealed by", "type": "content", "description": "Citation of the legislation that repealed this legislation. Wikilink or external link if possible." },		"related_legislation": { "aliases": [ "related" ],			"label": "Related legislation", "type": "content", "description": "Names and citations of any other related legislation. Wikilink name and external link citation where possible." },		"summary": { "label": "Summary", "type": "content", "description": "A very brief summary of the subjects that the legislation deals with.", "suggested": true },		"keywords": { "label": "Keywords", "type": "content", "description": "A comma-separated list of keywords that describe the legal issues dealt with by the legislation. List keywords alphabetically and wikilink them wherever possible.", "suggested": true },		"status": { "type": "string", "label": "Status", "description": "The status of the legislation or bill. Select from the following: pending/not passed/withdrawn/blocked/not yet in force/not fully in force/current/in force/amended/expired/spent/repealed/struck down/halted/void/void ab initio. Do not capitalise. Other values will generate an 'unknown' status.", "required": true },		"image_upright": { "aliases": [ "upright" ],			"label": "Image upright factor", "description": "Scale factor for the image specified in 'image', particularly to scale tall, narrow images correctly. See 'Help:Pictures#Upright_images' for more information.", "type": "number", "default": "1" }	},	"paramOrder": [ "short_title", "legislature", "image", "imagesize", "image_upright", "imagealt", "caption", "long_title", "citation", "territorial_extent", "considered_by", "enacted_by", "date_enacted", "date_passed", "considered_by2", "enacted_by2", "date_enacted2", "date_passed2", "date_assented", "royal_assent", "date_signed", "signed_by", "date_commenced", "date_effective", "date_of_expiry", "date_repealed", "administered_by", "bill", "bill_citation", "bill_date", "introduced_by", "1st_reading", "2nd_reading", "3rd_reading", "conf_committee_passed", "committee_report", "bill2", "bill_citation2", "bill_date2", "introduced_by2", "1st_reading2", "2nd_reading2", "3rd_reading2", "conf_committee_passed2", "committee_report2", "date_conf_committee", "white_paper", "amends", "repeals", "amended_by", "amendments", "repealed_by", "related_legislation", "summary", "keywords", "status" ] }