Difference between revisions of "Template:Cite NJSA"

From blackwiki
Jump to navigation Jump to search
imported>Acebarry
(Add optional sub section)
imported>Acebarry
(Add cite only option)
Line 1: Line 1:
N.J.S.A {{Allcaps|{{{title|}}}:{{{chapter|}}}-{{{section|}}}}}{{#if:{{{subsection|}}}|({{{subsection|}}})| }} {{#tag:ref
+
{{#if: {{{citeonly|}}}||N.J.S.A {{Allcaps|{{{title|}}}:{{{chapter|}}}-{{{section|}}}}}{{#if:{{{subsection|}}}|({{{subsection|}}})|}}}}{{#tag:ref
 
|{{cite web
 
|{{cite web
 
| work  = Statutes of New Jersey
 
| work  = Statutes of New Jersey
Line 5: Line 5:
 
| url    = https://njlaw.rutgers.edu/collections/njstats/showsect.php?title={{{title|}}}&chapter={{{chapter|}}}&section={{{section|}}}&actn=getsect
 
| url    = https://njlaw.rutgers.edu/collections/njstats/showsect.php?title={{{title|}}}&chapter={{{chapter|}}}&section={{{section|}}}&actn=getsect
 
| title  = N.J.S.A. {{Allcaps|{{{title|}}}:{{{chapter|}}}-{{{section|}}}}}{{#if:{{{subsection|}}}|({{{subsection|}}})| }} <!--  N.J.S.A. 12A:1-101.** -->
 
| title  = N.J.S.A. {{Allcaps|{{{title|}}}:{{{chapter|}}}-{{{section|}}}}}{{#if:{{{subsection|}}}|({{{subsection|}}})| }} <!--  N.J.S.A. 12A:1-101.** -->
| last=
 
| first=
 
 
| date=
 
| date=
 
| website=
 
| website=
| publisher= New Jersey
+
| publisher=New Jersey
 
| access-date=
 
| access-date=
 
| quote=
 
| quote=

Revision as of 23:47, 2 October 2017

N.J.S.A :-[1]

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[2]
Sub section; no extra reference text
{{Cite NJSA|title=2C|chapter=39|section=2|subsection=a}}
N.J.S.A 2C:39-2(a)[3]
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)[4]
Cite Only
{{Cite NJSA|title=2C|chapter=39|section=3|subsection=b|citeonly=true}}
[5] 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. :-". Statutes of New Jersey. New Jersey. templatestyles stripmarker in |title= at position 10 (help)
  2. New Jersey General Assembly. "N.J.S.A. 2C:39-1". Statutes of New Jersey. New Jersey. templatestyles stripmarker in |title= at position 10 (help)
  3. New Jersey General Assembly. "N.J.S.A. 2C:39-2(a)". Statutes of New Jersey. New Jersey. templatestyles stripmarker in |title= at position 10 (help)
  4. New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey. templatestyles stripmarker in |title= at position 10 (help) This is an important note.
  5. New Jersey General Assembly. "N.J.S.A. 2C:39-3(b)". Statutes of New Jersey. New Jersey. templatestyles stripmarker in |title= at position 10 (help)