Template:CodeFedReg
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
= Title2
= Part3
= Sectiona
= Clause (optional)
- Subpart citations — 1 C.F.R. 2 Subpart B
{{CodeFedReg | 1 | 2 | subpart=B }}
1
= Title2
= Partsubpart=B
= Subpart
- Strange prefixed/appendix section citations — 1 C.F.R. 2 Examp 3
{{CodeFedReg | 1 | 2 | prefix=Examp | 3 }}
1
= Title2
= Partprefix=Examp
= Prefix abbreviation (as used on GPO Access citations; oftenprefix=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
= Title2
= Partsubpart=B
= Subpart3
= 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 backaccessdate=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
TemplateData for CodeFedReg
This template generates a link to a section of the U.S. Code of Federal Regulations (CFR)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | 1 | Title within the CFR | Number | required |
Part | 2 | Part of within CFR | Number | suggested |
Section | 3 | Section within the CFR | String | suggested |
Clause | 4 | Clause within the CFR, with levels of subclauses separated by underscores (_) | String | suggested |
Subpart | subpart | Subpart within the CFR (unusual) | String | optional |
Section prefix | prefix | Prefix for section within the CFR (unusual) | String | optional |
Year | year | Year, only if not current year | Date | optional |
Access date | accessdate | Date accessed, for use in citations | Date | optional |
Template:United States legal citation templates
The above documentation is transcluded from Template:CodeFedReg/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |