Difference between revisions of "Template:Infobox road/link/USA"

From blackwiki
Jump to navigation Jump to search
imported>Mark Arsten
m (Changed protection level of Template:Infobox road/link/USA: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Block all non-admin users] (indefinite)))
imported>Plastikspork
(Update after move)
Line 1: Line 1:
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
|I|Interstate|I 1957|Future={{#if:{{{state|}}}|Interstate {{{route}}} ({{StateName|{{{state}}}}})|Interstate {{{route}}}}}
+
|I|Interstate|I 1957|Future={{#if:{{{state|}}}|Interstate {{{route}}} ({{Infobox road/name/USA/StateName|{{{state}}}}})|Interstate {{{route}}}}}
|US|US 1926|US 1948|US 1950={{#if:{{{state|}}}|U.S. Route {{{route}}} in {{StateName|{{{state}}}}}|U.S. Route {{{route}}}}}
+
|US|US 1926|US 1948|US 1950={{#if:{{{state|}}}|U.S. Route {{{route}}} in {{Infobox road/name/USA/StateName|{{{state}}}}}|U.S. Route {{{route}}}}}
 
|NER=Route {{{route}}} (New England)
 
|NER=Route {{{route}}} (New England)
 
|SH|SR|{{{state}}}|Route|K|M|U|Former|Former Toll|SH-old|SR-old|{{{state}}}-old|Route-old|M-old|M 1919|M 1926|M 1948|Dual|NJ 1956|NY 1927|{{{state}}} 1948|{{{state}}} 1950|{{{state}}} 1955|NY 1960|{{{state}}} 1964|{{{state}}} 1926|NC 1945|NC 1957|Town|Toll={{#switch:{{{state}}}
 
|SH|SR|{{{state}}}|Route|K|M|U|Former|Former Toll|SH-old|SR-old|{{{state}}}-old|Route-old|M-old|M 1919|M 1926|M 1948|Dual|NJ 1956|NY 1927|{{{state}}} 1948|{{{state}}} 1950|{{{state}}} 1955|NY 1960|{{{state}}} 1964|{{{state}}} 1926|NC 1945|NC 1957|Town|Toll={{#switch:{{{state}}}
  |AL|AZ|CA|GA|ME|NV|NY|OH|TN|UT|VA|WA={{StateName|{{{state}}}}} State Route {{{route}}}
+
  |AL|AZ|CA|GA|ME|NV|NY|OH|TN|UT|VA|WA={{Infobox road/name/USA/StateName|{{{state}}}}} State Route {{{route}}}
  |CO|ID|MN|OK|TX={{StateName|{{{state}}}}} State Highway {{{route}}}
+
  |CO|ID|MN|OK|TX={{Infobox road/name/USA/StateName|{{{state}}}}} State Highway {{{route}}}
  |FL|IN|NM={{StateName|{{{state}}}}} State Road {{{route}}}
+
  |FL|IN|NM={{Infobox road/name/USA/StateName|{{{state}}}}} State Road {{{route}}}
  |AS|AR|GU|IA|LA|MS|MT|NE|NC|ND|PR|SC|SD|VI|WI|WY={{StateName|{{{state}}}}} Highway {{{route}}}
+
  |AS|AR|GU|IA|LA|MS|MT|NE|NC|ND|PR|SC|SD|VI|WI|WY={{Infobox road/name/USA/StateName|{{{state}}}}} Highway {{{route}}}
 
  |MI=M-{{{route}}} ({{#if:{{{dab|}}}|{{{dab}}} Michigan highway|Michigan highway}})
 
  |MI=M-{{{route}}} ({{#if:{{{dab|}}}|{{{dab}}} Michigan highway|Michigan highway}})
 
  |KS=K-{{{route}}} (Kansas highway)
 
  |KS=K-{{{route}}} (Kansas highway)
  |QR=State Route {{{num}}} ({{{county}}} County, {{StateName{{{state}}}}})
+
  |QR=State Route {{{num}}} ({{{county}}} County, {{Infobox road/name/USA/StateName{{{state}}}}})
  |#default={{StateName|{{{state}}}}} Route {{{route}}}
+
  |#default={{Infobox road/name/USA/StateName|{{{state}}}}} Route {{{route}}}
 
  }}
 
  }}
 
|Sec|Secondary={{#switch:{{{state}}}
 
|Sec|Secondary={{#switch:{{{state}}}
  |MT={{StateName|{{{state}}}}} Secondary Highway {{{route}}}
+
  |MT={{Infobox road/name/USA/StateName|{{{state}}}}} Secondary Highway {{{route}}}
  |TN={{StateName|{{{state}}}}} State Route {{{route}}}
+
  |TN={{Infobox road/name/USA/StateName|{{{state}}}}} State Route {{{route}}}
 
  }}
 
  }}
 
|CR={{#switch:{{{state}}}
 
|CR={{#switch:{{{state}}}
  |CA=County Route {{{route}}} ({{StateName|{{{state}}}}})
+
  |CA=County Route {{{route}}} ({{Infobox road/name/USA/StateName|{{{state}}}}})
 
  |NJ=County Route {{{route}}} ({{#switch:{{{county}}}
 
  |NJ=County Route {{{route}}} ({{#switch:{{{county}}}
 
   |Bergen|Monmouth={{{county}}} County, New Jersey
 
   |Bergen|Monmouth={{{county}}} County, New Jersey
   |#default={{#ifexpr:{{{route}}}>=500 and {{{route}}}<600|{{StateName|{{{state}}}}}|{{{county}}} County, {{StateName|{{{state}}}}}}}}})
+
   |#default={{#ifexpr:{{{route}}}>=500 and {{{route}}}<600|{{Infobox road/name/USA/StateName|{{{state}}}}}|{{{county}}} County, {{Infobox road/name/USA/StateName|{{{state}}}}}}}}})
  |#default=County Route {{{route}}} ({{{county}}} County, {{StateName|{{{state}}}}})
+
  |#default=County Route {{{route}}} ({{{county}}} County, {{Infobox road/name/USA/StateName|{{{state}}}}})
 
  }}
 
  }}
 
|CDH={{{route}}} (Michigan county highway)
 
|CDH={{{route}}} (Michigan county highway)
Line 33: Line 33:
 
|Parkway={{{route}}} Parkway
 
|Parkway={{{route}}} Parkway
 
|Ranch|RM=Ranch to Market Road {{{route}}}
 
|Ranch|RM=Ranch to Market Road {{{route}}}
|Rec|RE={{StateName|{{{state}}}}} Recreational Road {{{route}}}
+
|Rec|RE={{Infobox road/name/USA/StateName|{{{state}}}}} Recreational Road {{{route}}}
 
|Spur={{#switch:{{{state}}}
 
|Spur={{#switch:{{{state}}}
 
  |NE=Nebraska Spur {{{route}}}
 
  |NE=Nebraska Spur {{{route}}}

Revision as of 01:41, 13 June 2017