Difference between revisions of "Template:MNLaw"

From blackwiki
Jump to navigation Jump to search
imported>LightSoup
(added feature)
imported>LightSoup
(updated)
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}}}|Laws of Minnesota {{{1}}}, chapter {{{2}}}}}]|{{#if:{{{ch#_only|}}}|{{{2}}}|Laws of Minnesota {{{1}}}, chapter {{{2}}}}}}}<noinclude>{{Documentation}}</noinclude>
+
{{#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>

Revision as of 20:27, 13 June 2015

Expression error: Unrecognized punctuation character "{".

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 of Minnesota 2017, chapter 1
  • {{MNLaw|2017|7|ssn=1}}
Laws of Minnesota 2017, 1st Spec. Sess. chapter 7