Difference between revisions of "Template:Infobox aerial lift line/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>WOSlinker
(sync)
 
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
| bodyclass  = vcard
 
| bodyclass  = vcard
| bodystyle  =
 
  width: {{{box_width|25em}}};
 
  font-size: 90%
 
  
 
<!-- Header -->
 
<!-- Header -->
 
| aboveclass  = fn
 
| aboveclass  = fn
| abovestyle  =  
+
| abovestyle  = background-color: {{#if: {{{line_color|}}}
  color: {{#if: {{{font_color|}}}|{{{font_color|}}}|
+
  |{{{line_color|}}}; color:{{Greater color contrast ratio|{{{line_color|}}}|black|white}}
{{#if: {{{line_color|}}}|&#35;000000|{{#if: {{{lift_type|}}}|&#35;FFFFFF|&#35;000000}}}}}};
+
  |{{#if: {{{lift_type|}}}
  background-color: {{#if: {{{line_color|}}}|{{{line_color|}}}|{{#if: {{{lift_type|}}}|{{Infobox aerial lift line/color|{{{lift_type|}}}}}|&#35;F8DE7E}}}}
+
    |{{Infobox aerial lift line/color|{{{lift_type|}}}}}; color:{{Greater color contrast ratio|{{Infobox aerial lift line/color|{{{lift_type|}}}}}|black|white}}
| above      = {{{line_name|{{PAGENAME}}}}}{{#if: {{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}><br /><small>{{{native_name}}}</small></span>}}
+
    |&#35;F8DE7E}}
 +
  }}
 +
 
 +
| headerstyle = background-color: {{#if: {{{line_color|}}}
 +
  |{{{line_color|}}}; color:{{Greater color contrast ratio|{{{line_color|}}}|black|white}}
 +
  |{{#if: {{{lift_type|}}}
 +
    |{{Infobox aerial lift line/color|{{{lift_type|}}}}}; color:{{Greater color contrast ratio|{{Infobox aerial lift line/color|{{{lift_type|}}}}}|black|white}}
 +
    |&#35;F8DE7E}}
 +
  }}
 +
 
 +
| above      = {{{name|{{{line_name|{{PAGENAMEBASE}}}}}}}}{{#if: {{{native_name|}}}|<br><span style="font-size:85%" class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|border=yes|alt={{{image_alt|{{{alt|}}}}}}}}
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|border=yes|alt={{{image_alt|{{{alt|}}}}}}}}
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
  
| image2      = {{#if: {{{map_image|}}}|<center>{{Location map|{{{map_image|}}}
+
| image2     = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{image_map_size|}}}|alt={{{image_map_alt|}}}}}
 +
| caption2    = {{{image_map_caption|}}}
 +
 
 +
| image3     = {{#if: {{{map_image|}}}
 +
|{{Location map|{{{map_image|}}}
 
  |relief  = {{{relief|}}}
 
  |relief  = {{{relief|}}}
 
  |alt    = {{{map_alt|}}}
 
  |alt    = {{{map_alt|}}}
  |lat    = {{#if: {{{latm|}}}{{{latNS|}}}||{{{lat|{{{latitude|{{{latd|}}}}}}}}}}}
+
  |coordinates = {{{coordinates|}}}
|long    = {{#if: {{{longm|}}}{{{longEW|}}}||{{{long|{{{longitude|{{{longd|}}}}}}}}}}}
 
|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
 
  |mark    = Pictogram Cable Car small.svg
 
  |mark    = Pictogram Cable Car small.svg
 
  |marksize= 15
 
  |marksize= 15
 
  |label  = {{{map dot label|{{{map_dot_label|}}}}}}
 
  |label  = {{{map dot label|{{{map_dot_label|}}}}}}
  |border  = none
+
  |border  = infobox
  |caption = <center>{{{map_text|{{{map_caption|Location within {{{map_image}}}}}}}}}</center>
+
  |caption =  
 
  |width  = {{{map_width|{{{map_size|}}}}}}
 
  |width  = {{{map_width|{{{map_size|}}}}}}
}}</center>|{{#if: {{{image_map|}}}|[[File:{{{image_map|}}}|center|{{px|{{{map_width|{{{map_size|}}}}}}|frameless}}|alt={{{map_alt|}}}]]}}}}
+
}} }}
| caption2    = {{#if: {{{map_image|}}}
+
| caption3  = {{{map_text|{{{map_caption|Location within {{{map_image}}}}}}}}}
|
 
|{{{map_text|{{{map_caption|}}}}}}
 
}}
 
  
 
<!-- Overview -->
 
<!-- Overview -->
 
| header1    = {{#if: {{{status|}}}{{{character|}}}{{{system|}}}{{{line_no|}}}{{{location|}}}{{{country|}}}{{{coord|}}}{{{start|}}}{{{end|}}}{{{elev_low|}}}{{{elev_high|}}}{{{cont_from|}}}{{{cont_as|}}}{{{connect_lines|}}}{{{no_stations|}}}{{{services|}}}{{{built_by|}}}{{{constr_cost|}}}{{{begin|}}}{{{open|}}}{{{last_ext|}}}{{{close|}}}{{{reopen|}}}|Overview}}
 
| header1    = {{#if: {{{status|}}}{{{character|}}}{{{system|}}}{{{line_no|}}}{{{location|}}}{{{country|}}}{{{coord|}}}{{{start|}}}{{{end|}}}{{{elev_low|}}}{{{elev_high|}}}{{{cont_from|}}}{{{cont_as|}}}{{{connect_lines|}}}{{{no_stations|}}}{{{services|}}}{{{built_by|}}}{{{constr_cost|}}}{{{begin|}}}{{{open|}}}{{{last_ext|}}}{{{close|}}}{{{reopen|}}}|Overview}}
| headerstyle =
 
  color: {{#if: {{{font_color|}}}|{{{font_color|}}}|
 
{{#if: {{{line_color|}}}|&#35;000000|{{#if: {{{lift_type|}}}|&#35;FFFFFF|&#35;000000}}}}}};
 
  background-color: {{#if: {{{line_color|}}}|{{{line_color|}}}|{{#if: {{{lift_type|}}}|{{Infobox aerial lift line/color|{{{lift_type|}}}}}|&#35;F8DE7E}}}}
 
  
 
| data2      = {{{alt_name|}}}
 
| data2      = {{{alt_name|}}}
Line 60: Line 55:
 
| data5      = {{{system|}}}
 
| data5      = {{{system|}}}
  
| label6      = Line number
+
| label6      = Line {{abbr|no.|number}}
 
| data6      = {{{line_no|}}}
 
| data6      = {{{line_no|}}}
  
Line 70: Line 65:
  
 
| label9    = Coordinates
 
| label9    = Coordinates
| data9      = {{#if: {{both|{{{lat|{{{latitude|{{{latd|}}}}}}}}}|{{{long|{{{longitude|{{{longd|}}}}}}}}} }}|
+
| data9      = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}}
{{Geobox coor|{{{lat|{{{latitude|{{{latd|}}}}}}}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{long|{{{longitude|{{{longd|}}}}}}}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|type:landmark{{#if: {{{coord_region|{{{iso_region|}}}}}}|_region:{{{coord_region|{{{iso_region}}}}}} }}|{{#if:{{{coordinates_display|}}}|title|μ}}={{{coordinates_display|}}}|format={{{coordinates_format|}}}}}|{{{coordinates|}}}}}
 
  
 
| label10    = Termini
 
| label10    = Termini
Line 88: Line 82:
 
| data14      = {{{connect_lines|}}}
 
| data14      = {{{connect_lines|}}}
  
| label15    = No. of stations
+
| label15    = {{abbr|No.|Number}} of stations
 
| data15      = {{{no_stations|}}}
 
| data15      = {{{no_stations|}}}
  
Line 127: Line 121:
 
| data33      = {{{operator|}}}
 
| data33      = {{{operator|}}}
  
| label34    = No. of carriers
+
| label34    = {{abbr|No.|Number}} of carriers
 
| data34      = {{{no_carriers|}}}
 
| data34      = {{{no_carriers|}}}
  
Line 163: Line 157:
 
| data54      = {{{line_length|}}}
 
| data54      = {{{line_length|}}}
  
| label55    = No. of support towers
+
| label55    = {{abbr|No.|Number}} of support towers
 
| data55      = {{{no_towers|}}}
 
| data55      = {{{no_towers|}}}
  
| label56    = No. of cables
+
| label56    = {{abbr|No.|Number}} of cables
 
| data56      = {{{no_cables|}}}
 
| data56      = {{{no_cables|}}}
  
Line 178: Line 172:
 
| data59      = {{{speed|}}}
 
| data59      = {{{speed|}}}
  
 +
| label60    = Notes
 
| data60      = {{{notes|}}}
 
| data60      = {{{notes|}}}
 +
 +
| label61    = Vertical Interval
 +
| data61      = {{{vertical|}}}
 +
 +
| label62    = Maximum Gradient
 +
| data62      = {{{max_gradient|}}}
  
 
| belowstyle  = vertical-align: middle; padding:0px;
 
| belowstyle  = vertical-align: middle; padding:0px;

Latest revision as of 22:09, 5 June 2017