Template:Infobox River/Sandbox
From Wikipedia, the free encyclopedia
A new template aimed to replace Template:Infobox River, based on the same css class "geography" as Template:Infobox City and Template:Infobox Country (and possibly other ones).
[edit] About
Just a few words about this template. It is intended to replace Template:Infobox River but it's first placed here, to see the reaction of Wikipedians and apply adjustments to it before the former is replaced. It tries to incorporated most data that are used in pages using Template:Infobox River (and much more) in a more general way.
- It's clever, so it changes how things are displayed based on the input (e.g. when there's just one country, Country caption gets displayed, if there are more, Countries is displayed instead)
- When there are some numbered items, you can add additional countries, names etc. by using the same field name, with a number attached. There's no automation so only a fixed number of items can be used, however, it's easy to add more to the template if needed.
- Input values can be in either metric or imperial (miles, feets etc., then there's always the same field name with _imperial suffix) units. Infobox diplays both metric and imperial values, it automatically calculates imperial figures from metric, or metric from imperial ones. If both metric and imperial figures are set, only metric values are used (even for calculating imperial values) and the imperial ones are ignored). When entering the numbers, don't format them (i.e. without commas), because raw numbers are needed for calculations; on the output, however, they are nicely formatted (i.e. with commas).
- If you need a link to have a different name, separate it by the {{!}} template. I.e. if you want Amazon to point at Amazon River, put in this: River Amazon{{!}}Amazon, which will render as Amazon.
Detailed field explanation follows, for a blank template go to the bottom of this page.
[edit] Legend
| Name section | |
|---|---|
| name | name of the river |
| other_name | another name of the river, it is not wikilinked automatically, can be used for rivers with various names along their run, or different spellings in other languages (preferably using wiki templates, e.g. Spanish: Ebro) |
| other_name1 | more other names of the river |
| Map section | |
| map | map showing river, its basin, tributaries etc. |
| map_size | optional map size (if not defined 250px is set as default) |
| map_caption | optional map caption, can be left empty |
| Country etc. | |
| country | country in/through which the river runs |
| country1 | more countries in/through which the river runs |
| region | region/state/department in/through which the river runs, to be used when the river belongs into one country only, and more info might be helpfulf, e.g. in the USA, Brazil |
| regions1 | more region/state/department in/through which the river runs |
| city | major city/seat in/through which the river runs |
| city1 | more cities/seats in/through which the river runs |
| Geography | |
| length | length of the river in kilometers |
| length_imperial | length of the river in miles |
| watershed | watershed (discharge basin) area in square kilometers |
| watershed_imperial | watershed (discharge basin) area in square miles |
| discharge_location | location where following figures come from, typically mouth, wikilinked |
| discharge_average | average discharge in m3/s |
| discharge_average_imperial | average discharge in ft3/s |
| discharge_max_month | month of maximum discharge, not wikilinked thus in can be another period type (e.g. season, range of months) |
| discharge_max | maximum discharge in m3/s |
| discharge_max_imperial | maximum discharge in ft3/s |
| discharge_min_month | month of minimum discharge, not wikilinked thus in can be another period type (e.g. season, range of months) |
| discharge_min | minimum discharge in m3/s |
| discharge_min_imperial | minimum discharge in ft3/s |
| discharge1_location | additional locations where average discharge is quoted, wikilinked |
| discharge1_average | average discharge in additional locations in m3/s |
| discharge1_average_imperial | average discharge in additional locations in ft3/s |
| Source | |
| source_name | source current name, no need to set it if current doesn't change names |
| source_location | source location, wikilinked, should be the name of the mountain range etc. |
| source_region | mouth region, might be used for a range when source_location is a mountain, wikilinked |
| source_country | country where source is located |
| source_country1 | when the source is located on the boundary |
| source_lat_d | source latitude (degrees) |
| source_lat_m | source latitude (minutes) |
| source_lat_s | source latitude (seconds) |
| source_lat_NS | source hemisphere, either N (default when not-defined) or S |
| source_long_d | source longitude (degrees) |
| source_long_m | source longitude (minutes) |
| source_long_s | source longitude (seconds) |
| source_long_WE | source hemisphere, either W (default when not-defined) or E |
| source_elevation | source elevation in meters |
| source_elevation_imperial | source elevation in feet |
| source_length | this source length in kilometers (until it becomes the main river) |
| source_length_imperial | this source length in miles |
| source1_name | name of a secondary source (some rivers have more sources), all fields that can be used with the source_ can be used with source1_ too |
| Mouth | |
| mouth_name | mouth name, if any (can be Mekong Delta etc.), or the name of the river to which this one flows, wikilinked |
| mouth_location | mouth location, wikilinked |
| mouth_region | mouth region, wikilinked |
| mouth_country | country where mouth is located |
| mouth_country1 | when the mouth is located on the boundary |
| mouth_elevation | mouth elevation in meters |
| mouth_elevation_imperial | mouth elevation in feet |
| mouth_lat_d | mouth latitude (degrees) |
| mouth_lat_m | mouth latitude (minutes) |
| mouth_lat_s | mouth latitude (seconds) |
| mouth_lat_NS | mouth hemisphere, either N (default when not-defined) or S |
| mouth_long_d | mouth longitude (degrees) |
| mouth_long_m | mouth longitude (minutes) |
| mouth_long_s | mouth longitude (seconds) |
| mouth_long_WE | mouth hemisphere, either W (default when not-defined) or E |
| Tributaries | |
| tributary_left | major left tributary, wikilinked |
| tributary_left1 | other major left tributary, wikilinked |
| tributary_right | major right tributary, wikilinked |
| tributary_right1 | other right left tributary, wikilinked |
| Image | |
| image | a photograph of the river |
| image_size | size in which the photograph should be displayed (set to 250px if left blank) |
| image_caption | photograph caption |
[edit] Blank
{{Infobox River Geography
<!-- *** Name section *** -->
| name =
| other_name =
| other_name1 =
<!-- *** Map section *** -->
| map =
| map_size =
| map_caption =
<!-- *** Country etc. *** -->
| country =
| country1 =
| region =
| region1 =
| city =
| city1 =
<!-- *** Geography *** -->
| length =
| length_imperial =
| watershed =
| watershed_imperial =
| discharge_location =
| discharge_average =
| discharge_average_imperial =
| discharge_max_month =
| discharge_max =
| discharge_max_imperial =
| discharge_min_month =
| discharge_min =
| discharge_min_imperial =
| discharge1_location =
| discharge1_average =
| discharge1_average_imperial =
<!-- *** Source *** -->
| source_name =
| source_location =
| source_region =
| source_country =
| source_country1 =
| source_lat_d =
| source_lat_m =
| source_lat_s =
| source_lat_NS =
| source_long_d =
| source_long_m =
| source_long_s =
| source_long_WE =
| source_elevation =
| source_elevation_imperial =
| source_length =
| source_length_imperial =
<!-- *** Mouth *** -->
| mouth_name =
| mouth_location =
| mouth_country =
| mouth_region =
| mouth_country1 =
| mouth_elevation =
| mouth_elevation_imperial =
| mouth_lat_d =
| mouth_lat_m =
| mouth_lat_s =
| mouth_lat_NS =
| mouth_long_d =
| mouth_long_m =
| mouth_long_s =
| mouth_long_WE =
<!-- *** Tributaries *** -->
| tributary_left =
| tributary_left1 =
| tributary_right =
| tributary_right1 =
<!-- *** Image *** --->
| image =
| image_size =
| image_caption =
}}

