Jump to content

Template:Infobox River: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
Added {{{length_km}}} & {{{length_mi}}} for autoconversion
wikademia>Jimp
similarly for all other measurements
Line 25: Line 25:
{{!}} {{#if:{{{length_km|}}}
{{!}} {{#if:{{{length_km|}}}
           |{{#if:{{{length_mi|}}}
           |{{#if:{{{length_mi|}}}
                 |{{formatnum:{{{length_km}}} km {{{length_mi}}} mi}}
                 |{{formatnum:{{{length_km}}} km ({{{length_mi}}} mi)}}
                 |{{convert|{{{length_km}}}|km|abbr=on}}
                 |{{convert|{{{length_km}}}|km|abbr=on}}
             }}
             }}
Line 34: Line 34:
}}
}}
|- style="white-space: nowrap;"
|- style="white-space: nowrap;"
{{#if: {{{elevation|}}}|
{{#if: {{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}|
{{!}} '''[[Source (river or stream)|Source]] elevation'''
{{!}} '''[[Source (river or stream)|Source]] elevation'''
{{!}} {{{elevation}}}
{{!}} {{#if:{{{elevation_m|}}}
          |{{#if:{{{elevation_ft|}}}
                |{{formatnum:{{{elevation_m}}} m ({{{elevation_ft}}} ft)}}
                |{{convert|{{{elevation_m}}}|m|abbr=on}}
            }}
          |{{#if:{{{elevation_ft|}}}
                |{{convert|{{{elevation_ft}}}|ft|abbr=on}}
            }}
      }}{{{elevation|}}}
}}
}}
|-
|-
{{#if: {{{mouth_elevation|}}}|
{{#if: {{{mouth_elevation|}}}{{{mouth_elevation_m|}}}{{{mouth_elevation_ft|}}}|
{{!}} '''Mouth elevation'''
{{!}} '''Mouth elevation'''
{{!}} {{{mouth_elevation}}}
{{!}} {{#if:{{{mouth_elevation_m|}}}
          |{{#if:{{{mouth_elevation_ft|}}}
                |{{formatnum:{{{mouth_elevation_m}}} m ({{{mouth_elevation_ft}}} 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]]'''
{{!}} '''Avg. [[Discharge (hydrology)|discharge]]'''
{{!}} {{{discharge}}}
{{!}} {{#if:{{{discharge_m3/s|}}}
          |{{#if:{{{discharge_cuft/s|}}}
                |{{formatnum:{{{discharge_m3/s}}} [[cubic metres per second|m³/s]] ({{{discharge_cuft/s}}} [[cubic feet per second|cu 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|}}}
}}
}}
|-
|-
{{#if: {{{watershed|}}}|
{{#if: {{{watershed|}}}{{{watershed_km2|}}}{{{watershed_sqmi|}}}|
{{!}} '''Basin area'''
{{!}} '''Basin area'''
{{!}} {{{watershed}}}
{{!}} {{#if:{{{watershed_km2|}}}
          |{{#if:{{{watershed_sqmi|}}}
                |{{formatnum:{{{watershed_km2}}} km² ({{{watershed_sqmi}}} sq mi)}}
                |{{convert|{{{watershed_km2}}}|km2|abbr=on}}
            }}
          |{{#if:{{{watershed_mi|}}}
                |{{convert|{{{watershed_sqmi}}}|sqmi|abbr=on}}
            }}
      }}{{{watershed|}}}
}}
}}
|}<noinclude>
|}<noinclude>

Revision as of 03:21, 15 April 2008