Content deleted Content added
→Output examples: collapse |
→top: Added a test example Tags: Mobile edit Mobile app edit Android app edit App full source |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1:
This module pulls data from road data strings, such as [[Module:Road data/strings/USA]], and passes it through three functions that draw the necessary route marker images and displays the route name in {{tlx|Infobox road}}.
{{collapse top|title=Output examples}}
{|class=wikitable width="100%" style="text-align:center; font-size:112.5%; font-weight:bold;" border=1 align=center
|-
!Description
!width="40%"|Output
!width="40%"|Output (sandbox)
|-
|Florida Both
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=FL|type=Both|route=869}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=FL|type=Both|route=869}}
|-
|No parameters
|{{#invoke:Infobox road/route|routeInfo|style=infobox}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox}}
|-
|Only {{para|marker_image}}
|{{#invoke:Infobox road/route|routeInfo|style=infobox|marker_image=[[File:US 66 (1961 cutout).svg|x70px]]}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|marker_image=[[File:US 66 (1961 cutout).svg|x70px]]}}
|-
|Florida {{para|marker_image|none}}
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=FL|type=FL|route=A1A|marker_image=none}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=FL|type=FL|route=A1A|marker_image=none}}
|-
|Only {{para|name}}
|{{#invoke:Infobox road/route|routeInfo|style=infobox|name=Autoroute 10}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|name=Autoroute 10}}
|-
|Australia
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=AUS|type=N|route=31}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=AUS|type=N|route=31}}
|-
|New Zealand
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=NZL|type=SH|route=2}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=NZL|type=SH|route=2}}
|-
|Interstate {{para|name}}
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=TX|type=I|route=10|name=Motorway 10}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=TX|type=I|route=10|name=Motorway 10}}
|-
|Interstate (Infobox road small)
|{{#invoke:Infobox road/route|routeInfo|style=small|state=NH|type=I|route=95}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=small|state=NH|type=I|route=95}}
|-
|France
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=FRA|type=A|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=FRA|type=A|route=1}}
|-
|UK
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=GBR|type=A|route=303}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=GBR|type=A|route=303}}
|-
|Brazil
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=BRA|type=SP|route=52}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=BRA|type=SP|route=52}}
|-
|Chile
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CHL|type=CH|route=5}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CHL|type=CH|route=5}}
|-
|BC
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=BC|type=BC|route=16}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=BC|type=BC|route=16}}
|-
|Saskatchewan
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=SK|type=Mun|route=600}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=SK|type=Mun|route=600}}
|-
|Quebec
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=QC|type=A|route=35}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=QC|type=A|route=35}}
|-
|Ontario
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=ON|type=Toll|route=407}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=ON|type=Toll|route=407}}
|-
|ON Secondary
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=ON|type=Sec|route=522}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=ON|type=Sec|route=522}}
|-
|ON Tertiary
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=ON|type=Ter|route=800}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=ON|type=Ter|route=800}}
|-
|NWT
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=NT|type=Hwy|route=10}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=NT|type=Hwy|route=10}}
|-
|Manitoba
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=CAN|state=MB|type=MB|route=3}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=CAN|state=MB|type=MB|route=3}}
|-
|Tennessee Dual
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=TN|type=Dual|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=TN|type=Dual|route=1}}
|-
|DE/MD Dual
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=DE|type=DEMD|route=54}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=DE|type=DEMD|route=54}}
|-
|Puerto Rico type=PR
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=PR|type=PR|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=PR|type=PR|route=1}}
|-
|Puerto Rico type=Urban
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=PR|type=Urban|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=PR|type=Urban|route=1}}
|-
|Wisconsin
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=WI|type=WI|route=243}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=WI|type=WI|route=243}}
|-
|North Carolina
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=NC|type=NC|route=106}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=NC|type=NC|route=106}}
|-
|Nevada BLSR
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=NV|type=BLSR|route=660}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=NV|type=BLSR|route=660}}
|-
|Utah BLSR
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=UT|type=BLSR|route=120}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=UT|type=BLSR|route=120}}
|-
|Texas Both
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=TX|type=Both|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=TX|type=Both|route=1}}
|-
|Texas tollway
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=TX|type=Toll|route=PGBT}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=TX|type=Toll|route=PGBT}}
|-
|1926 USH
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=CT|type=US 1926|route=6}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=CT|type=US 1926|route=6}}
|-
|1948 USH
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=CA|type=US 1948|route=40}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=CA|type=US 1948|route=40}}
|-
|Special route
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=AL|type=US-Bus|route=78}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=AL|type=US-Bus|route=78}}
|-
|Special route (style=small)
|{{#invoke:Infobox road/route|routeInfo|style=small|state=MI|type=US-Bus|route=131}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=small|state=MI|type=US-Bus|route=131}}
|-
|Alaska {{para|marker_image}}
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=AK|type=AK|route=2|marker_image=[[File:Circle sign 2.svg|x70px]]}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=AK|type=AK|route=2|marker_image=[[File:Circle sign 2.svg|x70px]]}}
|-
|DC
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=DC|type=DC|route=295}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=DC|type=DC|route=295}}
|-
|Mexico
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=MEX|type=FH|route=40D}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=MEX|type=FH|route=40D}}
|-
|Sonora
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=MEX|state=SON|type=SH|route=149}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=MEX|state=SON|type=SH|route=149}}
|-
|GRR
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=USA|type=GRR}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=USA|type=GRR}}
|-
|Tour
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=USA|type=Tour|route=LMCT}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=USA|type=Tour|route=LMCT}}
|-
|Turnpike
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=KS|type=KSTP}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=KS|type=KSTP}}
|-
|County road
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=IA|type=CR|route=Z36|county=Clinton}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=IA|type=CR|route=Z36|county=Clinton}}
|-
|Parish road
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=LA|type=PR|route=16|
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=LA|type=PR|route=16|parish=Caddo}}
|-
|CSAH
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=MN|type=CSAH|route=81|county=Hennepin}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=MN|type=CSAH|route=81|county=Hennepin}}
|-
|Secondary
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=MT|type=Sec|route=206}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=MT|type=Sec|route=206}}
|-
|Supplemental
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=MO|type=Supp|route=BB}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=MO|type=Supp|route=BB}}
|-
|Oregon
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=OR|type=OR|route=35}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=OR|type=OR|route=35}}
|-
|Oregon Highway
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=OR|type=Hwy|route=5}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=OR|type=Hwy|route=5}}
|-
|Belgium
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=BEL|type=N|route=1}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=BEL|type=N|route=1}}
|-
|Belgium
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=BEL|type=E|route=19}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=BEL|type=E|route=19}}
|-
|Old Highway 91
|{{#invoke:Infobox road/route|routeInfo|style=infobox|country=USA|type=US-Old|route=91}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|country=USA|type=US-Old|route=91}}
|-
|}
{{collapse bottom}}<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|