Template:State

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

This template can be used to show mapping state icons.

It includes {{State Entry NA}} for each feature type of state.

Usage

{{State| g=''generic'' | l=''Labelled'' | c=''Car'' | b=''Bike'' | fo=''Foot'' | d=''Disabilities'' | p=''Public'' | fu=''Fuel'' | r=''Restaurant''  | ho=''hotel'' | co=''Commerce'' | t=''Tourist'' | n=''Nature'' | w=''Water'' | f=''Forest'' | h=''Housenumbers''| pa=''Parking'' | tr=''Transport'' | tn=''Train'' | ug=''Underground'' | mr=''Monorail'' | s=''S-Bahn'' | u=''U-Bahn'' | st=''Steamtrain'' | tm=''Tram'' | bu=''Bus'' | sh=''Ship''  | ha=''Haltestelle'' | ex=''Exit'' | se=''Service Area'' | ju=''Junction'' | ln=''Lane'' | sp=''Speed'' | de=''Detours'' | tmc=''TMC'' | lit=''Lit'' | ru=''Routing'' | w=''water'' | rl=''Relation'' | sos=''SOS''}}
  • You can use some of the above status icons by defining the vars you want to use.
  • The order of the shown icons is fixed, everything else is possible.

Examples

What you want
(width="390")
What you type
 
{{State|l=|c=|b=|fo=|tr=}}
{{State|g=|l=|c=|b=|fo=|d=|tr=|p=|fu=|r=|co=|ho=|t=|n=|w=|f=|h=|tn=|ug=|mr=|s=|u=|st=|tm=|bu=|sh=|ha=|ex=|se=|ju=|ln=|sp=|de=|tmc=|lit=|ru=|rl=|sos=}}
Bike (3/4)Foot (2/4)Tourist (1/4)House numbers (2/4) {{State|b=3|fo=2|t=1|n=|h=2}}
Labelled (4/4)Car (3/4)Bike (2/4)Foot (1/4)Fuel (X/4)Transport (1/4) {{State|l=4|c=3|b=2|fo=1|tr=1|p=|fu=X|r=|t=|n=}}
Labelled (4/4)Bike (2/4)Foot (3/4)Nature (1/4)House numbers (3/4)Transport (2/4) {{State|l=4|b=2|fo=3|tr=2|n=1|h=3}}
LabelledBikeFuelShipSpeed {{State|l=NA|b=NA|sp=NA|fu=NA|sh=NA}}
State .svgLabelledCarBikeFootDisabilitiesPublicFuelCommerceRestaurantHotelTouristNatureWaterForestHouse numbersParkingTransportTrainUndergroundMonorailS-BahnU-BahnSteam TrainTramBusShipStopExitService StationExit NumberLanesSpeedDetoursTraffic Message ChannelLitRoutingWaterRelationEmergency phone {{State|g=NA|l=NA|c=NA|b=NA|fo=NA|d=NA|p=NA|fu=NA|r=NA|ho=NA|co=NA|t=NA|n=NA|w=NA|f=NA|h=NA|pa=NA|tr=NA|tn=NA |ug=NA|mr=NA|s=NA|u=NA|st=NA|tm=NA|bu=NA|sh=NA|ha=NA|ex=NA|se=NA|ju=NA|ln=NA|sp=NA|de=NA|tmc=NA|lit=NA|ru=NA|rl=NA|sos=NA}}

See also

and all other thingsedit from Category:Map status.