Template:Cite NJSA/sandbox

From blackwiki
< Template:Cite NJSA
Revision as of 23:55, 2 October 2017 by imported>Acebarry (Created page with '<!-- Add your experimental template code here. --><noinclude> {{Documentation}} </noinclude>')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


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

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

  1. New Jersey General Assembly. "N.J.S.A. 2C:39-1". Statutes of New Jersey. New Jersey.
  2. New Jersey General Assembly. "N.J.S.A. 2C:39-2(a)". Statutes of New Jersey. New Jersey.
  3. New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey. This is an important note.
  4. New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey.