Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sadads
fixing -- not tracking correctly
meta>Jonesey95
Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.
Line 31: Line 31:
                 | label = {{ifempty|{{{label|}}}|{{#if:{{{range_lat_d|}}}||{{{name|}}} }} }}
                 | label = {{ifempty|{{{label|}}}|{{#if:{{{range_lat_d|}}}||{{{name|}}} }} }}
                 | label_position ={{{label_position|}}}
                 | label_position ={{{label_position|}}}
                | lat_deg = {{#if:{{{range_lat_d|}}}|{{{range_lat_d}}}|{{{lat_d|}}} }}
                | lat_min  = {{#if:{{{range_lat_d|}}}|{{{range_lat_m|}}}|{{{lat_m|}}} }}
                | lat_sec  = {{#if:{{{range_lat_d|}}}|{{{range_lat_s|}}}|{{{lat_s|}}} }}
                | lat_dir  = {{#if:{{{range_lat_d|}}}|{{{range_lat_NS|}}}|{{{lat_NS|}}} }}
                | lon_deg = {{#if:{{{range_lat_d|}}}|{{{range_long_d}}}|{{{long_d|}}} }}
                | lon_min  = {{#if:{{{range_lat_d|}}}|{{{range_long_m|}}}|{{{long_m|}}} }}
                | lon_sec  = {{#if:{{{range_lat_d|}}}|{{{range_long_s|}}}|{{{long_s|}}} }}
                | lon_dir  = {{#if:{{{range_lat_d|}}}|{{{range_long_EW|}}}|{{{long_EW|}}} }}
                 | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }}
                 | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }}
             </div>}}
             </div>}}


| header4  = {{#if:{{{highest|}}}{{{lat_d|}}}{{{long_d|}}}{{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}{{{prominence|}}}{{{prominence_m|}}}{{{prominence_ft|}}}{{{isolation|}}}{{{isolation_mi|}}}{{{isolation_km|}}}{{{parent_peak|}}}{{{isolation_parent|}}}{{{listing|}}}{{{coordinates|}}}{{{coords|}}}|Highest point}}
| header4  = {{#if:{{{highest|}}}{{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}{{{prominence|}}}{{{prominence_m|}}}{{{prominence_ft|}}}{{{isolation|}}}{{{isolation_mi|}}}{{{isolation_km|}}}{{{parent_peak|}}}{{{isolation_parent|}}}{{{listing|}}}{{{coordinates|}}}{{{coords|}}}|Highest point}}


| label5  = Peak
| label5  = Peak
Line 72: Line 64:


| label11  = [[Geographic coordinate system|Coordinates]]
| label11  = [[Geographic coordinate system|Coordinates]]
| data11    = {{#if:{{{lat_d|}}}{{{long_d|}}}
| data11    = {{#if:{{{coordinates|}}}{{{coords|}}}|{{#invoke:Coordinates|coordinsert|{{ifempty|{{{coordinates|}}}|{{{coords|}}}}}|type:mountain|{{#if:{{{range_coordinates|}}}||{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}}}<!--
            | [[Category:Pages using deprecated coordinates format|M]]{{Infobox coord
     -->|&thinsp;{{ifempty|{{{coordinates_note|}}}|{{{coordinates_ref|}}}|{{{coords_ref|}}} }}  
              | lat_d  = {{{lat_d|}}}
              | lat_m  = {{{lat_m|}}}
              | lat_s  = {{{lat_s|}}}
              | lat_NS  = {{{lat_NS|}}}
              | long_d  = {{{long_d|}}}
              | long_m  = {{{long_m|}}}
              | long_s  = {{{long_s|}}}
              | long_EW = {{{long_EW|}}}
              | type    = {{ifempty|{{{coord_type|}}}|mountain}}
              | region  = {{{region_code|}}}
              | dim    = {{#if:{{{range_lat_d|}}}||{{#if:{{{dim|}}}|{{{dim|}}}|<!--
                            -->{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|<!--
                                -->width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|<!--
                                -->area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}} }} }} }}
              | scale  = {{#if:{{{dim|}}}{{{length_km|}}}{{{length_mi|}}}<!--
                              -->{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}<!--
                                -->||{{ifempty|{{{scale|}}}|100000}} }}
              | source  = {{{source|}}}
              | format  = {{{format|}}} <!-- default is dms -->
              | display = {{#if:{{{coordinates_no_title|}}}{{{range_lat_d|}}}|inline|{{{display|}}} }}<!-- default is inline,title -->
              | name    = <!-- leave undefined -->
              }}<!--
    -->|{{#if:{{{coordinates|}}}{{{coords|}}}|{{#invoke:Coordinates|coordinsert|{{ifempty|{{{coordinates|}}}|{{{coords|}}}}}|type:mountain|{{#if:{{{range_coordinates|}}}||{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}}}<!--
    -->}}<!--
-->{{#if:{{{coordinates_note|}}}{{{coordinates_ref|}}}{{{coords_ref|}}}<!--
     -->|&thinsp;{{ifempty|{{{coordinates_note|}}}|{{{coordinates_ref|}}}|{{{coords_ref|}}} }} }}


| header15  = {{#if:{{{length|}}}{{{length_km|}}}{{{length_mi|}}}{{{width|}}}{{{width_km|}}}{{{width_mi|}}}{{{area|}}}{{{area_km2|}}}{{{area_mi2|}}}|Dimensions}}
| header15  = {{#if:{{{length|}}}{{{length_km|}}}{{{length_mi|}}}{{{width|}}}{{{width_km|}}}{{{width_mi|}}}{{{area|}}}{{{area_km2|}}}{{{area_mi2|}}}|Dimensions}}
Line 154: Line 120:
             -->{{{border|}}}{{{parent|}}}{{{range|}}}<!---
             -->{{{border|}}}{{{parent|}}}{{{range|}}}<!---
             -->{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}{{{topo_map|}}}<!---
             -->{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}{{{topo_map|}}}<!---
             -->{{{biome|}}}{{{range_lat_d|}}}{{{range_long_d|}}}{{{range_coordinates|}}}{{{range_coords|}}}|Geography}}
             -->{{{biome|}}}{{{range_coordinates|}}}{{{range_coords|}}}|Geography}}
<!-- data31 reserved for map when photo is present -->
<!-- data31 reserved for map when photo is present -->
| class32 = label
| class32 = label
Line 184: Line 150:


| label39  = [[Geographic coordinate system|Range coordinates]]
| label39  = [[Geographic coordinate system|Range coordinates]]
| data39    = {{#if:{{{range_lat_d|}}}{{{range_long_d|}}}
| data39    = {{#if:{{{range_coordinates|}}}{{{range_coords|}}}|{{#invoke:Coordinates|coordinsert|{{ifempty|{{{range_coordinates|}}}|{{{range_coords|}}}}}|type:mountain|{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}{{#if:{{{range_coordinates_note|}}}|&thinsp;{{{range_coordinates_note}}} }}
            | [[Category:Pages using deprecated coordinates format|M]]{{Infobox coord
              | lat_d  = {{decdeg|deg={{{range_lat_d|}}}|min={{{range_lat_m|}}}<!--
                                -->|sec={{{range_lat_s|}}}|hem={{{range_lat_NS|}}}<!--
                                -->|rnd={{#if:{{{range_lat_s|}}}|4|2}} }}
              | long_d  = {{decdeg|deg={{{range_long_d|}}}|min={{{range_long_m|}}}<!--
                                -->|sec={{{range_long_s|}}}|hem={{{range_long_EW|}}}<!--
                                -->|rnd={{#if:{{{range_long_s|}}}|4|2}} }}
              | type    = {{ifempty|{{{coord_type|}}}|mountain}}
              | region  = {{{region_code|}}}
              | dim    = {{#if:{{{dim|}}}|{{{dim|}}}|<!--
                            -->{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|<!--
                                -->width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|<!--
                                -->area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}} }} }}
              | scale  = {{#if:{{{dim|}}}{{{length_km|}}}{{{length_mi|}}}<!--
                                  -->{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}<!--
                              -->||{{ifempty|{{{scale|}}}|300000}} }}
              | source  = {{{source|}}}
              | format  = {{{format|}}} <!-- default is dms -->
              | display = {{#if:{{{coordinates_no_title|}}}|inline|{{{display|}}} }} <!-- default is inline,title -->
              | name    = <!-- leave undefined -->
              }}
          |{{#if:{{{range_coordinates|}}}{{{range_coords|}}}|{{#invoke:Coordinates|coordinsert|{{ifempty|{{{range_coordinates|}}}|{{{range_coords|}}}}}|type:mountain|{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}
          }}{{#if:{{{range_coordinates_note|}}}|&thinsp;{{{range_coordinates_note}}} }}


| class40  = category
| class40  = category
Line 271: Line 214:


| data71  = {{{misc|{{{module|}}}}}}
| data71  = {{{misc|{{{module|}}}}}}
}}{{#if:{{{map|}}}|{{#ifeq:{{{map|}}}|{{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}||[[Category:Pages using hardcoded relief location maps]]}}}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox mountain with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox mountain]] with unknown parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_note | authority | biome | border | border1 | border2 | border3 | border4 | border5 | border6 | border7 | child | city | city_type | city1 | city10 | city11 | city12 | city13 | city14 | city15 | city16 | city17 | city18 | city2 | city3 | city4 | city5 | city6 | city7 | city8 | city9 | coord_type | coordinates | coordinates_no_title | coordinates_note | coordinates_ref | coords | coords_ref | country | country_type | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country17 | country18 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | dim | display | district | district_type | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district17 | district18 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | easiest_route | elevation | elevation_ft | elevation_m | elevation_note | elevation_ref | elevation_system | embedded | etymology | first_ascent | format | formed_by | geology | geology1 | geology2 | grid_ref_Ireland | grid_ref_UK | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | lat_d | lat_m | lat_NS | lat_s | length | length_km | length_mi | length_note | length_orientation | listing | location | long_d | long_EW | long_m | long_s | map | map_alt | map_caption | map_relief | map_size | map_width | misc | module | name | native_name | native_name_lang | nickname | normal_route | orogeny | other_name | parent | parent_peak | period | period1 | photo | photo_alt | photo_caption | photo_size | photo_width | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | range | range_coordinates | range_coordinates_note | range_lat_d | range_lat_m | range_lat_NS | range_lat_s | range_long_d | range_long_EW | range_long_m | range_long_s | region | region_code | region_type | region1 | region10 | region11 | region12 | region13 | region14 | region15 | region16 | region17 | region18 | region19 | region2 | region20 | region21 | region22 | region23 | region3 | region4 | region5 | region6 | region7 | region8 | region9 | scale | source | state | state_type | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state17 | state18 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volume | volume_km3 | volume_mi3 | volume_note | width | width_km | width_mi | width_note | width_orientation  
}}{{#if:{{{map|}}}|{{#ifeq:{{{map|}}}|{{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}||[[Category:Pages using hardcoded relief location maps]]}}}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox mountain with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox mountain]] with unknown parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_note | authority | biome | border | border1 | border2 | border3 | border4 | border5 | border6 | border7 | child | city | city_type | city1 | city10 | city11 | city12 | city13 | city14 | city15 | city16 | city17 | city18 | city2 | city3 | city4 | city5 | city6 | city7 | city8 | city9 | coordinates | coordinates_note | coordinates_ref | coords | coords_ref | country | country_type | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country17 | country18 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | dim | district | district_type | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district17 | district18 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | easiest_route | elevation | elevation_ft | elevation_m | elevation_note | elevation_ref | elevation_system | embedded | etymology | first_ascent | formed_by | geology | geology1 | geology2 | grid_ref_Ireland | grid_ref_UK | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | length | length_km | length_mi | length_note | length_orientation | listing | location | map | map_alt | map_caption | map_relief | map_size | map_width | misc | module | name | native_name | native_name_lang | nickname | normal_route | orogeny | other_name | parent | parent_peak | period | period1 | photo | photo_alt | photo_caption | photo_size | photo_width | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | range | range_coordinates | range_coordinates_note | region | region_type | region1 | region10 | region11 | region12 | region13 | region14 | region15 | region16 | region17 | region18 | region19 | region2 | region20 | region21 | region22 | region23 | region3 | region4 | region5 | region6 | region7 | region8 | region9 | scale | source | state | state_type | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state17 | state18 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volume | volume_km3 | volume_mi3 | volume_note | width | width_km | width_mi | width_note | width_orientation  
}}{{#ifeq:{{{x|¶}}}{{{y|¶}}}{{{x%|¶}}}{{{y%|¶}}}|¶¶¶¶||[[Category:Pages using Template:Infobox map needing attention]]
}}{{#ifeq:{{{x|¶}}}{{{y|¶}}}{{{x%|¶}}}{{{y%|¶}}}|¶¶¶¶||[[Category:Pages using Template:Infobox map needing attention]]
}}<!--
}}<!--

Revision as of 18:09, 2 June 2017