Difference between revisions of "Template:Criminal case law start"

From blackwiki
Jump to navigation Jump to search
imported>Seraphim System
(edit)
imported>Seraphim System
(edit)
Line 3: Line 3:
 
{|class="wikitable sortable" style="width: 100%; margin-left: auto; margin-right: auto; border: none; text-align: center;"  
 
{|class="wikitable sortable" style="width: 100%; margin-left: auto; margin-right: auto; border: none; text-align: center;"  
 
|+ United States criminal case law {{#if:{{{1|}}}|on {{{1}}}}}<br>
 
|+ United States criminal case law {{#if:{{{1|}}}|on {{{1}}}}}<br>
{{legend0|#67aa69|Non-Statutory|border=1px solid #000}}
+
{{legend0|#1d2e39|Non-Statutory|border=1px solid #000}}
 
{{legend0|#dddddd|Statutory|border=1px solid #000}}
 
{{legend0|#dddddd|Statutory|border=1px solid #000}}
 
{{legend0|#f9e6ff|MPC|border=1px solid #000}}
 
{{legend0|#f9e6ff|MPC|border=1px solid #000}}

Revision as of 22:26, 19 January 2018

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

Usage

{{Criminal case law start|voluntary manslaughter}}
{{Criminal case law entry | case name | year | citation | state | doctrine | court's decision }}
{{Criminal case law entry | case name | year | citation | state | doctrine | court's decision |common=y}}
{{Criminal case law entry | case name | year | citation | state | doctrine | court's decision |statute=y}}
{{Criminal case law entry | case name | year | citation | state | doctrine | court's decision |MPC=y}}
{{Criminal case law end}}
Gives
United States criminal case law on voluntary manlaughter
     Non-Statutory      Statutory      MPC
Case name Year Citation State Court Court's decision
People v. Berry 1976 18 Cal.3d 509 CA heat of passion Taunting or provocation over a prolonged period can be adequate provocation

Syntax

{{Criminal case law start}}

Table title, legend, and column-headers. The title includes "on [area of law]" if passed as the first parameter:

{{Criminal case law entry}}

A criminal law case, to be displayed as a row in the table. Some named parameters can be used to specify certain details that affect formatting:

  • {{Criminal case law entry | case name| year| citation| state| doctrine| court's decision}}
  • {{Criminal case law entry | case name| year| citation| state| doctrine| court's decision|common=y}}
    If |common= is non-blank, the case deals with non-statutory or common law crimes, and the row is formatted differently.
  • {{Criminal case law entry | case name| year| citation| state| doctrine| court's decision|statute=y}}
    If |statute= is non-blank, the case deals with statutory crimes that are not Model Penal Code, and the row is formatted differently.
  • {{Criminal case law entry | case name| year| citation| state| doctrine| court's decision|MPC=y}}}}
    If |MPC= is non-blank, the case deals with crimes under the Model Penal Code and state penal codes based on the Model Penal Code, and the row is formatted differently.

{{Criminal case law end}}

Closes the table.

See also