Difference between revisions of "Template:Law report/doc"

From blackwiki
Jump to navigation Jump to search
imported>Int21h
imported>Int21h
Line 31: Line 31:
 
"required": true,
 
"required": true,
 
"aliases": ["p","page","pg"],
 
"aliases": ["p","page","pg"],
 +
"type": "number"
 +
},
 +
"4": {
 +
"label": "Year",
 +
"description": "The year of the citation.",
 +
"required": false,
 +
"aliases": ["y","year","yr"],
 
"type": "number"
 
"type": "number"
 
},
 
},

Revision as of 16:40, 21 November 2015

This template implements an inline citation to a law report.

For case citations, see {{Cite court}}.

Usage

Use: {{Law report | volume | report | page}}


Output an inline case citation.

Template parameters

ParameterDescriptionTypeStatus
Volume1 vol volume

The volume of the report.

Numberrequired
Report2 rep report

The report / report series.

Stringrequired
Page3 p page pg

The page in the volume of the report.

Numberrequired
Year4 y year yr

The year of the citation.

Numberoptional
URLurl

An override for the URL.

Stringoptional

Examples

Enter Result
{{report|1|US|1}} Template:Report

Todo

This template still needs:

  • Given a report series, format the citation to jurisdiction-specific standards.
  • Named parameters as aliases for the anonymous parameters and vice versa.

Sources