Template:Infobox river: Difference between revisions
m 1 revision imported |
en>Joy set default mapframe-frame-width to 250 to match other elements |
||
| Line 9: | Line 9: | ||
| headerstyle= background-color: #CEDEFF;color: #202122; | | headerstyle= background-color: #CEDEFF;color: #202122; | ||
| image = {{# | | image = {{#if:{{{image|}}}|[[File:{{{image}}}|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes |maxvals=1 |{{{image|}}}}}|size={{#if:{{{image_size|}}}|{{{image_size|}}}|250px}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|}}}|suppressplaceholder=yes}} | ||
| caption = {{#if:{{{image|}}}|{{{image_caption|}}}|{{{image_caption|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|fwd=ALL}}}}}}} | | caption = {{#if:{{{image|}}}|{{{image_caption|}}}|{{{image_caption|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|fwd=ALL}}}}}}} | ||
| image2 = {{# | | image2 = {{#if:{{{image|}}}|[[File:{{{image}}}|image={{{map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}} | ||
| caption2 = {{{map_caption|}}} | | caption2 = {{{map_caption|}}} | ||
| Line 23: | Line 23: | ||
|relief ={{#ifeq: {{{pushpin_map_relief|}}}| 0 || {{if empty|{{{pushpin_map_relief|}}}|1}}}} | |relief ={{#ifeq: {{{pushpin_map_relief|}}}| 0 || {{if empty|{{{pushpin_map_relief|}}}|1}}}} | ||
|caption ={{{pushpin_map_caption|}}} }} }} | |caption ={{{pushpin_map_caption|}}} }} }} | ||
| image4 = {{#invoke:Infobox mapframe | |||
|auto | |||
|onByDefault={{#if:{{{map|}}}{{{pushpin_map|}}}|no|yes}} | |||
|mapframe-frame-width={{{mapframe-frame-width|250}}} | |||
|mapframe-stroke-color={{{mapframe-stroke-color|#0000ff}}} | |||
|mapframe-marker={{{mapframe-marker|water}}} | |||
|mapframe-type=river | |||
|mapframe-length_km={{{length_km|}}}|mapframe-length_mi={{{length_mi|}}} | |||
|mapframe-area_km2={{{basin_size_km2|}}}|mapframe-area_mi2={{{basin_size_mi2|}}} | |||
}} | |||
| caption4 = {{#invoke:Infobox mapframe|autocaption}} | |||
| label1 = Etymology | | label1 = Etymology | ||
| Line 86: | Line 98: | ||
| label30 = Length | | label30 = Length | ||
| rowstyle30 = {{Infobox river/row-style}} | | rowstyle30 = {{Infobox river/row-style}} | ||
| data30 = {{Infobox river/calcunit|free={{{length|}}}}} | | data30 = {{Infobox river/calcunit|free={{{length|}}}|met={{{length_km|}}}|met_unit=km|imp={{{length_mi|}}}|imp_unit=mi}}<!-- | ||
-->{{#if:{{{length_km|}}}{{{length_mi|}}}|{{{length_ref|}}}}} | |||
| label31 = Basin size | | label31 = Basin size | ||
| data31 = {{{basin_size|}}}{{ | | data31 = {{Infobox river/calcunit|free={{{basin_size|}}}|met={{{basin_size_km2|}}}|met_unit=km2|imp={{{basin_size_mi2|}}}|imp_unit=mi2}}<!-- | ||
-->{{#if:{{{basin_size_km2|}}}{{{basin_size_mi2|}}}|{{{basin_size_ref|}}}}} | |||
| label32 = Width | | label32 = Width | ||
| Line 175: | Line 189: | ||
| below = {{{extra|}}} | | below = {{{extra|}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox river with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox river]] with unknown parameter "_VALUE_"|ignoreblank=y| basin_landmarks | basin_population | basin_size | bridges | cities | city | country | country_type | custom_data | custom_label | depth_avg | depth_max | depth_min | discharge1_avg | discharge1_location | discharge1_max | discharge1_min | discharge2_avg | discharge2_location | discharge2_max | discharge2_min | discharge3_avg | discharge3_location | discharge3_max | discharge3_min | discharge4_avg | discharge4_location | discharge4_max | discharge4_min | discharge5_avg | discharge5_location | discharge5_max | discharge5_min | district | district_type | embed | etymology | extra | fetchwikidata | image | image_alt | image_caption | image_size | image_upright | landmark | length | map | map_alt | map_caption | map_size | mouth | mouth_coord_ref | mouth_coordinates | mouth_elevation | mouth_location | municipality | municipality_type | name | name_etymology | name_native | name_other | native_name | nickname | other_name | parent | ports | progression | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_relief | pushpin_map_size | qid | region | region_type | river_system | source_confluence | source_confluence_coord_ref | source_confluence_coordinates | source_confluence_elevation | source_confluence_location | source1 | source1_coord_ref | source1_coordinates | source1_elevation | source1_length | source1_location | source2 | source2_coord_ref | source2_coordinates | source2_elevation | source2_length | source2_location | source3 | source3_coord_ref | source3_coordinates | source3_elevation | source3_length | source3_location | source4 | source4_coord_ref | source4_coordinates | source4_elevation | source4_length | source4_location | source5 | source5_coord_ref | source5_coordinates | source5_elevation | source5_length | source5_location | state | state_type | subdivision_name1 | subdivision_name2 | subdivision_name3 | subdivision_name4 | subdivision_name5 | subdivision_type1 | subdivision_type2 | subdivision_type3 | subdivision_type4 | subdivision_type5 | suppressfields | tributaries_left | tributaries_right | waterbodies | waterfalls | width_avg | width_max | width_min }}<noinclude> | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox river with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox river]] with unknown parameter "_VALUE_"|ignoreblank=y| basin_landmarks | basin_population | basin_size | basin_size_km2 | basin_size_mi2 | basin_size_ref | bridges | cities | city | country | country_type | custom_data | custom_label | depth_avg | depth_max | depth_min | discharge1_avg | discharge1_location | discharge1_max | discharge1_min | discharge2_avg | discharge2_location | discharge2_max | discharge2_min | discharge3_avg | discharge3_location | discharge3_max | discharge3_min | discharge4_avg | discharge4_location | discharge4_max | discharge4_min | discharge5_avg | discharge5_location | discharge5_max | discharge5_min | district | district_type | embed | etymology | extra | fetchwikidata | image | image_alt | image_caption | image_size | image_upright | landmark | length | length_km | length_mi | length_ref | map | map_alt | map_caption | map_size | mouth | mouth_coord_ref | mouth_coordinates | mouth_elevation | mouth_location | municipality | municipality_type | name | name_etymology | name_native | name_other | native_name | nickname | other_name | parent | ports | progression | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_relief | pushpin_map_size | qid | region | region_type | river_system | source_confluence | source_confluence_coord_ref | source_confluence_coordinates | source_confluence_elevation | source_confluence_location | source1 | source1_coord_ref | source1_coordinates | source1_elevation | source1_length | source1_location | source2 | source2_coord_ref | source2_coordinates | source2_elevation | source2_length | source2_location | source3 | source3_coord_ref | source3_coordinates | source3_elevation | source3_length | source3_location | source4 | source4_coord_ref | source4_coordinates | source4_elevation | source4_length | source4_location | source5 | source5_coord_ref | source5_coordinates | source5_elevation | source5_length | source5_location | state | state_type | subdivision_name1 | subdivision_name2 | subdivision_name3 | subdivision_name4 | subdivision_name5 | subdivision_type1 | subdivision_type2 | subdivision_type3 | subdivision_type4 | subdivision_type5 | suppressfields | tributaries_left | tributaries_right | waterbodies | waterfalls | width_avg | width_max | width_min | mapframe | mapframe-area_km2 | mapframe-area_mi2 | mapframe-caption | mapframe-coord | mapframe-coordinates | mapframe-custom | mapframe-frame-coord | mapframe-frame-coordinates | mapframe-frame-height | mapframe-frame-width | mapframe-geomask | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-height | mapframe-id | mapframe-length_km | mapframe-length_mi | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-point | mapframe-shape | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-switcher | mapframe-width | mapframe-wikidata | mapframe-zoom }}{{main other|{{#if:{{{map|}}}{{{pushpin_map|}}}||[[Category:Pages using infobox river with mapframe]]}}}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 16:44, 16 November 2024
{{Infobox | child = | abovestyle = background-color: #CEDEFF;color: #202122; | above = | autoheaders= y | headerstyle= background-color: #CEDEFF;color: #202122;
| image = {{#if:|[[File:{{{image}}}|image=|size=250px|sizedefault=frameless|upright=1|alt=|suppressplaceholder=yes}} | caption =
| image2 = {{#if:|[[File:{{{image}}}|image=|size=|sizedefault=frameless|alt=}} | caption2 =
| image3 =
| image4 = Script error: No such module "Infobox mapframe". | caption4 = Script error: No such module "Infobox mapframe".
| label1 = Etymology | data1 =
| class2 = nickname | label2 = Nickname(s) | data2 =
| class3 = nickname | label3 = Native name | data3 = Template:Native name checker
| header5 = Location
| label6 = Country | rowstyle6 = Template:Infobox river/row-style | data6 =
| label7 = State | rowstyle7 = Template:Infobox river/row-style | data7 =
| label8 = Region | rowstyle8 = Template:Infobox river/row-style | data8 =
| label9 = District | rowstyle9 = Template:Infobox river/row-style | data9 =
| label10 = Municipality | rowstyle10 = Template:Infobox river/row-style | data10 =
| header15 = Physical characteristics
| rowstyle16 = display:none; | data16 = Template:Infobox river/source | rowstyle17 = display:none; | data17 = Template:Infobox river/source | rowstyle18 = display:none; | data18 = Template:Infobox river/source | rowstyle19 = display:none; | data19 = Template:Infobox river/source | rowstyle20 = display:none; | data20 = Template:Infobox river/source | rowstyle21 = display:none; | data21 = Template:Infobox river/source
| label22 = Mouth | data22 =
| label23 =
| rowstyle23 = Template:Infobox river/row-style | data23 =
| label24 =
| rowstyle24 = Template:Infobox river/row-style | data24 =
| label25 =
| rowstyle25 = Template:Infobox river/row-style | data25 = Template:Infobox river/calcunit
| label30 = Length | rowstyle30 = Template:Infobox river/row-style | data30 = Template:Infobox river/calcunit
| label31 = Basin size | data31 = Template:Infobox river/calcunit
| label32 = Width | rowstyle32 = Template:Infobox river/row-style | data32 = | label33 = • minimum | rowstyle33 = Template:Infobox river/row-style | data33 = Template:Infobox river/calcunit | label34 = • average | rowstyle34 = Template:Infobox river/row-style | data34 = Template:Infobox river/calcunit | label35 = • maximum | rowstyle35 = Template:Infobox river/row-style | data35 = Template:Infobox river/calcunit
| label36 = Depth | data36 = | label37 = • minimum | rowstyle37 = Template:Infobox river/row-style | data37 = | label38 = • average | rowstyle38 = Template:Infobox river/row-style | data38 = | label39 = • maximum | rowstyle39 = Template:Infobox river/row-style | data39 =
| rowstyle50 = display:none; | data50 = Template:Infobox river/discharge | rowstyle51 = display:none; | data51 = Template:Infobox river/discharge | rowstyle52 = display:none; | data52 = Template:Infobox river/discharge | rowstyle53 = display:none; | data53 = Template:Infobox river/discharge | rowstyle54 = display:none; | data54 = Template:Infobox river/discharge
| header55 = Basin features
| label56 = Progression | data56 =
| label57 = River system | data57 =
| label58 = Landmarks | data58 =
| label59 = Cities | data59 =
| label60 = Population | data60 =
| label61 = Tributaries | data61 = | rowstyle61 = Template:Infobox river/row-style | label62 = • left | rowstyle62 = Template:Infobox river/row-style | data62 = | label63 = • right | rowstyle63 = Template:Infobox river/row-style | data63 =
| label64 = Waterbodies | data64 =
| label65 = Waterfalls | data65 =
| label66 = Bridges | data66 =
| label67 = Inland ports | data67 =
| label68 = | data68 =
| below =
}}