Template:Infobox dam: Difference between revisions

Content deleted Content added
improve embedding
No edit summary
Line 1:
{{Infobox
| bodyclass = vcard
| child = {{{child|{{{embed|}}}}}}
| above = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|| {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} }}
| aboveclass = fn org
| abovestyle = background-color:skyblue;
| headerstyle = background-color:skyblue;
| title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{name|}}}|<div style="background-color:skyblue;font-weight:bold">{{{name}}}</div>}}}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{image_alt|}}}}}
| caption = {{{image_caption|}}}
 
| image2 = {{#if:{{{location_map|}}}|{{#if:{{both|{{{lat_d|}}}|{{{long_d|}}}}}|{{Location map|{{{location_map}}}
| relief = {{yesno|{{{location_map_relief|{{{relief|yes}}}}}}|no=|def=yes}}
| lat_deg = {{#if:{{{lat_m|}}}{{{lat_NS|}}}|{{{lat_d|}}}| }}
| lat_min = {{#if:{{{lat_m|}}}{{{lat_NS|}}}|{{{lat_m|}}}| }}
| lat_sec = {{#if:{{{lat_s|}}}{{{lat_NS|}}}|{{{lat_s|}}}| }}
| lat_dir = {{#if:{{{lat_NS|}}}|{{{lat_NS|}}}| }}
| lon_deg = {{#if:{{{long_m|}}}{{{long_EW|}}}|{{{long_d|}}}| }}
| lon_min = {{#if:{{{long_m|}}}{{{long_EW|}}}|{{{long_m|}}}| }}
| lon_sec = {{#if:{{{long_s|}}}{{{long_EW|}}}|{{{long_s|}}}| }}
| lon_dir = {{#if:{{{long_EW|}}}|{{{long_EW|}}}| }}
| lat = {{#if:{{{lat_m|}}}{{{lat_NS|}}}| |{{{lat_d|}}} }}
| long = {{#if:{{{long_m|}}}{{{long_EW|}}}| |{{{long_d|}}} }}
| float = center
| width = {{{location_map_size|}}}
| default_width = 235
| alt = {{{location_map_alt|}}}
| caption = }}}}}}
| caption2 = {{#if:{{{location_map_caption|}}}|{{{location_map_caption|}}}|Location of {{{name|{{PAGENAME}}}}} in {{{location_map|}}}}}
 
|label1 label1 = Official name
|data1 data1 = {{{name_official|}}}
 
|label2 label2 = Country
|data2 data2 = {{{country|}}}
 
|label3 label3 = Location
|data3 data3 = {{{location|}}}
 
|label4 label4 = Coordinates
|data4 data4 = {{#if:{{both|{{{lat_d|}}}|{{{long_d|}}}}}| <small>{{geobox coor|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}}|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}}|{{#if:{{{coordinates_type|}}}|{{{coordinates_type}}}|type:landmark}}|format={{{coordinates_format|}}}|wrap=true|title={{#ifeq:{{{coordinates_display}}}|inline||1}}}}{{{coordinates_ref|}}}</small> }}
 
|label5 label5 = Purpose
|data5 data5 = {{#switch:{{uc:{{{purpose|}}}}}
|F=[[Flood control]]
|I=[[Irrigation]]
Line 51:
}}
 
|label6 label6 = Status
|data6 data6 = {{#switch:{{uc:{{{status|}}}}}
|D=Decommissioned
|O=Operational
Line 61:
}}
 
|label7 label7 = Construction&nbsp;began
|data7 data7 = {{{construction_began|}}}
 
|label8 label8 = Opening&nbsp;date
|data8 data8 = {{{opening|}}}
 
|label9 label9 = Demolition&nbsp;date
|data9 data9 = {{{demolished|}}}
 
|label10 label10 = Construction&nbsp;cost
|data10 data10 = {{{cost|}}}
 
|label11 label11 = Owner(s)
|data11 data11 = {{{owner|}}}
 
|label12 label12 = Operator(s)
|data12 data12 = {{{operator|}}}
 
|header13 header13 = {{#if:{{{dam_type|}}}{{{dam_crosses|}}}{{{dam_height|}}}{{{dam_height_foundation|}}}{{{dam_height_thalweg|}}}{{{dam_length|}}}{{{dam_elevation_crest|}}}{{{dam_width_crest|}}}{{{dam_width_base|}}}{{{dam_volume|}}}{{{spillway_count|}}}{{{spillway_type|}}}{{{spillway_capacity|}}}|Dam and spillways}}
 
|label14 label14 = [[Dam#Types of dams|Type&nbsp;of&nbsp;dam]]
|data14 data14 = {{#switch:{{uc:{{{dam_type|}}}}}
|A=[[Arch dam]]
|B=[[Barrage (dam)|Barrage]]
Line 93:
}}
 
|label15 label15 = Impounds
|data15 data15 = {{{dam_crosses|}}}
 
|label16 label16 = Height<!-- DEPRECIATED. If possible, please use one or more specific height fields below -->
|data16 data16 = {{{dam_height|}}}
 
|label17 label17 = Height&nbsp;(foundation)
|data17 data17 = {{{dam_height_foundation|}}}
 
|label18 label18 = Height&nbsp;([[thalweg]])
|data18 data18 = {{{dam_height_thalweg|}}}
 
|label19 label19 = Length
| data19 = {{{dam_length|}}}
 
|label20 label20 = Elevation&nbsp;at&nbsp;crest
|data20 data20 = {{{dam_elevation_crest|}}}
 
|label21 label21 = Width&nbsp;(crest)
|data21 data21 = {{{dam_width_crest|}}}
 
|label22 label22 = Width&nbsp;(base)
|data22 data22 = {{{dam_width_base|}}}
 
|label23 label23 = Dam&nbsp;volume
|data23 data23 = {{{dam_volume|}}}
 
|label24 label24 = [[Spillway]]s
|data24 data24 = {{{spillway_count|}}}
 
|label25 label25 = Spillway&nbsp;type
|data25 data25 = {{{spillway_type|}}}
 
|label26 label26 = Spillway&nbsp;capacity
|data26 data26 = {{{spillway_capacity|}}}
 
|header27 header27 = {{#if:{{{res_name|}}}{{{res_capacity_total|}}}{{{res_capacity_active|}}}{{{res_capacity_inactive|}}}{{{res_catchment|}}}{{{res_surface|}}}{{{res_max_length|}}}{{{res_max_width|}}}{{{res_max_depth|}}}{{{res_elevation|}}}{{{res_tidal_range|}}}|Reservoir}}
 
|label28 label28 = Creates
|data28 data28 = {{{res_name|}}}
 
|label29 label29 = Total&nbsp;capacity
|data29 data29 = {{{res_capacity_total|}}}
 
|label30 label30 = Active&nbsp;capacity
|data30 data30 = {{{res_capacity_active|}}}
 
|label31 label31 = Inactive&nbsp;capacity
|data31 data31 = {{{res_capacity_inactive|}}}
 
|label32 label32 = [[Drainage basin|Catchment&nbsp;area]]
|data32 data32 = {{{res_catchment|}}}
 
|label33 label33 = Surface&nbsp;area
|data33 data33 = {{{res_surface|}}}
 
|label34 label34 = Max.&nbsp;length
|data34 data34 = {{{res_max_length|}}}
 
|label35 label35 = Max.&nbsp;width
|data35 data35 = {{{res_max_width|}}}
 
|label36 label36 = Max.&nbsp;water&nbsp;depth
|data36 data36 = {{{res_max_depth|}}}
 
|label37 label37 = Normal&nbsp;elevation
|data37 data37 = {{{res_elevation|}}}
 
|label38 label38 = [[Tidal range|Tidal&nbsp;range]]
|data38 data38 = {{{res_tidal_range|}}}
 
|header39 header39 = {{#if:{{{plant_name|}}}{{both|{{{plant_lat_d|}}}|{{{plant_long_d|}}}}}{{{plant_operator|}}}{{{plant_commission|}}}{{{plant_decommission|}}}{{{plant_type|}}}{{{plant_hydraulic_head|}}}{{{plant_turbines|}}}{{{plant_capacity|}}}{{{plant_capacity_factor|}}}{{{plant_annual_gen|}}}|Power station}}
 
|label40 label40 = Name
|data40 data40 = {{{plant_name|}}}
 
|label41 label41 = Coordinates
|data41 data41 = {{#if:{{both|{{{plant_lat_d|}}}|{{{plant_long_d|}}}}} | <small>{{geobox coor|{{{plant_lat_d|}}}|{{{plant_lat_m|}}}|{{{plant_lat_s|}}}|{{{plant_lat_NS|}}}|{{{plant_long_d|}}}|{{{plant_long_m|}}}|{{{plant_long_s|}}}|{{{plant_long_EW|}}}|{{#if:{{{plant_coord_type|}}}|{{{plant_coord_type}}}|type:landmark}}|format={{{plant_coord_format|}}}|wrap=true|name={{{plant_name|}}}}}{{{plant_coord_ref|}}}</small>
}}
 
|label42 label42 = Operator(s)
|data42 data42 = {{{plant_operator|}}}
 
|label43 label43 = Commission&nbsp;date
|data43 data43 = {{{plant_commission|}}}
 
|label44 label44 = Decommission&nbsp;date
|data44 data44 = {{{plant_decommission|}}}
 
|label45 label45 = [[Hydroelectricity#Generating methods|Type]]
|data45 data45 = {{#switch:{{uc:{{{plant_type|}}}}}
|C=Conventional
|P=[[Pumped-storage hydroelectricity|Pumped-storage]]
Line 191:
}}
 
|label46 label46 = [[Hydraulic head]]
|data46 data46 = {{{plant_hydraulic_head|}}}
 
|label47 label47 = Turbines
|data47 data47 = {{{plant_turbines|}}}
 
|label48 label48 = Installed&nbsp;capacity
|data48 data48 = {{{plant_capacity|}}}
 
|label49 label49 = [[Capacity factor|Capacity&nbsp;factor]]
|data49 data49 = {{{plant_capacity_factor|}}}
 
|label50 label50 = Annual&nbsp;generation
|data50 data50 = {{#iferror: {{#expr:0+{{formatnum:{{{plant_annual_gen|}}}|R}} }}| {{{plant_annual_gen|}}} | {{{plant_annual_gen}}} [[GW·h]] }}
 
|data51 data51 = {{#if:{{{website|}}}|'''Website'''<br/><span class="plainlinks">{{{website|}}}</span>}}
 
|below below = {{{extra|}}}
 
}}<noinclude>