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

From blackwiki
Jump to navigation Jump to search
imported>Seraphim System
(copied content from Template:Company-list table start/doc; see that page's history for attribution)
 
imported>Seraphim System
m (typos →‎Syntax)
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
  
 
=== Syntax ===
 
=== Syntax ===
==== {{tl|Company-list table start}} ====
+
==== {{tl|Criminal case law start}} ====
 
Table title, legend, and column-headers. The title includes "on [area of law]" if passed as the first parameter:
 
Table title, legend, and column-headers. The title includes "on [area of law]" if passed as the first parameter:
*{{tlx|Company-list table start}}
+
*{{tlx|Criminal case law start}}
*{{tlx|Company-list table start|area of law}}
+
*{{tlx|Criminal case law start|area of law}}
==== {{tl|Company-list table entry}} ====
+
==== {{tl|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:
 
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:
 
*{{tlx|Criminal case law entry | case name | year | citation | state | doctrine | court's decision }}
 
*{{tlx|Criminal case law entry | case name | year | citation | state | doctrine | court's decision }}
Line 38: Line 38:
 
*{{tl|Criminal case law start}}
 
*{{tl|Criminal case law start}}
 
*{{tl|Criminal case law entry}}
 
*{{tl|Criminal case law entry}}
*{{tl|Criminal case law table end}}
+
*{{tl|Criminal case law end}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 04:05, 20 January 2018

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
     Other      MPC
Case name Year Citation State Doctrine 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