Templat:Singapore legislation/index

Daripada Wikipedia, ensiklopedia bebas.
Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

Penggunaan[sunting sumber]

This template is not intended to be used alone, but only in conjunction with {{Singapore legislation}}. It is a lookup table containing the uniform resource locators (URLs) or website addresses of statutes in the Revised Edition of the Statutes of Singapore, and certain key statutes that have not yet been assigned chapter numbers, that appear in Singapore Statutes Online.

As of 24 March 2012, not every statute in the Singapore Statutes Online was in this template. To add statutes to the template, follow these instructions:

  • Statutes with chapter numbers.
    1. Look up the statute on Singapore Statutes Online.
    2. Right-click on the "Permalink" hyperlink near the top right corner of the web page, and select "Copy link location" to obtain the URL of the web page.
    3. Edit this template by adding a line to it like this: "|7A = 7f838e86-ed5e-4e6c-934a-e91152412edc", where "7A" is the chapter number of the statute, while the string after the equal sign is the portion of the URL you have copied that is in between "http://statutes.agc.gov.sg/aol/search/display/view.w3p;page=0;query=DocId%3A" and "%20Depth%3A0%20Status%3Ainforce;rec=0". Please add the new line to the template following the existing numerical order.
  • Statutes without chapter numbers.
    1. Some statutes appearing in Singapore Statutes Online have not been assigned chapter numbers yet, such as the Criminal Procedure Code 2010 (No. 15 of 2010). To add such statutes to the template, carry out steps 1 and 2 above, then the ones below.
    2. Scroll to the end of the template until you see the line "|new =".
    3. Add the following lines to the template:
   |2010 = {{#switch:{{{no}}}
       |15 = 3b4efefc-6d61-43ac-8b1c-8ccd8b86a972
In the above example, "15" is the number of the statute, "2010" is the year in which it was enacted, and the string after "15 =" is the portion of the URL described in step 3 in the section "Statutes with chapter numbers". When adding the new line to the template, please arrange it according first to the year, and then according to the statute number. If the year of the statute already exists, it is unnecessary to add it again – just add the line with the statute number.

If you need help, leave a message at "Template talk:Singapore legislation".