Difference between revisions of "Template:Infobox EU legislation"

From blackwiki
Jump to navigation Jump to search
imported>Prosecreator
(Adding recast as a status option since the original options are inadequate)
imported>Izkala
(converting to use {{Infobox}})
Line 1: Line 1:
{| class="infobox geography" align=right width=300
+
{{Infobox
| colspan="2" align="center" bgcolor="#efefef"|{{flagicon|European Union}} {{#switch:{{{type|}}} | Directive='''[[Directive (European Union){{!}}European Union directive]]:''' | Regulation='''[[Regulation (European Union){{!}}European Union regulation]]:''' | Decision='''[[European Union decision]]:''' | }}
+
| title    = {{#switch:{{lc:{{{type}}}}}|directive=Directive|regulation=Regulation|decision=Decision}} {{{number}}}
|-
+
 
! colspan="2" style="background:#f9f9f9; text-align:center; font-size:135%" |{{#switch:{{{type|}}} | Directive='''Directive {{{number}}}''' | Regulation='''Regulation {{{number}}}''' | Decision='''Decision {{{number}}}''' | }}  
+
| subheaderstyle = background-color: #ddd; font-weight: bold;
|-
+
| subheader = {{#switch:{{lc:{{{type}}}}}|directive=[[Directive (European Union)|European Union directive]]|regulation=[[Regulation (European Union)|European Union regulation]]|decision=[[European Union decision]]}}
| colspan="2" style="background:#f9f9f9; text-align:center" |{{{title}}}
+
| subheader2 = {{#if:{{{EEA|}}}|Text with [[European Economic Area|EEA]] relevance}}
|-
+
| subheader3 = {{#if:{{{Enhancedcooperation|}}}|Text adopted under the [[Enhanced cooperation]] procedure}}
{{ #if: {{{EEA|}}} | {{!}} colspan="2" style="background:#f9f9f9; text-align:center" {{!}} (Text with [[European Economic Area|EEA]] relevance) }}
+
 
|-
+
| bodystyle = width: 24em;
{{ #if: {{{Enhancedcooperation|}}} | {{!}} colspan="2" style="background:#f9f9f9; text-align:center" {{!}} (Text adopted under the [[Enhanced cooperation]] procedure) }}
+
| headerstyle = background-color: #ccf;
|-
+
 
{{ #if: {{{Parties|}}} | {{!}} align="right" {{!}} '''Applicability''' {{!!}} align="left" {{!}} {{{Parties}}} }}<!--use this parameter only if some parts of the EU are excluded-->
+
| label1    = Title
|-
+
|  data1    = {{{title|}}}
| align="right" | '''Made by'''
+
| label2    = Applicability
| align="left" | {{{madeby}}}
+
|  data2    = {{{Parties|}}}
|-
+
| label3    = Made by
| align="right" | '''Made under'''
+
| data3    = {{{madeby|}}}
| align="left" | {{{madeunder}}}
+
| label4    = Made under
|-
+
| data4    = {{{madeunder|}}}
| align="right" | '''[[Official Journal of the European Union|Journal]] reference'''
+
| label5    = [[Official Journal of the European Union|Journal]] reference
| align="left" | {{#if: {{{OJrefurl|}}}|<span class="plainlinksneverexpand">[{{{OJrefurl}}} {{{OJref}}}]</span>|{{{OJref}}}}}
+
| data5    = {{#if:{{{OJrefurl|}}}|[{{{OJrefurl}}} {{{OJref}}}]|{{{OJref|}}}}}
|-
+
| label6    = EEA Agreement
{{ #if: {{{EEATreaty|}}} | {{!}} align="right" {{!}} EEA Agreement {{!!}} align="left" {{!}} {{{EEATreaty}}} }}
+
|  data6    = {{{EEATreaty|}}}
{{ #if: {{{EEADec|}}} | {{!}} align="right" {{!}} EEA Joint Committee decision {{!!}} align="left" {{!}} {{{EEADec}}} }}
+
| label7    = EEA Joint Committee decision
|-
+
|  data7    = {{{EEADec|}}}
! colspan=2 style="background: #ccccff; text-align:center" | History
+
 
|-
+
| header8  = {{#if:{{{made|}}}{{{commenced|}}}{{{implementation|}}}{{{application|}}}|History}}
| align="right" | Made
+
| label9    = Date made
| align="left" | {{{made}}}
+
| data9    = {{{made|}}}
|-
+
| label10  = Came into force
| align="right" | Came into force
+
| data10  = {{{commenced|}}}
| align="left" | {{{commenced}}}
+
| label11  = Implementation date
|-
+
|  data11  = {{{implementation|}}}
{{ #if: {{{implementation|}}} | {{!}} align="right" {{!}} Implementation date {{!!}} align="left" {{!}} {{{implementation}}} }}
+
| label12  = Applies from
|-
+
|  data12  = {{{application|}}}
{{ #if: {{{application|}}} | {{!}} align="right" {{!}} Applies from {{!!}} align="left" {{!}} {{{application}}} }}
+
 
|-
+
| header13  = {{#if:{{{CommProp|}}}{{{ESCOpin|}}}{{{CROpin|}}}{{{ParlOpin|}}}{{{Reports|}}}|Preparative texts}}
! colspan=2 style="background: #ccccff; text-align:center" | Preparative texts
+
| label14  = [[European Commission|Commission]] proposal
|-
+
|  data14  = {{{CommProp|}}}
{{ #if: {{{CommProp|}}} | {{!}} align="right" {{!}} [[European Commission|Commission]] proposal {{!!}} align="left" {{!}} {{{CommProp}}} }}
+
| label15  = [[European Economic and Social Committee|EESC]] opinion
|-
+
|  data15  = {{{ESCOpin|}}}
{{ #if: {{{ESCOpin|}}} | {{!}} align="right" {{!}} [[European Economic and Social Committee|EESC]] opinion {{!!}} align="left" {{!}} {{{ESCOpin}}} }}
+
| label16  = [[Committee of the Regions|CR]] opinion
|-
+
|  data16  = {{{CROpin|}}}
{{ #if: {{{CROpin|}}} | {{!}} align="right" {{!}} [[Committee of the Regions|CR]] opinion {{!!}} align="left" {{!}} {{{CROpin}}} }}
+
| label17  = [[European Parliament|EP]] opinion
|-
+
|  data17  = {{{ParlOpin|}}}
{{ #if: {{{ParlOpin|}}} | {{!}} align="right" {{!}} [[European Parliament|EP]] opinion {{!!}} align="left" {{!}} {{{ParlOpin}}} }}
+
| label18  = Reports
|-
+
| data18  = {{{Reports|}}}
{{ #if: {{{Reports|}}} | {{!}} align="right" {{!}} Reports {{!!}} align="left" {{!}} {{{Reports}}} }}
+
 
|-
+
| header19  = {{#if:{{{replaces|}}}{{{amends|}}}{{{amendedby|}}}{{{replacedby|}}}|Other legislation}}
! colspan=2 style="background: #ccccff; text-align:center" | Other legislation
+
| label20  = Replaces
|-
+
|  data20  = {{{replaces|}}}
{{ #if: {{{replaces|}}} | {{!}} align="right" {{!}} Replaces {{!!}} align="left" {{!}} {{{replaces}}} }}
+
| label21  = Amends
|-
+
|  data21  = {{{amends|}}}
{{ #if: {{{amends|}}} | {{!}} align="right" {{!}} Amends {{!!}} align="left" {{!}} {{{amends}}} }}
+
| label22  = Amended by
|-
+
|  data22  = {{{amendedby|}}}
{{ #if: {{{amendedby|}}} | {{!}} align="right" {{!}} Amended by {{!!}} align="left" {{!}} {{{amendedby}}} }}
+
| label23  = Replaced by
|-
+
|  data23  = {{{replacedby|}}}
{{ #if: {{{replacedby|}}} | {{!}} align="right" {{!}} Replaced by {{!!}} align="left" {{!}} {{{replacedby}}} }}
+
 
|-
+
| belowstyle = background-color: #{{#switch:{{lc:{{{status}}}}}|current=ccffcc|pending=ffa500|amended=ffffcc|repealed=ffcccc|proposed=b9b966}}; font-weight: bold;
| align="center" colspan="2" style="background: #{{#switch:{{{status}}} | Current=ccffcc | Pending=ffa500 | Amended=ffffcc | Repealed=ffcccc |f9f9f9 | Proposed=b9b966 }}" | '''Status: {{#switch:{{{status}}} | Current=Current legislation | Pending=Pending legislation | Amended=Substantially amended | Repealed=Repealed | Proposed=Proposed | Recast=Recast with new legislation | Unknown }}'''
+
| below    = {{#switch:{{lc:{{{status}}}}}|current=Current legislation|pending=Pending legislation|amended=Substantially amended|repealed=Repealed|proposed=Proposed|recast=Recast with new legislation}}
|}<noinclude>
+
}}<noinclude>
{{documentation}}
+
{{Documentation}}</noinclude>
</noinclude>
 

Revision as of 17:33, 28 March 2015

{{{number}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Regulation {{{number}}}
European Union regulation
Text with EEA relevance
Text adopted under the Enhanced cooperation procedure
Title{{{title}}}
Applicability{{{Parties}}}
Made by{{{madeby}}}
Made under{{{madeunder}}}
Journal reference{{{OJref}}}
EEA Agreement{{{EEATreaty}}}
EEA Joint Committee decision{{{EEADec}}}
History
Date made{{{made}}}
Came into force{{{commenced}}}
Implementation date{{{implementation}}}
Applies from{{{application}}}
Preparative texts
Commission proposal{{{CommProp}}}
EESC opinion{{{ESCOpin}}}
CR opinion{{{CROpin}}}
EP opinion{{{ParlOpin}}}
Reports{{{Reports}}}
Other legislation
Replaces{{{replaces}}}
Amends{{{amends}}}
Amended by{{{amendedby}}}
Replaced by{{{replacedby}}}
Current legislation
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox EU legislation
| number              = 
| type                = 
| EEA                 = 
| Enhancedcooperation = 
| title               = 
| Parties             = 
| madeby              = 
| madeunder           = 
| OJrefurl            = 
| OJref               = 
| EEATreaty           = 
| EEADec              = 
| made                = 
| commenced           = 
| implementation      = 
| application         = 
| CommProp            = 
| ESCOpin             = 
| CROpin              = 
| ParlOpin            = 
| Reports             = 
| replaces            = 
| amends              = 
| amendedby           = 
| replacedby          = 
| status              = 
}}

Short syntax

{{Infobox EU legislation 
| number    = 
| type      = 
| title     = 
| madeby    = 
| madeunder = 
| OJref     = 
| OJrefurl     = 
| made      = 
| commenced = 
| status = one of: "proposed", "current", "pending", "amended", "recast", or "repealed"
}}

Parameters

EEA
can either be "yes" (when the Directive or Regulation has EEA relevance) or left empty, when there is no EEA relevance
Enhancedcooperation 
can either be "yes" (when the Directive or Regulation is established under enhanced cooperation) or left empty, where procedure does not apply
type
one of: "directive", "regulation" or "decision"
status
one of: "proposed", "current", "pending", "amended", "recast", or "repealed"