Template:Cite NJSA
N.J.S.A :-[1]
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.
<syntaxhighlight lang="wikitext" style="font-size:95%; overflow:auto;"> Template:New Jersey Statute </syntaxhighlight>
Examples
Kind | Code | Returns | Note |
---|---|---|---|
No sub section; no extra reference text | <syntaxhighlight lang="wikitext">N.J.S.A 2C:39-1[2]</syntaxhighlight> | N.J.S.A 2C:39-1[3] | |
Sub section; no extra reference text | <syntaxhighlight lang="wikitext">N.J.S.A 2C:39-2(a)[4]</syntaxhighlight> | N.J.S.A 2C:39-2(a)[5] | |
Sub section; extra reference text | <syntaxhighlight lang="wikitext">N.J.S.A 2C:39-3(b)[6]</syntaxhighlight> | N.J.S.A 2C:39-3(b)[7] | |
Cite Only | <syntaxhighlight lang="wikitext">[8]</syntaxhighlight> | [9] | To make citeonly true, it can be any value. Please make it in the affirmative. |
Please see the test cases for more examples.
TODO
- 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. :-". Statutes of New Jersey. New Jersey.
- ^ 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-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-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. This is an important note.
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey.
- ^ New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey.