Difference between revisions of "Template:MNLaw"

From blackwiki
Jump to navigation Jump to search
imported>LightSoup
(updated)
imported>LightSoup
(updated reference format)
Line 1: Line 1:
{{#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 of Minnesota {{{1}}}, 1st Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|2|Laws of Minnesota {{{1}}}, 2nd Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|3|Laws of Minnesota {{{1}}}, 3rd Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|4|Laws of Minnesota {{{1}}}, 4th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|5|Laws of Minnesota {{{1}}}, 5th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|6|Laws of Minnesota {{{1}}}, 6th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|7|Laws of Minnesota {{{1}}}, 7th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|8|Laws of Minnesota {{{1}}}, 8th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|9|Laws of Minnesota {{{1}}}, 9th Spec. Sess. chapter {{{2}}}|Laws of Minnesota {{{1}}}, chapter {{{2}}}}}}}}}}}}}}}}}}}}}}}]|{{#if:{{{ch#_only|}}}|{{{2}}}|{{#ifeq:{{{ssn|}}}|1|Laws of Minnesota {{{1}}}, 1st Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|2|Laws of Minnesota {{{1}}}, 2nd Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|3|Laws of Minnesota {{{1}}}, 3rd Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|4|Laws of Minnesota {{{1}}}, 4th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|5|Laws of Minnesota {{{1}}}, 5th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|6|Laws of Minnesota {{{1}}}, 6th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|7|Laws of Minnesota {{{1}}}, 7th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|8|Laws of Minnesota {{{1}}}, 8th Spec. Sess. chapter {{{2}}}|{{#ifeq:{{{ssn|}}}|9|Laws of Minnesota {{{1}}}, 9th Spec. Sess. chapter {{{2}}}|Laws of Minnesota {{{1}}}, chapter {{{2}}}}}}}}}}}}}}}}}}}}}}}}}<noinclude>{{Documentation}}</noinclude>
+
<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>

Revision as of 00:01, 12 March 2016

50px 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