সাঁচ:Infobox legislation

অসমীয়া ৱিকিপিডিয়াৰ পৰা
{{{shorttitle}}}
{{{longtitle}}}
ভাষ্য {{{citation}}}
ভৌগোলিক পৰিসীমা {{{territorialextent}}}
গৃহীত কৰে {{{enactedby}}}
গৃহীত হোৱা তাৰিখ {{{dateenacted}}}
কাৰ্যকৰী হোৱা তাৰিখ {{{dateassented}}}
স্বাক্ষৰ হোৱা তাৰিখ {{{datesigned}}}
আৰম্ভ হয় {{{datecommenced}}}
Legislation history
Bill {{{bill}}}
Bill citation {{{billcitation}}}
Bill published on {{{billdate}}}
Introduced by {{{introducedby}}}
First reading {{{1streading}}}
Second reading {{{2ndreading}}}
Third reading {{{3rdreading}}}
White paper {{{whitepaper}}}
Committee report {{{committeereport}}}
Amendments
{{{amendments}}}
Repeals
{{{repeals}}}
Related legislation
{{{related}}}
Summary
{{{summary}}}
Keywords
{{{keywords}}}
[চাওক] [সম্পাদনা] [ইতিহাস] [কেশ্ব পৰিষ্কাৰ] Documentation icon সাঁচ নথিকৰণ

Usage[সম্পাদনা কৰক]

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

Criminal Law (Temporary Provisions) Act
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
ভাষ্য Ordinance No. 26 of 1955, now সাঁচ:Singapore Statute
ভৌগোলিক পৰিসীমা Whole of Singapore
গৃহীত কৰে Legislative Assembly of Singapore
গৃহীত হোৱা তাৰিখ 22 September 1955
আৰম্ভ হয় 21 October 1955
Legislation 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
{{Infobox legislation
| shorttitle         =  
| image              = 
| imagesize          = 
| imagelink          = 
| imagealt           = 
| caption            = 
| longtitle          = 
| citation           = 
| territorialextent  =
| enactedby          = 
| dateenacted        = 
| dateassented       = 
| datesigned         = 
| datecommenced      = 
| bill               = 
| billcitation       = 
| billdate           = 
| introducedby       = 
| 1streading         = 
| 2ndreading         = 
| 3rdreading         = 
| whitepaper         = 
| committeereport    = 
| amendments         = 
| repeals            = 
| related            = 
| summary            = 
| keywords           = 
}}

Parameters[সম্পাদনা কৰক]

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

Parameter Description
shorttitle The short title of the legislation, which should preferably be the same as the article title. If the parameter is left blank or omitted, the article name is used.
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.
imagelink A hyperlink for the image. This can either be a URL or the name of a Wikipedia article. Do not enclose the URL or article name in square brackets. If no link is specified or the parameter is omitted, the image is linked to its image description page.
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.
longtitle 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.
territorialextent The territorial area to which the legislation extends or applies. If possible provide a wikilink.
enactedby The name of the person or institution that enacted the legislation. Wikilink the name to a Wikipedia article about the person or institution, if there is one. To cause the template to automatically display an image representing the person or institution, such as a coat of arms, a seal or a photograph of a building, enter the name of the person or institution as shown at {{Infobox legislation/images}}.
dateenacted The date the legislation was enacted or passed. In line with "Wikipedia:Manual of Style (dates and numbers)#Linking and autoformatting of dates", do not wikilink dates.
dateassented The date when a head of state or his or her representative gives formal assent to the legislation (for instance, when a constitutional monarch gives Royal Assent to a statute); or, in the case of the United States, when the President or a state governor signs a piece of legislation. Use either |dateassented= or |datesigned=, not both.
datesigned
datecommenced The date when the legislation came into force as law.
bill The name of the bill that was eventually enacted. Wikilink the name to an article about the bill, if there is one.
billcitation 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.
billdate The date when the bill was published.
introducedby The name of the legislator who introduced the bill.
1streading 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.
2ndreading
3rdreading
whitepaper The name of a white paper relating to the legislation. If the white paper is available online, create an external link to it.
committeereport 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.
amendments The citations of any notable amendments to the legislation. If the texts of the amendments are available online, create external links to them.
repeals The citations of any notable legislation repealing parts or previous versions of the legislation. If the texts of the repealing legislation are available online, create external links to them.
related 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]]".

Technical information[সম্পাদনা কৰক]

The |image= parameter in the template contains (with slight modifications) the following function:

{{#if:{{{image|}}}
  | [[File:{{{image}}} | {{#if:{{{imagesize|}}} | {{{imagesize}}}|180}}px
    | link={{#if:{{{imagelink|}}}
             | {{{imagelink}}}
             | File:{{{image}}}
           }}
    | alt={{{imagealt|}}}]]
  | {{#ifeq:{{Infobox Court Case/images|courtimage={{{court|}}} }} | None
      | 
      | [[File:{{Infobox Court Case/images|courtimage={{{court}}}|date={{{dateenacted|}}} }}
        | {{#if:{{{imagesize|}}} | {{{imagesize}}}|180}}px
        | link={{#if:{{{imagelink|}}}
                 | {{{imagelink}}}
                 | File:{{Infobox Court Case/images | courtimage={{{court}}}
                   | date={{{dateenacted|}}} }}
               }}
        | alt={{{imagealt|}}}]]
    }}
}}

The function does the following tasks:

  • If the parameter |image= is used in the template, that image is displayed. If a value is specified for |imagesize=, the image is given that width; otherwise the image width defaults to 180 px.
  • If |image= is not used, a check is done to see if the value of |enactedby= is listed in {{Infobox legislation/images}}. If the result is "None", 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.
  • Again, if a value is specified for |imagesize=, the image is given that width; otherwise the image width defaults to 180px.
  • In either case the image is given a link and alt text specified by |imagelink= and |imagealt=. If |imagelink= is omitted or given no value, the image is linked to its image description page.

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.

See also[সম্পাদনা কৰক]