Template talk:Singapore Constitution/Archive 1
From Wikipedia, the free encyclopedia
Template testing history
This template is still under construction and is not ready for use. The following text is a record of the tests carried out in the creation of this template.
- [http://statutes.agc.gov.sg/non_version/cgi-bin/cgi_retrieve.pl?actno=REVED-CONST {{#ifeq:{{{short| }}}|{{short|yes}}|Constitution of the Republic of Singapore|Singapore Constitution}}]
- This correctly returns "Constitution of the Republic of Singapore", or "Singapore Constitution" if the value of parameter "short" is "yes".
- [http://statutes.agc.gov.sg/non_version/cgi-bin/cgi_retrieve.pl?actno=REVED-CONST {{#ifeq:{{{short| }}}|{{short|yes}}|Constitution of the Republic of Singapore|Singapore Constitution}} {{#if:{{{rep| }}}| ({{{rep}}} Reprint)}}]
- However, when the second "#if:" argument is added, only "Singapore Constitution" is displayed, although "(1999 Reprint)" displays correctly. There is also too much space between "Singapore Constitution" and "(1999 Reprint)".
- [http://statutes.agc.gov.sg/non_version/cgi-bin/cgi_retrieve.pl?actno=REVED-CONST {{{1|{{#ifeq:{{{short|}}}|{{short|yes}}|Constitution of the Republic of Singapore|Singapore Constitution}}}}} {{{1|{{#if:{{{rep|}}}| ({{{rep}}} Reprint)}}}}}]
- This correctly returns "(1999 Reprint)" when the "rep" parameter is used, but only "Singapore Constitution" is displayed even when the "short" parameter is omitted and there is a missing space between "Singapore Constitution" and "(1999 Reprint)".
- [http://statutes.agc.gov.sg/non_version/cgi-bin/cgi_retrieve.pl?actno=REVED-CONST {{{1|{{#if:{{{short|}}}|Singapore Constitution|Constitution of the Republic of Singapore}}}}} {{{2|{{#if:{{{rep|}}}|({{{rep}}} Reprint)}}}}}]
- This template seems to be working fine now!
Last updated by Jacklee 19:09, 21 October 2007 (UTC)