Шаблон:Infobox UK legislation
Usage
Full syntax
This infobox takes a number of parameters:
{{Infobox UK 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 = |eu_directives = |amendments = |related_legislation = |repealing_legislation= |status = |original_text = |legislation_history = |use_new_UK-LEG = yes |UK-LEG_title = |revised_text = |theyworkforyou = |millbankhansard = }}
Acts of Parliament
{{Infobox UK 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 = |use_new_UK-LEG = yes |UK-LEG_title = |revised_text = |theyworkforyou = |millbankhansard = }}
Statutory Instruments
{{Infobox UK 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 = |eu_directives = |amendments = |related_legislation = |repealing_legislation= |status = |original_text = |legislation_history = |use_new_UK-LEG = yes |UK-LEG_title = |revised_text = |theyworkforyou = |millbankhansard = }}
Microformat
- Classes used
The HTML classes this microformat uses include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
nor collapse nested elements which use them.
TemplateData
Infobox UK legislation
An infobox for UK statute legislation.
Параметр | Тавзеҳот | Type | Status | |
---|---|---|---|---|
Short title | short_title | The short title of the legislation, displayed at the top of the infobox. This will usually be the same as the article title.
| String | suggested |
Type | type | The type of legislation, whether an Act or Statutory Instrument. Displays as a subheading at the top of the infobox.
| String | optional |
parliament | parliament | The name of the parliament which made the legislation. This will be linked. This parameter will also affect which coat of arms is displayed. Valid values:
| Page name | suggested |
Long title | long_title | The long title of the legislation. Some are extremely long and can clutter up the infobox. | String | optional |
year | year | The (calendar) year of the legislation — along with "parliament", this parameter affects the coat of arms to be displayed. | Number | suggested |
Statute book chapter | citation | 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]]. | String | optional |
Introduced by | introduced_by | 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. | Content | optional |
Territorial extent | territorial_extent | The part(s) of the United Kingdom to which the act extends. | Page name | optional |
Replaces | replaces | Earlier legislation that is replaced by this piece of legislation. | Date | optional |
Amends | amends | Earlier legislation that is amended by this piece of legislation. | Date | optional |
Date made | si_made_date | The date a Statutory Instrument was made. | Date | optional |
Date laid before Parliament | si_laid_date | The date a Statutory Instrument was laid before Parliament. | Date | optional |
Royal Assent | royal_assent | The date the legislation received Royal Assent (only applicable in Commonwealth countries, other users may wish to copy and modify the template). | Date | optional |
commencement | commencement | 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). | Content | optional |
Repeal date | repeal_date | The date the legislation was repealed. | Content | optional |
amendments | amendments | 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). | Content | optional |
Primary legislation | primary_legislation | The primary legislation secondary legislation is made under.
| Content | optional |
EU directives | eu_directives | The EU directives this legislation transposes. | Content | optional |
Repealing legislation | repealing_legislation | Internal links to legislation repealing this statute. | Content | optional |
Related legislation | related_legislation | Internal links to related legislation | Content | optional |
status | status | 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.
| String | optional |
Original text | original_text | External link to the text of the legislation as originally enacted. | String | optional |
Legislation history | legislation_history | External link to information about the passage of the legislation through the legislature. | String | optional |
Revised text link | revised_text | External link to the revised text of the statute, as amended | String | optional |
TWFY URL slug | theyworkforyou | URL slug for TheyWorkForYou link | String | optional |
Millbank Hansard slug | millbankhansard | URL search slug for hansard.millbanksystems.com | String | optional |
Use new UK-LEG? | use_new_UK-LEG | "yes" to use new {{tl|UK-LEG}} template to automatically produce a URI for the legislation.gov.uk service | String | optional |
UK-LEG title | UK-LEG_title | Variable for {{tl|UK-LEG}}
| String | optional |
Collapse? | collapsed | "y" if the infobox should be collapsed by default. | String | optional |