Difference between revisions of "Template:Infobox law"

From Taijitu
Jump to: navigation, search
(Fixed parsing problems with optional rows and newlines, generalized for use with non-Taijituan laws)
Line 1: Line 1:
 
{| align=right cellspacing="4" cellpadding="1" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px darkgray solid; font-size: 88%; text-align: left; width: 22em"
 
{| align=right cellspacing="4" cellpadding="1" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px darkgray solid; font-size: 88%; text-align: left; width: 22em"
!colspan=2 style="background-color:black; color: white; font-size:125%; text-align:center"|{{{name}}}
+
!colspan=2 style="background-color:{{{color|{{color|{{{jurisdiction|}}}}}}}}black; color: {{{text_color|black}}}; font-size:125%; text-align:center"|{{{name}}}
 +
|-
 +
!width="33%"|Jurisdiction
 +
|{{{jurisdiction}}}
 
|-
 
|-
 
!Enacted by
 
!Enacted by
|{{{enacted_by}}}
+
|{{{enacted_by}}} {{if||{{{submitted|}}}|
|-
+
{{!}}-
{{#if: {{{submitted|}}}|
+
 
!Petition submitted
 
!Petition submitted
 
{{!}}{{{submitted|}}}
 
{{!}}{{{submitted|}}}
 +
{{!}}-{{top}}
 +
!Petition approved
 +
{{!}}{{{approved|}}}
 +
{{!}}-{{top}}
 +
!Referendum
 +
{{!}}{{{referendum|}}}}} {{if||{{{introduced|}}}|
 
{{!}}-
 
{{!}}-
!Petition approved
 
{{!}}{{{approved|test}}}
 
{{!}}-valign=top
 
!Passed in referendum
 
{{!}}{{{referendum|}}}
 
}}
 
{{#if: {{{introduced|}}}|
 
 
!Introduced
 
!Introduced
 
{{!}}{{{introduced|}}}
 
{{!}}{{{introduced|}}}
{{!}}-valign=top
+
{{!}}-{{top}}
!Moved to vote
+
!Vote
{{!}}{{{to_vote}}}
+
{{!}}{{{passed|test}}}}} {{if||{{{signed|}}}|
{{!}}-
+
{{!}}-{{top}}
!Passed
+
!Signed
{{!}}{{{passed}}}
+
{{!}}{{{signed|}}}}} {{if||{{{amended|}}}|
{{!}}-
+
{{!}}-{{top}}
!Signed into law
+
{{!}}{{{signed}}}
+
}}
+
{{#if: {{{amended|}}}|
+
{{!}}-valign="top"
+
 
!Amended
 
!Amended
{{!}}{{{amended|}}}
+
{{!}}{{{amended|}}}}} {{if||{{{repealed|}}}|
}}
+
{{!}}-{{top}}
{{#if: {{{repealed|}}}|
+
{{!}}-valign="top"
+
 
!Repealed
 
!Repealed
{{!}}{{{repealed|}}}
+
{{!}}{{{repealed|}}}}}
}}
+
 
|}
 
|}
  
Line 43: Line 36:
  
 
<noinclude>
 
<noinclude>
<div style="width:325px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
+
<div style="width:400px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
{{Infobox law
 
{{Infobox law
 +
|color= //optional default jurisdiction:color
 +
|text_color= //optional default black
 
|name=
 
|name=
 +
|jurisdiction=
 
|enacted_by=
 
|enacted_by=
 
|submitted= //optional
 
|submitted= //optional
Line 51: Line 47:
 
|referendum= //only if submitted
 
|referendum= //only if submitted
 
|introduced= //optional
 
|introduced= //optional
|to_vote= //only if introduced
 
 
|passed= //only if introduced
 
|passed= //only if introduced
|signed= //only if introduced
+
|signed= //optional
 
|amended= //optional
 
|amended= //optional
 
|repealed= //optional
 
|repealed= //optional

Revision as of 17:32, 16 October 2011

{{{name}}}
Jurisdiction {{{jurisdiction}}}
Enacted by {{{enacted_by}}}



{{Infobox law
|color= //optional default jurisdiction:color
|text_color= //optional default black
|name=
|jurisdiction=
|enacted_by=
|submitted= //optional
|approved= //only if submitted
|referendum= //only if submitted
|introduced= //optional
|passed= //only if introduced
|signed= //optional
|amended= //optional
|repealed= //optional
}}