Template:CodeFedReg/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.


 * Normal citations &mdash; 1 C.F.R. 2.3a:
 * = Title
 * = Part
 * = Section
 * = Clause (optional)


 * Subpart citations &mdash; 1 C.F.R. 2 Subpart B:
 * = Title
 * = Part
 * = Subpart


 * Strange prefixed/appendix section citations &mdash; 1 C.F.R. 2 Examp 3
 * = 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; 1 C.F.R. 2 Subpart B &sect;3a:
 * = 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" }