Difference between revisions of "Template:Infobox ski area"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.)
imported>Jonesey95
(Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.)
Line 13: Line 13:
 
   | alt      = {{{pushpin_map_alt|}}}
 
   | alt      = {{{pushpin_map_alt|}}}
 
   | coordinates = {{{coordinates|}}}
 
   | coordinates = {{{coordinates|}}}
  | lat      = {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|{{{latitude|<noinclude>32</noinclude>}}}}}} }}
 
  | long    = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|{{{longitude|<noinclude>80</noinclude>}}}}}} }}
 
  | lat_deg  = {{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}}}
 
  | lat_min  = {{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}}}
 
  | lat_sec  = {{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}}}
 
  | lat_dir  = {{#if:{{{latNS|}}}|{{{latNS|}}}}}
 
  | lon_deg  = {{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}}}
 
  | lon_min  = {{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}}}
 
  | lon_sec  = {{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}}}
 
  | lon_dir  = {{#if:{{{longEW|}}}|{{{longEW|}}}}}
 
 
   | float    = center
 
   | float    = center
 
   | caption  = {{ifempty|{{{map_caption|}}}|Location within {{#invoke:Location map|data|{{{pushpin_map}}}|name}}}}
 
   | caption  = {{ifempty|{{{map_caption|}}}|Location within {{#invoke:Location map|data|{{{pushpin_map}}}|name}}}}
Line 43: Line 33:
  
 
| label3    = [[Geographic coordinate system|Coordinates]]
 
| label3    = [[Geographic coordinate system|Coordinates]]
| data3    = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark|scale:50000}}|{{#if:{{both|{{{lat_degrees|{{{latd|}}}}}}|{{{long_degrees|{{{longd|}}}}}}}}<!--
+
| data3    = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark|scale:50000}} }}
  -->|[[Category:Pages using deprecated coordinates format|ski area]]{{Coord|{{{lat_degrees|{{{latd|}}}}}}|{{{lat_minutes|{{{latm|}}}}}}|{{{lat_seconds|{{{lats|}}}}}}|{{{lat_direction|{{{latNS|}}}}}}|{{{long_degrees|{{{longd|}}}}}}|{{{long_minutes|{{{longm|}}}}}}|{{{long_seconds|{{{longs|}}}}}}|{{{long_direction|{{{longEW|}}}}}}|{{{coordinates_type|type:landmark_scale:50000}}}|display=inline{{#if:{{{coordinates_display|}}}|,title}}|name={{{name}}} }}<!--
 
  -->}} }}
 
  
 
| label4    = Vertical
 
| label4    = Vertical
Line 94: Line 82:
 
| label17  = Website
 
| label17  = Website
 
| data17  = {{#if:{{{website|{{{external_link|}}}}}}|<span class="url">{{{website|{{{external_link}}}}}}</span>}}
 
| data17  = {{#if:{{{website|{{{external_link|}}}}}}|<span class="url">{{{website|{{{external_link}}}}}}</span>}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox ski area with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox ski area]] with unknown parameter "_VALUE_"|ignoreblank=y| base_elevation | caption | coordinates | coordinates_display | coordinates_type | external_link | image | image_alt | lat_degrees | lat_direction | lat_minutes | lat_seconds | latd | latitude | latm | latNS | lats | lift_capacity | liftsystem | location | logo | logo_alt | logo_dimensions | logo_width | logodimensions | long_degrees | long_direction | long_minutes | long_seconds | longd | longest_run | longEW | longitude | longm | longs | map_caption | map_size | name | nearest_city | nightskiing | number_trails | picture | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_label | pushpin_relief | skiable_area | snowfall | snowmaking | terrainparks | top_elevation | total_length | vertical | website }}<noinclude>{{Documentation}}
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox ski area with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox ski area]] with unknown parameter "_VALUE_"|ignoreblank=y| base_elevation | caption | coordinates | external_link | image | image_alt | lift_capacity | liftsystem | location | logo | logo_alt | logo_dimensions | logo_width | logodimensions | longest_run | map_caption | map_size | name | nearest_city | nightskiing | number_trails | picture | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_label | pushpin_relief | skiable_area | snowfall | snowmaking | terrainparks | top_elevation | total_length | vertical | website }}<noinclude>{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 05:38, 12 June 2017

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox ski area
| name           = 
| logo           = 
| logo_width     = <!--Default is 150px-->
| picture        = 
| caption        = 
| owner          =
| location       = Name of mountain
| nearest_city   = Nearest major city
| coordinates    = {{coord|lat|long|region:ZZ|display=inline,title}}
| pushpin_map    =
| pushpin_relief = y
| vertical       = {{convert|X|m|abbr=on}} or {{convert|X|ft|abbr=on}}
| top_elevation  = {{convert|X|m|abbr=on}} or {{convert|X|ft|abbr=on}}
| base_elevation = {{convert|X|m|abbr=on}} or {{convert|X|ft|abbr=on}}
| skiable_area   = {{convert|X|ha|abbr=on}} or {{convert|X|acre|abbr=on}}
| number_trails  = 
| longest_run    = {{convert|X|km|abbr=on}} or {{convert|X|mi|abbr=on}}
| total_length   = {{convert|X|km|abbr=on}} or {{convert|X|mi|abbr=on}}
| liftsystem     = 
| lift_capacity  = passengers/hour
| terrainparks   = 
| snowfall       = {{convert|X|cm|in}} or {{convert|X|in|cm}}
| snowmaking     = 
| nightskiing    = 
| external_link  =
}}
Where ZZ is the location's region code from ISO 3166-1.

Microformat

Template:UF-hcard-geo

Tracking category