வார்ப்புரு:Singapore legislation
{{#if:{{{title|}}}
   |{{#if:{{{titlelink|}}}
       |[[{{{titlelink}}}|{{#switch:{{{title}}}
          |Independence of Singapore Agreement = {{{title}}} 1965
          |Republic of Singapore Independence Act = {{{title}}} 1965
          |Territorial Waters Jurisdiction Act = {{{title}}} 1878
          |Marine Conventions Act = {{{title}}} 1911
          |Straits Settlements and Johore Territorial Waters (Agreement) Act = {{{title}}} 1928
          |#default = {{{title}}}{{#ifeq:{{{sltype|}}} | S | &amp;#32;{{{year}}} }} {{#if:{{{1|{{{cap|}}} }}}{{{sltype|}}}
             |{{#ifeq:{{{1|{{{cap|}}} }}} | new | &amp;#32;{{{year}}} }}
             |{{#if:{{{year|}}} | &amp;#32;{{{year}}} }}
           }}
        }}]]&amp;#32;(
       |{{#switch:{{ucfirst:{{{title}}} }}
          |Constitution = [[Constitution of Singapore|{{#ifeq:{{lc:{{{abbr|}}}}}|on|Singapore Constitution|Constitution of the Republic of Singapore}}]]
          |Independence of Singapore Agreement = [[Independence of Singapore Agreement 1965]]
          |Republic of Singapore Independence Act = {{{title}}} 1965
          |Territorial Waters Jurisdiction Act = {{{title}}} 1878
          |Marine Conventions Act = {{{title}}} 1911
          |Straits Settlements and Johore Territorial Waters (Agreement) Act = {{{title}}} 1928
          |#default = {{{title}}}{{#ifeq:{{{sltype|}}} | S | &amp;#32;{{{year}}} }} {{#if:{{{1|{{{cap|}}} }}}{{{sltype|}}}
             |{{#ifeq:{{{1|{{{cap|}}} }}} | new | &amp;#32;{{{year}}} }}
             |{{#if:{{{year|}}} | &amp;#32;{{{year}}} }}
           }}
        }}&amp;#32;(
    }}
 }}{{#if:{{{sltype|}}}
   |{{#if:{{{archiveurl|}}} | [{{{archiveurl}}} | {{#if:{{{url|}}} | [{{{url}}} }} }} {{#switch:{{{sltype}}}
      |GN = {{#ifeq:{{lc:{{{abbr|}}} }} | off | Gazette Notification | G.N.}} No.&amp;nbsp;{{{no}}}/{{{year}}}
      |S  = S&amp;nbsp;{{{no}}}/{{{year}}}
      |N
      |O
      |R
      |Rg = {{#if:{{{1|{{{cap|}}} }}}|Cap.&amp;nbsp;{{{1|{{{cap}}}}}},&amp;#32;}}{{{sltype}}}&amp;nbsp;{{{no}}}, {{{2|{{{ed|{{{year}}}}}}}}} Rev. Ed.
    }}{{#if:{{{url|}}} | ] }}
   |{{#if:{{{no|}}}
      |{{#if:{{{url|}}}
         |[{{#if:{{{archiveurl|}}} | {{{archiverurl}}} | {{{url}}} }} No.&amp;nbsp;{{{no}}} of {{{year}}}]
         |{{#ifeq:{{lc:{{{1|{{{cap}}} }}} }} | new
            | [{{Singapore legislation/index|cap={{{1|{{{cap}}} }}}|no={{{no}}}|year={{{year}}} }} No.&amp;nbsp;{{{no}}} of {{{year}}}]
            |No.&amp;nbsp;{{{no}}} of {{{year}}}
          }}
       }}
      |{{#if:{{{url|}}}
         |[{{#if:{{{archiveurl|}}} | {{{archiverurl}}} | {{{url}}} }} Cap.&amp;nbsp;{{{1|{{{cap}}} }}}, {{{2|{{{ed}}}}}}&amp;nbsp;Rev. Ed.]
         |{{#ifeq:{{lc:{{{lk}}} }} | off
            |{{#ifeq:{{{title|}}} | Constitution | {{{rep}}} Reprint | Cap.&amp;nbsp;{{{1|{{{cap}}} }}}, {{{2|{{{ed}}}}}}&amp;nbsp;Rev. Ed.}}
            |[{{Singapore legislation/index | cap = {{#switch:{{ucfirst:{{{title|}}} }}
                |Constitution = CONST
                |Independence of Singapore Agreement = INDEP
                |Republic of Singapore Independence Act = RSI
                |Territorial Waters Jurisdiction Act = IA1
                |Straits Settlements and Johore Territorial Waters (Agreement) Act = IA2
                |Marine Conventions Act = IA3
                |#default = {{{1|{{{cap}}} }}}
                }}
              }} {{#switch:{{ucfirst:{{{title|}}} }}
                   |Constitution = {{#if:{{{2|{{{ed|}}} }}} | {{{2|{{{ed}}}}}} Rev. Ed.,&amp;#32;}}{{{rep}}} Reprint
                   |Independence of Singapore Agreement = 1985 Rev. Ed.
                   |Republic of Singapore Independence Act = No.&amp;nbsp;9 of 1965
                   |Territorial Waters Jurisdiction Act = 41 &amp; 42 Vict., c.&amp;nbsp;73
                   |Straits Settlements and Johore Territorial Waters (Agreement) Act = 18 &amp; 19 Geo. V, c.&amp;nbsp;23
                   |Marine Conventions Act = 1 &amp; 2 Geo. V, c.&amp;nbsp;57
                   |#default = Cap.&amp;nbsp;{{{1|{{{cap}}} }}}
                 }}{{#if:{{{2|{{{ed|}}} }}}
                     |{{#ifeq:{{{title}}} | Independence of Singapore Agreement
                        |&lt;!--Display nothing--&gt;
                        |{{#ifeq:{{{title}}} | Constitution | | ,&amp;#32;{{{2|{{{ed}}}}}}&amp;nbsp;Rev. Ed.}}
                      }}
                   }}]
          }}
       }}
    }}