Jump to content

Template:Infobox River: Difference between revisions

From IdeaWazaWiki
wikademia>CBDunkerson
Converting to use #if:
wikademia>Wikademia
m 72 revisions
 
(48 intermediate revisions by 33 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 300px; font-size: 90%;"
<includeonly>{| class="infobox vcard" style="width: 300px; font-size: 90%;"
|-class="fn org"
! colspan="2" style="font-size: larger; text-align:center; background-color: #CEDEFF;" | {{#if: {{{river_name|}}}|{{{river_name}}}}}
|-
|-
! colspan="2" style="font-size: larger; background-color: #CEDEFF;" | {{#if: {{{river_name}}}|{{{river_name}}}}}
{{#if: {{{image_name|}}}|
{{!}} colspan="2" align="center" style="line-height: 1.2; border-bottom: 1px solid #CEDEFF;" {{!}} <div style="border: 1px solid #CEDEFF;"><center>[[Image:{{{image_name|}}}|{{#if:{{{image_size|}}}|{{{image_size|}}}|288px}}|{{{caption}}}]]</div> {{{caption}}}</center>}}
|-
|-
{{#if: {{{image_name}}}|
{{#if: {{{origin|}}}|
{{!}} colspan="2" style="line-height: 1.2; border-bottom: 1px solid #CEDEFF;" {{!}} <div style="border: 1px solid #CEDEFF;">[[Image:{{{image_name}}}|288px|{{{caption}}}]]</div> <center>{{{caption}}}</center>}}
{{!}} '''[[Source (river or stream)|Origin]]'''
{{!}} {{{origin}}}
}}
|-
|-
{{#if: {{{origin}}}|
{{#if: {{{mouth|}}}|
{{!}} '''Origin''' {{!}} {{{origin}}}}}
{{!}} '''Mouth'''
{{!}} {{{mouth}}}
}}
|-
|-
{{#if: {{{mouth}}}|
{{#if: {{{basin_countries|}}}|
{{!}} '''Mouth''' {{!}} {{{mouth}}}}}
{{!}} '''[[Drainage basin|Basin]] countries'''
{{!}} {{{basin_countries}}}
}}
|-
|-
{{#if: {{{basin_countries}}}|
{{#if: {{{length|}}}{{{length_km|}}}{{{length_mi|}}}|
{{!}} '''[[Drainage basin|Basin]] countries''' {{!}} {{{basin_countries}}}}}
{{!}} '''Length'''
{{!}} {{#if:{{{length_km|}}}
          |{{#if:{{{length_mi|}}}
                |{{formatnum:{{{length_km}}}&nbsp;km ({{{length_mi}}}&nbsp;mi)}}
                |{{convert|{{{length_km}}}|km|abbr=on}}
            }}
          |{{#if:{{{length_mi|}}}
                |{{convert|{{{length_mi}}}|mi|abbr=on}}
            }}
      }}{{{length|}}}
}}
|- style="white-space: nowrap;"
{{#if: {{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}|
{{!}} '''[[Source (river or stream)|Source]] elevation'''
{{!}} {{#if:{{{elevation_m|}}}
          |{{#if:{{{elevation_ft|}}}
                |{{formatnum:{{{elevation_m}}}&nbsp;m ({{{elevation_ft}}}&nbsp;ft)}}
                |{{convert|{{{elevation_m}}}|m|abbr=on}}
            }}
          |{{#if:{{{elevation_ft|}}}
                |{{convert|{{{elevation_ft}}}|ft|abbr=on}}
            }}
      }}{{{elevation|}}}
}}
|-
|-
{{#if: {{{length}}}|
{{#if: {{{mouth_elevation|}}}{{{mouth_elevation_m|}}}{{{mouth_elevation_ft|}}}|
{{!}} '''Length''' {{!}} {{{length}}}}}
{{!}} '''Mouth elevation'''
|- style="white-space: nowrap;"
{{!}} {{#if:{{{mouth_elevation_m|}}}
{{#if: {{{elevation}}}|
          |{{#if:{{{mouth_elevation_ft|}}}
{{!}} '''[[Source (river or stream)|Source]] elevation''' {{!}} {{{elevation}}}}}
                |{{formatnum:{{{mouth_elevation_m}}}&nbsp;m ({{{mouth_elevation_ft}}}&nbsp;ft)}}
                |{{convert|{{{mouth_elevation_m}}}|m|abbr=on}}
            }}
          |{{#if:{{{mouth_elevation_ft|}}}
                |{{convert|{{{mouth_elevation_ft}}}|ft|abbr=on}}
            }}
      }}{{{mouth_elevation|}}}
}}
|-
|-
{{#if: {{{discharge}}}|
{{#if: {{{discharge|}}}{{{discharge_m3/s|}}}{{{discharge_cuft/s|}}}|
{{!}} '''Avg. [[Discharge (hydrology)|discharge]]''' {{!}} {{{discharge}}}}}
{{!}} '''Avg. [[Discharge (hydrology)|discharge]]'''
{{!}} {{#if:{{{discharge_m3/s|}}}
          |{{#if:{{{discharge_cuft/s|}}}
                |{{formatnum:{{{discharge_m3/s}}}&nbsp;[[cubic metres per second|m³/s]] ({{{discharge_cuft/s}}}&nbsp;[[cubic feet per second|cu&nbsp;ft/s]])}}
                |{{convert|{{{discharge_m3/s}}}|m3/s|abbr=on|lk=on}}
            }}
          |{{#if:{{{discharge_cuft/s|}}}
                |{{convert|{{{discharge_cuft/s}}}|cuft/s|abbr=on|lk=on}}
            }}
      }}{{{discharge|&#32;at mouth}}}
}}
|-
|-
{{#if: {{{watershed}}}|
{{#if: {{{watershed|}}}{{{watershed_km2|}}}{{{watershed_sqmi|}}}|
{{!}} '''Basin area''' {{!}} {{{watershed}}}}}
{{!}} '''Basin area'''
|}<noinclude>
{{!}} {{#if:{{{watershed_km2|}}}
This template is part of the [[Wikipedia:WikiProject Rivers|Rivers WikiProject]].Please see the template's [[Template_talk:Infobox_river|discussion]] page for examples and a guide to using it.
          |{{#if:{{{watershed_sqmi|}}}
 
                |{{formatnum:{{{watershed_km2}}}&nbsp;km² ({{{watershed_sqmi}}}&nbsp;sq&nbsp;mi)}}
[[Category:Infobox templates|River]]
                |{{convert|{{{watershed_km2}}}|km2|abbr=on}}
 
            }}
[[eo:Ŝablono:Riveroj]]
          |{{#if:{{{watershed_sqmi|}}}
</noinclude>
                |{{convert|{{{watershed_sqmi}}}|sqmi|abbr=on}}
            }}
      }}{{{watershed|}}}
}}
|}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 02:15, 28 March 2009

[create] Template documentation