Template:Cite NJSA/sandbox
Appearance
This is the template sandbox page for Template:Cite NJSA (diff). See also the companion subpage for test cases. |
This template is intended for citing New Jersey Statutes. Right now it links to Rutgers University's Law School's copy of N.J.S.A. because the official New Jersey site does not allow hard linking.
{{New Jersey Statute
| title = 18A
| chapter = 7A
| section = 33
| subsection = a <!-- OPTIONAL for more fine citation -->
| ref = <!-- OPTIONAL extra information that will be appended to the generated reference -->
| citeonly= <!-- OPTIONAL to *only* make the citation -->
}}
Examples
[edit]Kind | Code | Returns | Note |
---|---|---|---|
No sub section; no extra reference text | {{Cite NJSA|title=2C|chapter=39|section=1}}
|
N.J.S.A 2C:39-1[1] | |
Sub section; no extra reference text | {{Cite NJSA|title=2C|chapter=39|section=2|subsection=a}}
|
N.J.S.A 2C:39-2(a)[2] | |
Sub section; extra reference text | {{Cite NJSA|title=2C|chapter=39|section=3|subsection=b|ref=This is an important note.}}
|
N.J.S.A 2C:39-3(b)[3] | |
Cite Only | {{Cite NJSA|title=2C|chapter=39|section=3|subsection=b|citeonly=true}}
|
[4] | To make citeonly true, it can be any value. Please make it in the affirmative. |
Please see the test cases for more examples.
TODO
[edit]- Error checking
- Default values
- Link to more official site than Rutgers
- Deep link with subsection
- Name citation so that duplicate references will share one reference
- Use the Wikisource version if possible one day: https://en.wikisource.org/wiki/New_Jersey_Statutes_Annotated
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-1". Statutes of New Jersey. New Jersey.
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-2(a)". Statutes of New Jersey. New Jersey.
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey. This is an important note.
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey.