Difference between revisions of "Template:Infobox law"
From Taijitu
(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: | + | !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|}}}| |
− | + | {{!}}- | |
− | {{ | + | |
!Petition submitted | !Petition submitted | ||
{{!}}{{{submitted|}}} | {{!}}{{{submitted|}}} | ||
+ | {{!}}-{{top}} | ||
+ | !Petition approved | ||
+ | {{!}}{{{approved|}}} | ||
+ | {{!}}-{{top}} | ||
+ | !Referendum | ||
+ | {{!}}{{{referendum|}}}}} {{if||{{{introduced|}}}| | ||
{{!}}- | {{!}}- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
!Introduced | !Introduced | ||
{{!}}{{{introduced|}}} | {{!}}{{{introduced|}}} | ||
− | {{!}}- | + | {{!}}-{{top}} |
− | ! | + | !Vote |
− | {{!}}{{{ | + | {{!}}{{{passed|test}}}}} {{if||{{{signed|}}}| |
− | + | {{!}}-{{top}} | |
− | + | !Signed | |
− | {{ | + | {{!}}{{{signed|}}}}} {{if||{{{amended|}}}| |
− | {{!}}- | + | {{!}}-{{top}} |
− | !Signed | + | |
− | {{!}}{{{signed}}} | + | |
− | }} | + | |
− | {{ | + | |
− | {{!}}- | + | |
!Amended | !Amended | ||
− | {{!}}{{{amended|}}} | + | {{!}}{{{amended|}}}}} {{if||{{{repealed|}}}| |
− | }} | + | {{!}}-{{top}} |
− | {{ | + | |
− | {{!}}- | + | |
!Repealed | !Repealed | ||
− | {{!}}{{{repealed|}}} | + | {{!}}{{{repealed|}}}}} |
− | }} | + | |
|} | |} | ||
Line 43: | Line 36: | ||
<noinclude> | <noinclude> | ||
− | <div style="width: | + | <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 | ||
− | |||
|passed= //only if introduced | |passed= //only if introduced | ||
− | |signed= // | + | |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 }}