Difference between revisions of "Template:MNLaw"

From blackwiki
Jump to navigation Jump to search
imported>LightSoup
(updated reference format)
imported>LightSoup
(updated url format)
 
Line 1: Line 1:
<includeonly>{{#ifexpr:{{{1}}}>=1983|[https://www.revisor.mn.gov/laws/?year={{{1}}}&id={{{2}}}{{#if:{{{type|}}}|&doctype={{{type}}}|&doctype=Chapter}}{{#if:{{{ssn|}}}|&type={{{ssn}}}|&type=0}} {{#if:{{{ch#_only|}}}|{{{2}}}|{{#ifeq:{{{ssn|}}}|1|Laws {{{1}}}, First Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|2|Laws {{{1}}}, Second Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|3|Laws {{{1}}}, Third Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|4|Laws {{{1}}}, Fourth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|5|Laws {{{1}}}, Fifth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|6|Laws {{{1}}}, Sixth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|7|Laws {{{1}}}, Seventh Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|8|Laws {{{1}}}, Eighth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|9|Laws {{{1}}}, Ninth Special Session chapter {{{2}}}|Laws {{{1}}}, chapter {{{2}}}}}}}}}}}}}}}}}}}}}}}]|{{#if:{{{ch#_only|}}}|{{{2}}}|{{#ifeq:{{{ssn|}}}|1|Laws {{{1}}}, First Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|2|Laws {{{1}}}, Second Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|3|Laws {{{1}}}, Third Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|4|Laws {{{1}}}, Fourth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|5|Laws {{{1}}}, Fifth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|6|Laws {{{1}}}, Sixth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|7|Laws {{{1}}}, Seventh Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|8|Laws {{{1}}}, Eighth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|9|Laws {{{1}}}, Ninth Special Session chapter {{{2}}}|Laws {{{1}}}, chapter {{{2}}}}}}}}}}}}}}}}}}}}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
<includeonly>[https://www.revisor.mn.gov/laws/{{{1}}}/{{#if:{{{ssn|}}}|{{{ssn}}}|0}}/{{#ifeq:{{{special_law|}}}|{{#ifeq:{{{special_law|}}}|yes|yes|{{#ifeq:{{{special_law|}}}|y|y|true}}}}|Special+Laws|{{#ifexpr:{{{1}}}<1915|General+Laws|Session+Law}}}}/{{#if:{{{type|}}}|{{{type}}}|Chapter}}/{{{2}}} {{#ifeq:{{{ch#_only|}}}|{{#ifeq:{{{ch#_only|}}}|yes|yes|{{#ifeq:{{{ch#_only|}}}|y|y|true}}}}|{{{2}}}|{{#ifeq:{{{ssn|}}}|1|Laws {{{1}}}, First Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|2|Laws {{{1}}}, Second Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|3|Laws {{{1}}}, Third Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|4|Laws {{{1}}}, Fourth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|5|Laws {{{1}}}, Fifth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|6|Laws {{{1}}}, Sixth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|7|Laws {{{1}}}, Seventh Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|8|Laws {{{1}}}, Eighth Special Session chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|9|Laws {{{1}}}, Ninth Special Session chapter {{{2}}}|Laws {{{1}}}, chapter {{{2}}}}}}}}}}}}}}}}}}}}}}}]</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 01:52, 3 July 2018

Template documentation[view] [edit] [history] [purge]

This template creates a formatted external link to texts of laws enacted by the Minnesota Legislature.

Usage

{{MNLaw|year|number|ssn=}}

Parameters:

required
  • year: year the law was enacted
  • number: the law's chapter number
optional
  • ssn=: if a law was enacted in a special session, the serial number of the special session the law was enacted (e.g. enter '1' for "First Special Session")

Examples

  • {{MNLaw|2017|1}}
Laws 2017, chapter 1
  • {{MNLaw|2017|7|ssn=1}}
Laws 2017, First Special Session chapter 7