Template:CodeFedReg/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

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. **Using spaces in the parameters (ie. title, part, section, etc) will break the external link generated by the template

Normal citations — 13 C.F.R. 136.130g
rendered as 13 CFR 136.130

{{CodeFedReg |13|136|130|g}} or {{CodeFedReg |1=13|2=136|3=130|a=g}}

  • 1 = Title
  • 2 = Part
  • 3 = Section
  • a = Clause (optional)
Subpart citations — 24 C.F.R. 884C
rendered as 24 CFR 884

{{CodeFedReg |24|884|subpart=C}} or {{CodeFedReg |1=24|2=884|subpart=C}}

  • 1 = Title
  • 2 = Part
  • subpart = Subpart
Strange prefixed/appendix section citations — 40 C.F.R. 58 App G
rendered as 40 CFR 58.G

{{CodeFedReg |40|58|prefix=App|G}} or {{CodeFedReg |1=40|2=58|prefix=App|3=G}}

  • 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 — 23 C.F.R. 710 Subpart D §403e
rendered as 23 CFR 710.403

{{CodeFedReg |23|710|subpart=D|403|d}} or {{CodeFedReg |1=23|2=710|subpart=D|3=403|a=e}}

  • 1 = Title
  • 2 = Part
  • subpart = 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=June 26, 2024 = 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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:CodeFedReg in articles based on its TemplateData.

TemplateData for CodeFedReg

<templatedata> { "description": "This template generates a link to a section of the U.S. Code of Federal Regulations (CFR)", "params": { "1": { "label": "Title", "description": "Title within the CFR", "type": "number", "required": true }, "2": { "label": "Part", "description": "Part of within CFR", "type": "number", "required": false, "suggested": true }, "3": { "label": "Section", "description": "Section within the CFR", "type": "string", "required": false, "suggested": true }, "4": { "label": "Clause", "description": "Clause within the CFR, with levels of subclauses separated by underscores (_)", "type": "string", "required": false, "suggested": true }, "subpart": { "label": "Subpart", "description": "Subpart within the CFR (unusual)", "type": "string", "required": false }, "prefix": { "label": "Section prefix", "description": "Prefix for section within the CFR (unusual)", "type": "string", "required": false }, "year": { "label": "Year", "description": "Year, only if not current year", "type": "date", "required": false }, "accessdate": { "label": "Access date", "description": "Date accessed, for use in citations", "type": "date", "required": false } }, "format": "inline" } </templatedata>

List of all United States legal citation templates

These templates are for citing U.S. codes and laws. To cite court cases, use {{Cite court}}, or, for the U.S. Supreme Court, use {{Ussc}}.


Parameters in (parentheses) are optional.

Template(s) Parameter(s) Description
1 2 3 4 pipe
{{UnitedStatesCode}}, {{USC}} Title Section (end of section range)   (pipe) United States Code (USC) via Cornell University's Legal Information Institute
{{UnitedStatesCode2}}, {{USC2}} Title Section Description   USC via Cornell: description of the section
{{UnitedStatesCodeSec}}, {{USCSec}} Title Section   (pipe) USC via Cornell: when citing one of a series of USC sections, where it would be redundant to display the full citation for each section, this template can be used to display only the section number.
{{UnitedStatesCodeSub}}, {{USCSub}} Title Section Up to 6 levels of "sub" Access to subsection/paragraph/subparagraph/clause/... to allow correct hyperlinking to the anchors embedded in the Cornell pages.
{{USCSub2}} Title Section Up to 6 levels of "sub" Combines {{USCSec}} and {{USCSub}}, eliminating redundancy when citing subsections / subparagraphs / &c.
{{UnitedStatesCodeClause}}, {{USCClause}} Title Section Clause   USC via Cornell: allows clauses
{{Usc-title-chap}}, {{usctc}} Title Chapter (Subchapter)   (pipe) USC via Cornell: title/chapter links.
{{USStat}} Volume Page     Statutes at Large via the Library of Congress, the Government Publishing Office, or Google Books
{{USPL}} Congress Ordinal law (Description)   Public Law via GPO govinfo and https://uslaw.link/
{{USStatute}} Congress Ordinal law (Volume) (Page)   Combines {{USPL}} and {{USStat}},
optional Year ({{{5}}}), Month ({{{6}}}), Day ({{{7}}}),
optional {{USBill}}: (Bill type ({{{8}}}) and number ({{{9}}}))
{{USBill}} Congress Bill type (S, SJ, HR, HJ) Bill number (1-?)   (pipe) Congressional bills via Congress.gov
{{Federal Register}}, {{USFR}} Volume Page   Federal Register via GPO FDsys
{{CodeFedReg}}, {{USCFR}} Volume Part Section (Clause)   Code of Federal Regulations via GPO FDsys
{{Executive Order}} Number   Executive orders via Wikisource
{{USTreaty}} Congress Treaty number Treaties
Template(s) 1 2 3 4 pipe Description
Parameter(s)