Template:Infobox legislation
This template uses Lua: |
Contents
- 1 Usage
- 1.1 Legislation enacted by a legislature (e.g. an Act of Parliament/Congress)
- 1.2 Proposed legislation considered (but failed) or in consideration by a legislature (e.g. a bill)
- 1.3 Legislation enacted or considered without going through a legislature (e.g. a regulation or an order)
- 1.4 All available parameters
- 2 Parameters
- 3 Examples
- 4 Technical information
- 5 TemplateData
Usage
{{{short_title}}} | |
---|---|
[[File:{{{image}}}|{{{imagesize}}}|alt={{{imagealt}}}|upright={{{image_upright}}}]] | |
{{{legislature}}} | |
| |
Citation | {{{citation}}} |
Territorial extent | {{{territorial_extent}}} |
Considered by | {{{considered_by}}} |
Enacted by | {{{enacted_by}}} |
Passed | {{{date_passed}}} |
Enacted | {{{date_enacted}}} |
Considered by | {{{considered_by2}}} |
Enacted by | {{{enacted_by2}}} |
Passed | {{{date_passed2}}} |
Enacted | {{{date_enacted2}}} |
Assented to | {{{date_assented}}} |
Royal assent | {{{royal_assent}}} |
Signed | {{{date_signed}}} |
Signed by | {{{signed_by}}} |
Commenced | {{{date_commenced}}} |
Effective | {{{date_effective}}} |
Date of expiry | {{{date_of_expiry}}} |
Repealed | {{{date_repealed}}} |
Administered by | {{{administered_by}}} |
Legislative history | |
Bill introduced in the {{{enacted_by}}} | {{{bill}}} |
Bill citation | {{{bill_citation}}} |
Bill published on | {{{bill_date}}} |
Introduced by | {{{introduced_by}}} |
First reading | {{{1st_reading}}} |
Second reading | {{{2nd_reading}}} |
Third reading | {{{3rd_reading}}} |
Conference committee bill passed | {{{conf_committee_passed}}} |
Committee report | {{{committee_report}}} |
Bill introduced in the {{{enacted_by2}}} | {{{bill2}}} |
Bill citation | {{{bill_citation2}}} |
Bill published on | {{{bill_date2}}} |
Introduced by | {{{introduced_by2}}} |
First reading | {{{1st_reading2}}} |
Second reading | {{{2nd_reading2}}} |
Third reading | {{{3rd_reading2}}} |
Conference committee bill passed | {{{conf_committee_passed2}}} |
Committee report | {{{committee_report2}}} |
Date passed by conference committee | {{{date_conf_committee}}} |
White paper | {{{white_paper}}} |
Amends | |
{{{amends}}} | |
Repeals | |
{{{repeals}}} | |
Amended by | |
{{{amended_by}}} | |
Repealed by | |
{{{repealed_by}}} | |
Related legislation | |
{{{related_legislation}}} | |
Summary | |
{{{summary}}} | |
Keywords | |
{{{keywords}}} | |
Status: Unknown
|
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.
{{Infobox legislation |short_title = |legislature = <!-- Name of enacting legislature, wikilinked. Autofills image if available. --> |image = |imagesize = |image_upright = |imagealt = |caption = |long_title = |citation = |territorial_extent = |enacted_by = <!-- For bicameral legislatures, this is the chamber the bill was first introduced. --> |date_enacted = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. --> |date_passed = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. --> |enacted_by2 = <!-- For bicameral legislatures only. Use if bill passed the second chamber. --> |date_enacted2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. --> |date_passed2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. --> |date_assented = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |royal_assent = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |date_signed = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |signed_by = <!-- Only use if date_signed is used. --> |date_commenced = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_effective = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_of_expiry = |date_repealed = |administered_by = |bill = <!-- Name of relevant bill debated in the chamber listed in enacted_by or considered_by. Omit if the legislation is still a bill in this chamber and the bill name used in short_title. --> |bill_citation = |bill_date = |introduced_by = <!-- Name of member introducing the bill in the chamber. --> |1st_reading = |2nd_reading = <!-- Specify date range for multi-day readings. --> |3rd_reading = |conf_committee_passed = |committee_report = |bill2 = <!-- For bicameral legislatures only. Name of relevant bill debated in the chamber listed in enacted_by2 or considered_by2. --> |bill_citation2 = <!-- For bicameral legislatures only. --> |bill_date2 = <!-- For bicameral legislatures only. --> |introduced_by2 = <!-- For bicameral legislatures only. Name of member introducing the bill in the chamber. --> |1st_reading2 = <!-- For bicameral legislatures only. --> |2nd_reading2 = <!-- For bicameral legislatures only. Specify date range for multi-day readings. --> |3rd_reading2 = <!-- For bicameral legislatures only. --> |conf_committee_passed2 = <!-- For bicameral legislatures only. --> |committee_report2 = <!-- For bicameral legislatures only. --> |date_conf_committee = |white_paper = |amends = <!-- Citations of other notable legislation that this legislation amends; wikilink or external link where possible. --> |repeals = <!-- Citations of other notable legislation that this legislation repeals; wikilink or external link where possible. --> |amended_by = <!-- Citations of other notable legislation that amends this legislation; wikilink or external link where possible. --> |repealed_by = <!-- Citation of the legislation that repealed this legislation; wikilink or external link if possible. --> |related_legislation = <!-- Names and citations of any other related legislation; wikilink name and external link citation where possible. --> |summary = |keywords = |status = <!-- not yet in force/not fully in force/current/in force/amended/expired/spent/repealed/struck down/halted --> }}
Proposed legislation considered (but failed) or in consideration by a legislature (e.g. a bill)
{{Infobox legislation |short_title = <!-- Name of bill. --> |legislature = <!-- Name of considering legislature, wikilinked. Autofills image if available. --> |image = |imagesize = |image_upright = |imagealt = |caption = |long_title = |citation = <!-- Citation of bill. --> |territorial_extent = |considered_by = <!-- Use if bill did not pass or hasn't been passed by the chamber (for bicameral legislatures, this is the chamber the bill was first introduced). --> |enacted_by = <!-- Use if bill passed the chamber but did not receive or have not yet received assent, or, for bicameral legislatures, did not pass or have not yet passed the second chamber. --> |date_enacted = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |date_passed = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |considered_by2 = <!-- For bicameral legislatures only. Use if bill did not pass or hasn't been passed by the second chamber. --> |enacted_by2 = <!-- For bicameral legislatures only. Use if bill passed the second chamber but did not receive or have not yet received assent. --> |date_enacted2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. Only use if enacted_by2 is used. --> |date_passed2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. Only use if enacted_by2 is used. --> |bill = <!-- Name of relevant bill debated in the chamber listed in enacted_by or considered_by. Omit if the legislation is still a bill in this chamber and the bill name used in short_title. --> |bill_citation = |bill_date = |introduced_by = <!-- Name of member introducing the bill in the chamber. --> |1st_reading = |2nd_reading = <!-- Specify date range for multi-day readings. --> |3rd_reading = |conf_committee_passed = |committee_report = |bill2 = <!-- For bicameral legislatures only. Name of relevant bill debated in the chamber listed in enacted_by2 or considered_by2. --> |bill_citation2 = <!-- For bicameral legislatures only. --> |bill_date2 = <!-- For bicameral legislatures only. --> |introduced_by2 = <!-- For bicameral legislatures only. Name of member introducing the bill in the chamber. --> |1st_reading2 = <!-- For bicameral legislatures only. --> |2nd_reading2 = <!-- For bicameral legislatures only. Specify date range for multi-day readings. --> |3rd_reading2 = <!-- For bicameral legislatures only. --> |conf_committee_passed2 = <!-- For bicameral legislatures only. --> |committee_report2 = <!-- For bicameral legislatures only. --> |date_conf_committee = |white_paper = |amends = <!-- Citations of other notable legislation that this legislation amends; wikilink or external link where possible. --> |repeals = <!-- Citations of other notable legislation that this legislation repeals; wikilink or external link where possible. --> |related_legislation = <!-- Names and citations of any other related legislation; wikilink name and external link citation where possible. --> |summary = |keywords = |status = <!-- pending/not passed/withdrawn/blocked --> }}
Legislation enacted or considered without going through a legislature (e.g. a regulation or an order)
{{Infobox legislation |short_title = |legislature = <!-- Name of considering or enacting body (e.g. Government of Australia), wikilinked. --> |image = |imagesize = |image_upright = |imagealt = |caption = |long_title = |citation = |territorial_extent = |considered_by = <!-- Name of considering authority. Use if legislation wasn't enacted for some reason, or if it is still being considered. --> |enacted_by = <!-- Name of enacting authority. Use if legislation was enacted. --> |date_enacted = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |date_passed = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |date_assented = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |royal_assent = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |date_signed = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |signed_by = <!-- Only use if date_signed is used. --> |date_commenced = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_effective = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_of_expiry = |date_repealed = |administered_by = |white_paper = |amends = <!-- Citations of other notable legislation that this legislation amends; wikilink or external link where possible. --> |repeals = <!-- Citations of other notable legislation that this legislation repeals; wikilink or external link where possible. --> |amended_by = <!-- Citations of other notable legislation that amends this legislation; wikilink or external link where possible. --> |repealed_by = <!-- Citation of the legislation that repealed this legislation; wikilink or external link if possible. --> |related_legislation = <!-- Names and citations of any other related legislation; wikilink name and external link citation where possible. --> |summary = |keywords = |status = <!-- pending/withdrawn/blocked/not yet in force/not fully in force/current/in force/amended/expired/spent/repealed/struck down/halted --> }}
All available parameters
{{Infobox legislation |short_title = |legislature = <!-- Name of enacting legislature, wikilinked. Autofills image if available. --> |image = |imagesize = |image_upright = |imagealt = |caption = |long_title = |citation = |territorial_extent = |considered_by = <!-- Use if bill did not pass or hasn't been passed by the chamber (for bicameral legislatures, this is the chamber the bill was first introduced). --> |enacted_by = <!-- Use if bill passed the chamber (for bicameral legislatures, this is the chamber the bill was first introduced). --> |date_enacted = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |date_passed = <!-- Pick one of date_enacted or date_passed as appropriate in jurisdiction. Only use if enacted_by is used. --> |considered_by2 = <!-- For bicameral legislatures only. Use if bill did not pass or hasn't been passed by the second chamber. --> |enacted_by2 = <!-- For bicameral legislatures only. Use if bill passed the second chamber. --> |date_enacted2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. Only use if enacted_by2 is used. --> |date_passed2 = <!-- For bicameral legislatures only. Pick one of date_enacted2 or date_passed2 as appropriate in jurisdiction. Only use if enacted_by2 is used. --> |date_assented = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |royal_assent = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |date_signed = <!-- Pick none or one of date_assented, royal_assent or date_signed as appropriate in jurisdiction. --> |signed_by = <!-- Only use if date_signed is used. --> |date_commenced = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_effective = <!-- Pick one of date_commenced or date_effective as appropriate in jurisdiction. --> |date_of_expiry = |date_repealed = |administered_by = |bill = <!-- Name of relevant bill debated in the chamber listed in enacted_by or considered_by. Omit if the legislation is still a bill in this chamber and the bill name used in short_title. --> |bill_citation = |bill_date = |introduced_by = <!-- Name of member introducing the bill in the chamber. --> |1st_reading = |2nd_reading = |3rd_reading = |conf_committee_passed = |committee_report = |bill2 = <!-- For bicameral legislatures only. Name of relevant bill debated in the chamber listed in enacted_by2 or considered_by2. --> |bill_citation2 = <!-- For bicameral legislatures only. --> |bill_date2 = <!-- For bicameral legislatures only. --> |introduced_by2 = <!-- For bicameral legislatures only. Name of member introducing the bill in the chamber. --> |1st_reading2 = <!-- For bicameral legislatures only. --> |2nd_reading2 = <!-- For bicameral legislatures only. --> |3rd_reading2 = <!-- For bicameral legislatures only. --> |conf_committee_passed2 = <!-- For bicameral legislatures only. --> |committee_report2 = <!-- For bicameral legislatures only. --> |date_conf_committee = |white_paper = |amends = <!-- Citations of other notable legislation that this legislation amends; wikilink or external link where possible. --> |repeals = <!-- Citations of other notable legislation that this legislation repeals; wikilink or external link where possible. --> |amended_by = <!-- Citations of other notable legislation that amends this legislation; wikilink or external link where possible. --> |repealed_by = <!-- Citation of the legislation that repealed this legislation; wikilink or external link if possible. --> |related_legislation = <!-- Names and citations of any other related legislation; wikilink name and external link citation where possible. --> |summary = |keywords = |status = <!-- pending/not passed/withdrawn/blocked/not yet in force/not fully in force/current/in force/amended/expired/spent/repealed/struck down/halted --> }}
Parameters
This infobox takes a number of parameters, which are all optional:
Parameter | Description | ||
---|---|---|---|
Basic information | |||
short_title | The short title of the legislation or bill, which should preferably be the same as the article title. If the parameter is left blank or omitted, the article name is used. | ||
legislature | The name of the legislature that enacted the legislation. You only need to use this parameter if the legislature of the jurisdiction in question is bicameral, and you wish to state its name rather than just the names of the upper house and lower house, which can be specified using |enacted_by= and |enacted_by2= .
| ||
image | An image to represent the person or institution that enacted the legislation, such as a coat of arms, a seal or a photograph of a building. Type the name of the image without the "File:" prefix and do not wikilink it. If you omit this parameter, the template automatically displays an image according to the scheme at {{Infobox legislation/images}}. | ||
imagesize | The width of the image in pixels (px), particularly if it is less than 180 px. Type the number without the "px" suffix ("150", not "150px"). If this parameter is left blank or omitted, the image size defaults to 180 px. | ||
image_upright | Scale factor for the image, particularly to scale tall, narrow images correctly. See Help:Pictures#Upright_images for more information. | ||
imagealt | Alt text for the image. For more information, see "Wikipedia:Alternative text for images". | ||
caption | A caption for the image. Terms in the caption can be wikilinked, if desired. | ||
long_title | The long title of the legislation. | ||
citation | The citation of the legislation. If the legislation is available online, use a citation template where available to generate an external link automatically, or else create a link manually. If the citation uses square brackets, replace them with [ and ] when putting them inside an external link. | ||
territorial_extent | The territorial area(s) to which the legislation extends or applies. If possible, provide a wikilink. | ||
considered_by enacted_by |
The name of the person or institution that considered or enacted the legislation. |considered_by= is used for proposed or failed legislation (e.g. bills) in which the institution did not or has not enacted the legislation, and |enacted_by= for successful ones. Wikilink the name to a Wikipedia article about the person or institution, if there is one. In a bicameral jurisdiction, use this parameter to specify the legislative chamber that initiated the legislation.
| ||
date_enacted date_passed |
The date the legislation was enacted or passed. Select either |date_enacted= or |date_passed= depending on whether the term enacted or passed is customarily used in the jurisdiction. In line with "Wikipedia:Manual of Style (dates and numbers)#Linking and autoformatting of dates", do not wikilink dates.
| ||
considered_by2 enacted_by2 date_enacted2 date_passed2 |
In a bicameral legislature, use these parameters to specify the name of the legislative chamber that considered the legislation after it was initiated by the other chamber, and the date when the second chamber enacted or passed the legislation. | ||
date_assented royal_assent date_signed signed_by |
Use one of the following:
Do not use parameter(s) from two or three of the above categories together. | ||
date_commenced date_effective |
The date when the legislation commenced (came into force), or became effective as law. Use the parameter that corresponds to the term customary in the jurisdiction, not both the parameters. | ||
date_of_expiry | Date when the legislation automatically ceases to have effect (usually, but not always, when a sunset provision is included). | ||
date_repealed | 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= .
| ||
administered_by | The institution administering the legislation. Not necessary for most legislation. Wikilink if possible. | ||
Legislation history | |||
bill | The name of the bill or proposed law when the legislation was still being considered by the institution specified in |enacted_by= or |considered_by= . Wikilink the name to an article about the bill, if there is one.
In a bicameral jurisdiction, use this parameter to state the name of the bill that was introduced by the legislative chamber that initiated the legislation. | ||
bill_citation | The citation of the bill. If the bill is available online, create an external link to it. If the citation uses square brackets, replace them with [ and ] when putting them inside an external link. | ||
bill_date | The date when the bill was published. | ||
introduced_by | The name of the legislator who introduced the bill. | ||
1st_reading 2nd_reading 3rd_reading |
The dates of the first, second and third readings of the bill in the legislature. If the legislative debates are available online, create external links to them. | ||
conf_committee_passed | In some jurisdictions, the date when the institution passed the version of the bill adopted by a conference committee. | ||
committee_report | The name of a report issued by a legislative committee about the bill that was eventually enacted. If the report is available online, create an external link to it. | ||
bill2 bill_citation2 bill_date2 introduced_by2 1st_reading2 2nd_reading2 3rd_reading2 conf_committee_passed2 committee_report2 |
In a bicameral legislature, use these parameters to specify information about the bill that was considered in one chamber after it was passed by the other chamber. | ||
date_conf_committee | In some jurisdictions, the date when a conference committee passed a bill. This parameter should be used together with |conf_committee_passed= and |conf_committee_passed2= – use these parameters to indicate the dates when the upper and lower legislative chambers passed the version of the bill adopted by the conference committee.
| ||
white_paper | The name of a white paper relating to the legislation. If the white paper is available online, create an external link to it. | ||
amends | The citations of any notable legislation that this legislation amends. If available, wikilink the article or external link the texts of the amended legislation. | ||
repeals | The citations of any notable legislation that this legislation repeals. If available, wikilink the article or external link the texts of the repealed legislation. | ||
amended_by | The citations of any notable amendments to this legislation. If available, wikilink the article or external link the texts of the amendments. | ||
repealed_by | The citations of any notable legislation repealing parts or previous versions of this legislation. If available, wikilink the article or external link the texts of the repealing legislation. | ||
related_legislation | The names and citations of any related pieces of legislation. Where possible, link the name of a related piece of legislation to a Wikipedia article about it, and link the citation to an external website containing the text of the related legislation. | ||
summary | A very brief summary of the subjects that the legislation deals with. | ||
keywords | A list of keywords that describe the legal issues dealt with by the legislation. List keywords alphabetically, separate them with commas, and link them to appropriate Wikipedia articles wherever possible; for example, "[[Bailment]], [[common carrier]], [[negligence]], [[strict liability]]". | ||
Status | |||
status | The status of the bill or legislation. The possible values are:
If some value other than the ones above is given to |
Examples
Statute
Criminal Law (Temporary Provisions) Act | |
---|---|
Legislative Assembly of Singapore | |
| |
Citation | Ordinance No. 26 of 1955, now Cap. 67, 2000 Rev. Ed. |
Territorial extent | Whole of Singapore |
Enacted by | Legislative Assembly of Singapore |
Enacted | 22 September 1955 |
Commenced | 21 October 1955 |
Legislative history | |
Bill published on | 31 August 1955 |
Introduced by | Chief Secretary William Allmond Codrington Goode |
First reading | 18 August 1955 |
Second reading | 22 September 1955 |
Third reading | 22 September 1955 |
Status: In force
|
{{Infobox legislation |short_title = Criminal Law (Temporary Provisions) Act |long_title = An Act to make temporary provisions for the maintenance of public order, the control of supplies by sea to Singapore, and the prevention of strikes and lock-outs in essential services |citation = Ordinance No. 26 of 1955, now {{Singapore legislation|cap=67|ed=2000}} |territorial_extent = Whole of [[Singapore]] |enacted_by = [[Legislative Assembly of Singapore]] |date_enacted = 22 September 1955 |date_commenced = 21 October 1955 |bill_date = 31 August 1955 |introduced_by = Chief Secretary [[William Allmond Codrington Goode]] |1st_reading = 18 August 1955 |2nd_reading = 22 September 1955 |3rd_reading = 22 September 1955 |status = in force }}
Bill
Naval Aid Bill | |
---|---|
Parliament of Canada | |
| |
Considered by | Parliament of Canada |
Legislative history | |
Introduced by | Robert Borden |
First reading | December 5, 1912 |
Third reading | May 15, 1913 |
Status: Not passed
|
{{Infobox legislation |short_title = Naval Aid Bill |long_title = An Act to authorize measures for increasing the effective naval forces of the Empire. |considered_by = [[Parliament of Canada]] |introduced_by = [[Robert Borden]] |1st_reading = December 5, 1912 |3rd_reading = May 15, 1913 |status = Not passed }}
Technical information
This section contains technical information to assist editors familiar with templates and parser functions to edit this template. |
The |image=
parameter in the template contains (with slight modifications) the following function:
{{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}} |{{{image}}} |{{Infobox legislation/images |image={{if empty|{{{legislature|}}}|{{{considered_by|}}}|{{{enacted_by|}}}}} |date={{{date_enacted|}}} }} }}|size={{{imagesize|}}}|sizedefault=frameless|upright={{{upright|{{{image_upright|1}}}}}}|alt={{{imagealt|}}}}}
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
|upright=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
TemplateData for Infobox legislation
TemplateData
|
---|
<templatedata> { "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": "Infobox legislation", "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": "" }, "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 [ and ]", "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 [ and ]", "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 [ and ]" }, "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 commitee 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. 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" } }, "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": "block", "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" ] } </templatedata> |