Difference between revisions of "Template:Infobox ocean"

From blackwiki
Jump to navigation Jump to search
imported>Tholme
(Use default image size)
imported>Frietjes
Line 1: Line 1:
<includeonly>{| class="infobox vcard" style="width: 250px; font-size: 90%; {{#if: {{{align|}}}|float: {{{align}}}; clear: {{{align}}};|}}"
+
{{infobox
|-
+
| bodyclass = vcard
! colspan="2" style="font-size: larger; text-align: center; background-color: #CEDEFF" class="fn org" | {{{name|{{{ocean_name|{{{Ocean_name|}}}}}}}}}
+
| bodystyle = {{#if: {{{align|}}}|float: {{{align}}}; clear: {{{align}}};|}}
|-
+
 
{{#if: {{{image_ocean|{{{image_Ocean|}}}}}}|
+
| abovestyle = font-size: larger; background-color: #CEDEFF;
{{!}} colspan="2" style="line-height: 1.2; border-bottom: 1px solid #CEDEFF" {{!}} <div style="border: 1px solid #CEDEFF">[[Image:{{{image_ocean|{{{image_Ocean|}}}}}}|{{px|{{{image_size|}}}|frameless}}|alt={{{alt_ocean|}}}|{{#if: {{{ocean_name|{{{Ocean_name|}}}}}}|{{{ocean_name|{{{Ocean_name}}}}}}} -}} {{#if: {{{caption_ocean|{{{caption_Ocean|}}}}}}|{{{caption_ocean|{{{caption_Ocean}}}}}}}}]]</div>{{#if: {{{caption_ocean|{{{caption_Ocean|}}}}}}|<center>{{{caption_ocean|{{{caption_Ocean}}}}}}</center>}}}}
+
| aboveclass = fn org
|-
+
| above = {{{name|{{{ocean_name|{{{Ocean_name|}}}}}}}}}
{{#if: {{{image_bathymetry|}}}|
+
 
{{!}} colspan="2" style="line-height: 1.2; border-bottom: 1px solid #CEDEFF" {{!}} <div style="border: 1px solid #CEDEFF">[[Image:{{{image_bathymetry}}}|{{px|{{{image_size|}}}|frameless}}|alt={{{alt_bathymetry|}}}|{{#if: {{{ocean_name|{{{Ocean_name|}}}}}}|{{{ocean_name|{{{Ocean_name}}}}}} -}} {{#if: {{{caption_bathymetry|}}}|{{{caption_bathymetry}}}}}]]</div> <center>{{{caption_bathymetry}}}</center>}}
+
| imagestyle = line-height: 1.2; border-bottom: 1px solid #CEDEFF
|- class="adr"
+
| image = {{#if: {{{image_ocean|{{{image_Ocean|}}}}}}
{{#if: {{{location|}}}|
+
|<div style="margin: auto; border: 1px solid #CEDEFF">{{#invoke:InfoboxImage|InfoboxImage|image={{{image_ocean|{{{image_Ocean|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|border=yes|alt={{{alt_ocean|}}}}}</div>}}
{{!}} '''Location'''
+
| caption = {{{caption_ocean|{{{caption_Ocean|}}}}}}
{{!}} <span class="region">{{{location}}}</span>}}
+
 
|-
+
| image2 = {{#if: {{{image_bathymetry|}}}
{{#if: {{{coords|}}}|
+
|<div style="margin: auto; border: 1px solid #CEDEFF">{{#invoke:InfoboxImage|InfoboxImage|image={{{image_bathymetry}}}|size={{{image_size|}}}|sizedefault=frameless|border=yes|alt={{{alt_bathymetry|}}}}}</div>}}
{{!}} '''<span title="Geographical coordinates">Coordinates</span>'''
+
| caption2 = {{{caption_bathymetry|}}}
{{!}} {{{coords}}}}}
+
 
|- class="note"
+
| label1 = Location
{{#if: {{{type|}}}|
+
| row1class = adr
{{!}} '''[[Ocean#Types of oceans|Ocean type]]'''
+
| class1 = region
{{!}} {{{type}}}}}
+
| data1 = {{{location|}}}
|- class="note"
+
 
{{#if: {{{inflow|}}}|
+
| label2 = <span title="Geographical coordinates">Coordinates</span>
{{!}} '''Primary sources'''
+
| data2 = {{{coords|}}}
{{!}} {{{inflow}}}}}
+
 
|- class="note"
+
| label3 = [[Ocean#Types of oceans|Ocean type]]
{{#if: {{{outflow|}}}|
+
| row3class= note
{{!}} '''<span title="Primary outflows: rivers, creeks, evaporation">Primary outflows</span>'''
+
| data3 = {{{type|}}}
{{!}} {{{outflow}}}}}
+
 
|- class="note"
+
| label4 = Primary sources
{{#if: {{{catchment|}}}{{{catchment_km2|}}}{{{catchment_sqmi|}}}|
+
| row4class= note
{{!}} '''[[Drainage basin|Catchment area]] '''
+
| data4 = {{{inflow|}}}
{{!}} {{convinfobox|{{{catchment_km2|}}}|km2|{{{catchment_sqmi|}}}|sqmi}}{{{catchment|}}}}}
+
 
|-
+
| label5 = <span title="Primary outflows: rivers, creeks, evaporation">Primary outflows</span>
{{#if: {{{basin_countries|}}}|
+
| row5class= note
{{!}} '''[[Drainage basin|Basin]] countries'''
+
| data5 = {{{outflow|}}}
{{!}} {{{basin_countries}}}}}
+
 
|- class="note"
+
| label6 = [[Drainage basin|Catchment area]]
{{#if: {{{length|}}}{{{length_km|}}}{{{length_mi|}}}|
+
| row6class= note
{{!}} '''Max length'''
+
| data6 = {{#if:{{{catchment_km2|}}}{{{catchment_sqmi|}}}|{{convinfobox|{{{catchment_km2|}}}|km2|{{{catchment_sqmi|}}}|sqmi}} }}{{{catchment|}}}
{{!}} {{convinfobox|{{{length_km|}}}|km|{{{length_mi|}}}|mi}}{{{length|}}}}}
+
 
|- class="note"
+
| label7 = [[Drainage basin|Basin]] countries
{{#if: {{{width|}}}{{{width_km|}}}{{{width_mi|}}}|
+
| row7class = note
{{!}} '''Max width'''
+
| data7 = {{{basin_countries|}}}
{{!}} {{convinfobox|{{{width_km|}}}|km|{{{width_mi|}}}|mi}}{{{width|}}}}}
+
 
|- class="note"
+
| label8 = Max length
{{#if: {{{area|}}}{{{area_km2|}}}{{{area_sqmi|}}}|
+
| row8class= note
{{!}} '''Surface area'''
+
| data8 = {{#if:{{{length_km|}}}{{{length_mi|}}}|{{convinfobox|{{{length_km|}}}|km|{{{length_mi|}}}|mi}}}}{{{length|}}}
{{!}} {{convinfobox|{{{area_km2|}}}|km2|{{{area_sqmi|}}}|sqmi}}{{{area|}}}}}
+
 
|- class="note"
+
 
{{#if: {{{depth|}}}{{{depth_m|}}}{{{depth_ft|}}}|
+
 
{{!}} '''Average depth'''
+
| label9 = Max width
{{!}} {{convinfobox|{{{depth_m|}}}|m|{{{depth_ft|}}}|ft}}{{{depth|}}}}}
+
| row9class= note
|- class="note"
+
| data9 = {{#if:{{{width_km|}}}{{{width_mi|}}}|{{convinfobox|{{{width_km|}}}|km|{{{width_mi|}}}|mi}}}}{{{width|}}}
{{#if: {{{max-depth|}}}{{{max-depth_m|}}}{{{max-depth_ft|}}}|
+
 
{{!}} '''Max depth'''
+
| label10 = Surface area
{{!}} {{convinfobox|{{{max-depth_m|}}}|m|{{{max-depth_ft|}}}|ft}}{{{max-depth|}}}}}
+
| row10class= note
|- class="note"
+
| data10 = {{#if:{{{area_km2|}}}{{{area_sqmi|}}}|{{convinfobox|{{{area_km2|}}}|km2|{{{area_sqmi|}}}|sqmi}}}}{{{area|}}}
{{#if: {{{volume|}}}{{{volume_km3|}}}{{{volume_cumi|}}}|
+
 
{{!}} '''Water volume'''
+
| label11 = Average depth
{{!}} {{convinfobox|{{{volume_km3|}}}|km3|{{{volume_cumi|}}}|cumi}}{{{volume|}}}}}
+
| row11class= note
|- class="note"
+
| data11 = {{#if:{{{depth_m|}}}{{{depth_ft|}}}|{{convinfobox|{{{depth_m|}}}|m|{{{depth_ft|}}}|ft}}}}{{{depth|}}}
{{#if: {{{residence_time|}}}|
+
 
{{!}} '''[[Ocean retention time|Residence time]] (of&nbsp;Ocean&nbsp;water)'''
+
| label12 = Max depth
{{!}} {{{residence_time}}}}}
+
| row12class= note
|- class="note"
+
| data12 = {{#if:{{{max-depth_m|}}}{{{max-depth_ft|}}}|{{convinfobox|{{{max-depth_m|}}}|m|{{{max-depth_ft|}}}|ft}}}}{{{max-depth|}}}
{{#if: {{{salinity|}}}|
+
 
{{!}} '''[[Salinity]]'''
+
| label13 = Water volume
{{!}} {{{salinity}}}}}
+
| row13class= note
|- class="note"
+
| data13 = {{#if:{{{volume_km3|}}}{{{volume_cumi|}}}|{{convinfobox|{{{volume_km3|}}}|km3|{{{volume_cumi|}}}|cumi}}}}{{{volume|}}}
{{#if: {{{shore|}}}{{{shore_km|}}}{{{shore_mi|}}}|
+
 
{{!}} '''Shore length<sup>1</sup>'''
+
| label14 = [[Ocean retention time|Residence time]] (of&nbsp;Ocean&nbsp;water)
{{!}} {{convinfobox|{{{shore_km|}}}|km|{{{shore_mi|}}}|mi}}{{{shore|}}}}}
+
| row14class= note
|- class="note"
+
| data14 = {{{residence_time|}}}
{{#if: {{{temperature_high|}}}{{{temperature_high_C|}}}{{{temperature_high_F|}}}|
+
 
{{!}} '''Max temperature'''
+
| label15 = [[Salinity]]
{{!}} {{convinfobox|{{{temperature_high_C|}}}|C|{{{temperature_high_F|}}}|F}}{{{temperature_high|}}}}}
+
| row15class= note
|- class="note"
+
| data15 = {{{salinity|}}}
{{#if: {{{temperature_low|}}}{{{temperature_low_C|}}}{{{temperature_low_F|}}}|
+
 
{{!}} '''Min temperature'''
+
| label16 = Shore length<sup>1</sup>
{{!}} {{convinfobox|{{{temperature_low_C|}}}|C|{{{temperature_low_F|}}}|F}}{{{temperature_low|}}}}}
+
| row16class= note
|- class="note"
+
| data16 = {{#if:{{{shore_km|}}}{{{shore_mi|}}}|{{convinfobox|{{{shore_km|}}}|km|{{{shore_mi|}}}|mi}}}}{{{shore|}}}
{{#if: {{{islands|}}}|
+
 
{{!}} '''[[:Category:Islands by ocean or sea |Islands]]'''
+
| label17 = Max temperature
{{!}} {{{islands}}}}}
+
| row17class= note
|- class="note"
+
| data17 = {{#if:{{{temperature_high_C|}}}{{{temperature_high_F|}}}|{{convinfobox|{{{temperature_high_C|}}}|C|{{{temperature_high_F|}}}|F}}}}{{{temperature_high|}}}
{{#if: {{{cities|}}}|
+
 
{{!}} '''Settlements'''
+
| label18 = Min temperature
{{!}} {{{cities}}}}}
+
| row18class= note
|- class="note"
+
| data18 = {{#if:{{{temperature_low_C|}}}{{{temperature_low_F|}}}|{{convinfobox|{{{temperature_low_C|}}}|C|{{{temperature_low_F|}}}|F}}}}{{{temperature_low|}}}
{{#if: {{{trenches|}}}|
+
 
{{!}} '''Trenches'''
+
| label19 = [[:Category:Islands by ocean or sea |Islands]]
{{!}} {{{trenches}}}}}
+
| row19class= note
|- class="note"
+
| data19 = {{{islands|}}}
{{#if: {{{benches|}}}|
+
 
{{!}} '''Benches'''
+
| label20 = Settlements
{{!}} {{{benches}}}}}
+
| row20class= note
|-  class="note"
+
| data20 = {{{cities|}}}
{{#if: {{{reference|}}}|
+
 
{{!}} '''References'''
+
| label21 = Trenches
{{!}} {{{reference}}}}}
+
| row21class= note
|- class="note"
+
| data21 = {{{trenches|}}}
{{#if: {{{shore|}}}|
+
 
! colspan="2" style="font-size: smaller; font-weight:200; border-bottom: 1px solid #CEDEFF; border-top: 1px solid #CEDEFF" {{!}}<sup style="font-weight:900">1</sup> Shore length is not a well-defined measure.}}
+
| label22 = Benches
 +
| row22class= note
 +
| data22 = {{{benches|}}}
 +
 
 +
| label23 = References
 +
| row23class= note
 +
| data23 = {{{reference|}}}
 +
 
 +
| belowclass = note
 +
| belowstyle = font-size: smaller; font-weight:200; border-bottom: 1px solid #CEDEFF; border-top: 1px solid #CEDEFF
 +
| below = {{#if: {{{shore|}}}|<sup style="font-weight:900">1</sup> Shore length is not a well-defined measure.}}
 
{{#if: {{{imJKK _bathymetry|}}}|[[Image:Stock alarm.svg]]}}
 
{{#if: {{{imJKK _bathymetry|}}}|[[Image:Stock alarm.svg]]}}
|}</includeonly><noinclude>{{doc}}</noinclude>
+
}}{{#if:
 +
{{#if:{{{catchment_km2|}}}{{{catchment_sqmi|}}}|{{#if:{{{catchment|}}}|1}}}}
 +
{{#if:{{{length_km|}}}{{{length_mi|}}}|{{#if:{{{length|}}}|1}}}}
 +
{{#if:{{{width_km|}}}{{{width_mi|}}}|{{#if:{{{width|}}}|1}}}}
 +
{{#if:{{{area_km2|}}}{{{area_sqmi|}}}|{{#if:{{{area|}}}|1}}}}
 +
{{#if:{{{depth_m|}}}{{{depth_ft|}}}|{{#if:{{{depth|}}}|1}}}}
 +
{{#if:{{{max-depth_m|}}}{{{max-depth_ft|}}}|{{#if:{{{max-depth|}}}|1}}}}
 +
{{#if:{{{volume_km3|}}}{{{volume_cumi|}}}|{{#if:{{{volume|}}}|1}}}}
 +
{{#if:{{{shore_km|}}}{{{shore_mi|}}}|{{#if:{{{shore|}}}|1}}}}
 +
{{#if:{{{temperature_high_C|}}}{{{temperature_high_F|}}}|{{#if:{{{temperature_high|}}}|1}}}}
 +
{{#if:{{{temperature_low_C|}}}{{{temperature_low_F|}}}|{{#if:{{{temperature_low|}}}|1}}}}
 +
|[[Category:Infobox ocean using redundant parameters]]
 +
}}<noinclude>{{documentation}}</noinclude>

Revision as of 15:27, 6 May 2013

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

Template documentation[create]