Difference between revisions of "Template:INcode"
Jump to navigation
Jump to search
imported>Timtrent (no included banner) |
imported>Mapsax (update main link, change template message) |
||
| Line 1: | Line 1: | ||
| − | <noinclude>{{Update|reason= | + | <noinclude>{{Update|reason=The parameters don't produce links that point to the correct targets|date=September 2018}}</noinclude> |
| − | [http:// | + | [http://iga.in.gov/legislative/laws/current/ic{{{1|}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|/ar{{{2|}}}/ch{{{3|}}}.html IC {{{1|}}}-{{{2|}}}-{{{3|}}}{{{4|}}}|/ar{{{2|}}} IC {{{1|}}}-{{{2|}}} }}|/ IC {{{1|}}} }}] |
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:32, 3 August 2020
This template is used to insert an inline link to the Indiana Code.
Usage
The template creates a link to the Indiana General Assembly website, based on the contents of up to the first 3 parameters, which are taken as title, article, and chapter. An optional 4th parameter may be specified to add the section, sub-section, etc., and must include any necessary punctuation (including the leading "-").
Examples
| Format | Example | Output |
|---|---|---|
{{INcode|title}} |
{{INcode|1}} | |
{{INcode|title|article}} |
{{INcode|1|3}} | |
{{INcode|title|article|ch}} |
{{INcode|1|3|2}} | |
{{INcode|title|article|ch|etc}} |
{{INcode|1|3|2|-4(d)(1)}} |
| The above documentation is transcluded from Template:INcode/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |