Template:CodeFedReg

From blackwiki
Jump to navigation Jump to search

{{{1}}} C.F.R. [1]

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

Usage

This template cites the Code of Federal Regulations with automatic links. It wikilinks the title and/or part if it exists on Wikipedia, and makes an external link to the U.S. government's GPO Access site for the subpart and section.

This template links to external sites. External links should not normally be used in the body of an article; see Wikipedia:External links for discussion of acceptable and unacceptable uses.

Normal citations — 1 C.F.R. 2.3a

{{CodeFedReg | 1 | 2 | 3 | a}}

  • 1 = Title
  • 2 = Part
  • 3 = Section
  • a = Clause (optional)
Subpart citations — 1 C.F.R. 2 Subpart B

{{CodeFedReg | 1 | 2 | subpart=B }}

  • 1 = Title
  • 2 = Part
  • subpart=B = Subpart
Strange prefixed/appendix section citations — 1 C.F.R. 2 Examp 3

{{CodeFedReg | 1 | 2 | prefix=Examp | 3 }}

  • 1 = Title
  • 2 = Part
  • prefix=Examp = Prefix abbreviation (as used on GPO Access citations; often prefix=App for Appendix)
  • 3 = Section (optional; sometimes a letter for some prefixes)
  • a = Clause (optional)
Optional combined subpart/section citations — 1 C.F.R. 2 Subpart B §3a

{{CodeFedReg | 1 | 2 | subpart=B | 3 | a}}

  • 1 = Title
  • 2 = Part
  • subpart=B = Subpart
  • 3 = Section (optional)
  • a = Clause (optional)

If both subpart and section are given, both are displayed, but the link is to the section, since it is more specific.

Optional parameters
  • year=2000 = year to use instead of current; GPO Access has copies of regulations several years back
  • accessdate=Template:Today (mdy) = adds "accessed on" language for citations

prefix, subpart, year, and accessdate are new as of October 22, 2010.

For more examples and results, see Template:CodeFedReg/testcases.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CodeFedReg

This template generates a link to a section of the U.S. Code of Federal Regulations (CFR)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Title1

Title within the CFR

Numberrequired
Part2

Part of within CFR

Numbersuggested
Section3

Section within the CFR

Stringsuggested
Clause4

Clause within the CFR, with levels of subclauses separated by underscores (_)

Stringsuggested
Subpartsubpart

Subpart within the CFR (unusual)

Stringoptional
Section prefixprefix

Prefix for section within the CFR (unusual)

Stringoptional
Yearyear

Year, only if not current year

Dateoptional
Access dateaccessdate

Date accessed, for use in citations

Dateoptional

Template:United States legal citation templates