User:Ninetyone/testtemplate

{{Infobox | Scottish Parliament = | Northern Ireland Assembly = | National Assembly for Wales = | Parliament of Northern Ireland = | Parliament of Scotland = {{#if:{{{year|}}}| {{#switch: {{{year}}} | 1558 =      | 1559 =       | 1560|1561|1562|1563|1564 =       |        {{#ifexpr: {{{year|1600}}} < 1603 |  }} {{#ifexpr: {{{year|1600}}} >= 1603 and {{{year|1600}}} < 1649 | }} {{#ifexpr: {{{year|1600}}} >= 1649 and {{{year|1600}}} < 1660 | }} {{#ifexpr: {{{year|1600}}} >= 1660 and {{{year|1600}}} < 1689 | }} {{#ifexpr: {{{year|1600}}} >= 1689 and {{{year|1600}}} < 1694 | }} {{#ifexpr: {{{year|1600}}} >= 1694 and {{{year|1600}}} < 1702 | }} {{#ifexpr: {{{year|1600}}} >= 1702 | }} }}   |    }} | Parliament of Ireland = {{#if:{{{year|}}} | {{#ifexpr: {{{year|1800}}} < 1542 |      |       }}    |     }} | Parliament of England = {{#if:{{{year|}}}| {{#ifexpr: {{{year|1801}}} < 1154 | }} {{#ifexpr: {{{year|1801}}} >= 1154 and {{{year|1801}}} < 1189 | }} {{#ifexpr: {{{year|1801}}} >= 1189 and {{{year|1801}}} < 1198 | }} {{#ifexpr: {{{year|1801}}} >= 1198 and {{{year|1801}}} < 1340 | }} {{#ifexpr: {{{year|1801}}} >= 1340 and {{{year|1801}}} < 1360 | }} {{#ifexpr: {{{year|1801}}} >= 1360 and {{{year|1801}}} < 1369 | }} {{#ifexpr: {{{year|1801}}} >= 1369 and {{{year|1801}}} < 1395 | }} {{#ifexpr: {{{year|1801}}} >= 1395 and {{{year|1801}}} < 1399 | }} {{#ifexpr: {{{year|1801}}} >= 1399 and {{{year|1801}}} < 1406 | }} {{#ifexpr: {{{year|1801}}} >= 1406 and {{{year|1801}}} < 1422 | }} {{#ifexpr: {{{year|1801}}} >= 1422 and {{{year|1801}}} < 1461 | }} {{#ifexpr: {{{year|1801}}} >= 1461 and {{{year|1801}}} < 1470 | }} {{#ifexpr: {{{year|1801}}} >= 1470 and {{{year|1801}}} < 1471 | }} {{#ifexpr: {{{year|1801}}} >= 1471 and {{{year|1801}}} < 1483 | }} {{#ifexpr: {{{year|1801}}} >= 1483 and {{{year|1801}}} < 1485 | }} {{#ifexpr: {{{year|1801}}} >= 1485 and {{{year|1801}}} < 1509 | }} {{#ifexpr: {{{year|1801}}} >= 1509 and {{{year|1801}}} < 1547 | }} {{#ifexpr: {{{year|1801}}} >= 1547 and {{{year|1801}}} < 1554 | }} {{#ifexpr: {{{year|1801}}} >= 1554 and {{{year|1801}}} < 1558 | }} {{#ifexpr: {{{year|1801}}} >= 1558 and {{{year|1801}}} < 1603 | }} {{#ifexpr: {{{year|1801}}} >= 1603 and {{{year|1801}}} < 1649 | }} {{#ifexpr: {{{year|1801}}} >= 1649 and {{{year|1801}}} < 1660 | }} {{#ifexpr: {{{year|1801}}} >= 1660 and {{{year|1801}}} < 1689 | }} {{#ifexpr: {{{year|1801}}} >= 1689 and {{{year|1801}}} < 1694 | }} {{#ifexpr: {{{year|1801}}} >= 1694 and {{{year|1801}}} < 1702 | }} {{#ifexpr: {{{year|1801}}} >= 1702 | }} |    }} | Parliament of Great Britain= {{#ifexpr: {{{year|1801}}} < 1714 |    |     }} | {{#if:{{{year|}}| {{#ifexpr: {{{year|2000}}} < 1816 | }} {{#ifexpr: {{{year|2000}}} >= 1816 and {{{year|2000}}} < 1837 | }} {{#ifexpr: {{{year|2000}}} >= 1837 and {{{year|2000}}} < 1953 | }} {{#ifexpr: {{{year|2000}}} >= 1953 | }} |    }} }} |  {{{regnal_year|}}} {{#if:{{{regnal_year2|}}}|& {{{regnal_year2}}} }} {{{monarch|}}} | {{{year|}}} }} {{#iferror: {{#expr:{{{chapter|}}}}}|{{{chapter|}}}|c. {{{chapter|}}}}} {{#switch:{{{original_text|}}} |auto    = {{#if:{{{monarch|}}} | |parliament={{{parliament}}}}}}}/{{urlencode:{{{monarch}}}}}/{{urlencode:{{{regnal_year}}}{{#if:{{{regnal_year2|}}}|-{{{regnal_year2}}}}}|WIKI}}/{{urlencode:{{{chapter}}}}}/contents/enacted Text of the {{#if:{{{short_title|}}} | {{{short_title}}} |{{PAGENAME}}}} as originally enacted | |parliament={{{parliament}}}}}}}/{{urlencode:{{{year}}}}}/{{urlencode:{{{chapter}}}}}/contents/enacted Text of the {{#if:{{{short_title|}}} | {{{short_title}}} | {{PAGENAME}}}} as originally enacted }} | [{{{original_text|}}} Text of the {{#if:{{{short_title|}}}|{{{short_title}}}|{{PAGENAME}}}}] as originally enacted }} }}
 * name        = Infobox UK Legislation
 * bodystyle   =
 * bodyclass   = vevent
 * title       =
 * titlestyle  =
 * above       = {{{short_title|}}}
 * aboveclass  = summary
 * abovestyle  =
 * image       = {{#switch: {{{parliament}}}
 * imagestyle  =
 * caption     =
 * captionstyle =
 * headerstyle =
 * labelstyle  =
 * datastyle   =
 * header1 = {{{parliament}}}
 * label2  = Long title:
 * data2   = {{{long_title|}}}
 * class2  = description
 * label3  = Statute book chapter:
 * data3   = {{#ifexpr: {{{year|1900}}} < 1963
 * data3   = {{#ifexpr: {{{year|1900}}} < 1963
 * label4  = Introduced by:
 * data4   = {{{introduced_by|}}}
 * class5  = organiser
 * label5  = Territorial extent:
 * data5   = {{{territorial_extent|}}}
 * header6 = {{#if:{{{royal_assent|}}}{{{commencement|}}}{{{repeal_date|}}} |Dates}}
 * label7  = Date of Royal Assent:
 * data7   = {{{royal_assent|}}}
 * label8  = Commencement:
 * data8   = {{{commencement|}}}
 * label9  = Repeal date:
 * data9   = {{{repeal_date|}}}
 * header10 = {{#if:{{{amendments|}}}{{{related_legislation|}}}{{{repealing_legislation|}}} |Other legislation}}
 * label11 = Amendments:
 * data11  = {{{amendments|}}}
 * header12 =
 * label12 = Related legislation:
 * data12  = {{{related_legislation|}}}
 * header13 =
 * label13 = Repealing legislation:
 * data13  = {{{repealing_legislation|}}}
 * header14 = Status: {{#switch:{{{status}}} | Current=Current legislation | Amended=Substantially amended | Repealed=Repealed | Not_yet_in_force=Not yet in force | Not_fully_in_force=Not fully in force | Unknown }}
 * header15 = {{#if:{{{legislation_history|}}}|[{{{legislation_history|}}} History of passage through Parliament]}}
 * header16 = {{#if:{{{theyworkforyou|}}}||}}}}} Records of Parliamentary debate relating to the statute from Hansard, at TheyWorkForYou}}
 * header17 = {{#if:{{{millbankhansard|}}}||}}}}} Records of Parliamentary debate relating to the statute from hansard.millbanksystems.com}}
 * header18 = {{#if:{{{original_text|}}}|
 * header15 = {{#if:{{{legislation_history|}}}|[{{{legislation_history|}}} History of passage through Parliament]}}
 * header16 = {{#if:{{{theyworkforyou|}}}||}}}}} Records of Parliamentary debate relating to the statute from Hansard, at TheyWorkForYou}}
 * header17 = {{#if:{{{millbankhansard|}}}||}}}}} Records of Parliamentary debate relating to the statute from hansard.millbanksystems.com}}
 * header18 = {{#if:{{{original_text|}}}|
 * header18 = {{#if:{{{original_text|}}}|

{{#switch:{{{current_text|}}} | auto     = {{#if:{{{monarch|}}} | |parliament={{{parliament}}}}}}}/{{urlencode:{{{monarch}}}}}/{{urlencode:{{{regnal_year}}}{{#if:{{{regnal_year2|}}}|-{{{regnal_year2}}}}}|WIKI}}/{{urlencode:{{{chapter}}}}}/contents Text of the {{#if:{{{short_title|}}} |{{{short_title}}} |{{PAGENAME}}}} as amended and in force today | |parliament={{{parliament}}}}}}}/{{urlencode:{{{year}}}}}/{{urlencode:{{{chapter}}}}}/contents Text of the {{#if:{{{short_title|}}} | {{{short_title}}} | {{PAGENAME}}}} as amended and in force today }} | no_params =  |}}}|{{{short_title}}}|{{PAGENAME}}}}}} Text of the {{#if:{{{short_title|}}}|{{{short_title}}}|{{PAGENAME}}}} as amended and in force today | [{{{current_text|}}} Text of the {{#if:{{{short_title|}}}|{{{short_title}}}|{{PAGENAME}}}}] as amended and in force today }} }}
 * header19 ={{#if:{{{current_text|}}}|

{{#if:{{{activeTextDocId|}}}| {{#if:{{{activeTextDocId|}}}|Text of the {{#if:{{{short_title|}}}|{{{short_title}}}|{{PAGENAME}}}} as amended and in force today| }} }} }}
 * header20 =
 * belowstyle =
 * below =