User:Master son/Shortcuts/Riner ref

From Wikipedia, the free encyclopedia

This template gives a reference to Steve Riner's Unofficial Minnesota Highways Page for a given highway. The highway range has to be specified as one of the following:

  • 1-25
  • 26-50
  • 51-75
  • 76-100
  • 101-149
  • 152-218
  • 219-287
  • 288-694

Usage: {{riner|range|specifichighway|accessdate}}

Example: {{riner|288-694|610|2006-04-03}} gives a reference to Highway 610 on the 288-694 page and dates it today.

Actually, I'd like to figure out how to do a mathematical comparison so it can take argument 2 and automatically generate the highway range. Also, if I could figure out how to do a subst when a template is used (but not when I'm entering it here), I could automagically put the current date in there. That didn't work when I tried it, though.

Riner, Steve. "Details of Routes {{{1}}}". The Unofficial Minnesota Highways Page. Retrieved {{{3}}}. {{cite web}}: Check date values in: |accessdate= (help)