Template:Code of Federal Regulations/doc

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 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 &mdash; 13 C.F.R. 136.130g: rendered as
 * = Title
 * = Part
 * = Section
 * = Clause (optional)


 * Subpart citations &mdash; 24 C.F.R. 884C: rendered as
 * = Title
 * = Part
 * = Subpart


 * Strange prefixed/appendix section citations &mdash; 40 C.F.R. 58 App G: rendered as
 * = Title
 * = Part
 * = Prefix abbreviation (as used on GPO Access citations; often  for Appendix)
 * = Section (optional; sometimes a letter for some prefixes)
 * = 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 combined subpart/section citations &mdash; 23 C.F.R. 710 Subpart D &sect;403e: rendered as
 * = Title
 * = Part
 * = Subpart
 * = Section (optional)
 * = Clause (optional)


 * Optional parameters:
 * = year to use instead of current; GPO Access has copies of regulations several years back
 * = adds "accessed on" language for citations

,,  , and   are new as of October 22, 2010.

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

Template data
{	"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" }