Template:ILCS/doc

This template is used to insert an inline link to the Illinois Compiled Statutes, the system used since 1992 for statute law in Illinois. All statute laws still in effect as of July 1992, or enacted later, are classified under this system.

If you have a reference to the pre-1992 Illinois Revised Statutes (Ill.Rev.Stat.) instead, see Illinois Revised Statutes to ILCS cross-reference to find the current citation.

Usage
The template creates a link to the Illinois General Assembly website, based on the contents of the first 3 parameters, which are taken as chapter, act, and section. If they exist, chapter and act (parameters 1 and 2) must be numeric and section (parameter 3) must match the exact punctuation (if any) used in the ILCS, section only.

Do not put subsection/paragraph numbers in the 3rd parameter. Use the 4th parameter for those and for et seq. or other such wording. The 4th parameter is simply appended to the citation and does not affect the link destination.

Optional named parameters

 * date
 * Adds "accessed on" language at the end, in case used in a citation. Use a date.


 * date
 * Adds "as of" wording after the link. Note that, right now, this date is only informational; the web link does not change based on date, so using a date for a repealed law does not cause an old version of it to appear.


 * filename
 * (advanced) Overrides (or provides) a filename for an act in case the URL is too complicated to autogenerate. Hopefully shouldn't be needed.  Specify without   on the end.  Creates a link to  filename  instead of the default.  This parameter may be removed at some point.


 * text=text
 * Overrides the normal wording of the link itself. Does not override   or , which are placed after the link.


 * title=title
 * Adds a title to the front of the link and automatically puts the ILCS citation in parentheses. No effect if   is also specified.

TemplateData
{	"description": "Inserts an inline link to the Illinois Compiled Statutes, the numbering system used since 1992 for statute law in Illinois. All statute laws still in effect as of July 1992, or enacted later, are classified under this system.", "paramOrder": [ "1",		"2",		"3",		"4",		"accessdate", "date", "title", "text" ],	"params": { "1": {			"label": "chapter", "description": "chapter number: before the \"ILCS\" in citations", "type": "number", "required": true },		"2": {			"label": "act", "description": "act number: just after ILCS (and before the slash). Leave blank if you're citing a whole chapter.", "type": "string", "suggested": true },		"3": {			"label": "section", "description": "section of the act: the number(s) just after the slash, but without the numbers in parentheses. Leave blank if you're citing an entire act instead of one section.", "type": "string", "suggested": true },		"4": {			"label": "extra", "description": "subsection in parentheses, or et seq., or other wording that does not affect the link", "type": "string" },		"text": { "label": "text override", "description": "if given, replaces the text of the link (except for as-of date and access date, if given)", "type": "string" },		"title": { "label": "title", "description": "the title of the act: If provided, adds a title to the front of the link and automatically puts the ILCS citation in parentheses. (No effect if \"text override\" is also provided.)", "type": "string" },		"date": { "label": "as-of date", "description": "date that the cited law was true: adds \"as of\" wording directly after the link. the web link does not change based on date, so using a date for a repealed law does not cause an old version of it to appear.", "type": "date" },		"accessdate": { "label": "access date", "description": "date on which the citation was retrieved, if used as a source citation", "type": "date" }	} }