Module:Infobox road/route/doc: Difference between revisions

Content deleted Content added
save
top: Added a test example
Tags: Mobile edit Mobile app edit Android app edit App full source
 
(5 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}}
<div style="margin-left:0"><!-- NOTE: width renders incorrectly if added to main STYLE section -->
{| <!-- Template:Collapse top --> class="<!-- mw-collapsible mw-collapsed --> " style="background: transparent; text-align: left; border: 1px solid Silver; margin: 0.2em auto auto; width:100%; clear: both; padding: 1px;"
|-
! style="background: #{{main other|F0F2F5|CCFFCC}}; font-size:87%; padding:0.2em 0.3em; text-align:center; " | <div style="display:inline;font-size:115%">Output examples</div>
 
|-
| style="border: solid 1px Silver; padding: 0.6em; background: White;" |
{|class=wikitable width="100%" style="text-align:center; font-size:112.5%; font-weight:bold;" border=1 align=center
|-
Line 14 ⟶ 8:
!width="40%"|Output (sandbox)
|-
|Florida Both (current output)
|{{#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}}
|-
|Florida Both (intended output)
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=FL|type=Both|route=869|marker_image=[[File:Toll Florida 869.svg|70px]] [[File:Florida 869.svg|x70px]]}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=FL|type=Both|route=869|marker_image=[[File:Toll Florida 869.svg|70px]] [[File:Florida 869.svg|x70px]]}}
|-
|No parameters
Line 154 ⟶ 144:
|{{#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=infoboxsmall|state=MI|type=US-Bus|route=131}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infoboxsmall|state=MI|type=US-Bus|route=131}}
|-
|Alaska {{para|marker_image}}
Line 191 ⟶ 181:
|-
|Parish road
|{{#invoke:Infobox road/route|routeInfo|style=infobox|state=LA|type=PR|route=16|countyparish=Caddo}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|state=LA|type=PR|route=16|countyparish=Caddo}}
|-
|CSAH
Line 221 ⟶ 211:
|{{#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|statecountry=FLUSA|type=BothUS-Old|route=869|marker_image=[[File:Toll Florida 869.svg|70px]] [[File:Florida 869.svg|x70px]]91}}
|{{#invoke:Infobox road/route/sandbox|routeInfo|style=infobox|statecountry=FLUSA|type=BothUS-Old|route=869|marker_image=[[File:Toll Florida 869.svg|70px]] [[File:Florida 869.svg|x70px]]91}}
|-
|}
{{collapse bottom}}<noinclude>
|}</div>
[[Category:Module documentation pages]]
</noinclude>