Template:Infobox mountain: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary Tags: Manual revert 2017 source edit |
||
Line 28: | Line 28: | ||
| mark = Red triangle with thick white border.svg | | mark = Red triangle with thick white border.svg | ||
| marksize = 16 | | marksize = 16 | ||
| relief = {{#ifeq:{{map_relief|{{{relief|}}}}}|0||1}} | | relief = {{#ifeq:{{{map_relief|{{{relief|}}}}}}|0||1}} | ||
| label = {{if empty|{{{label|}}}|{{{name|}}}}} | | label = {{if empty|{{{label|}}}|{{{name|}}}}} | ||
| position ={{{label_position|}}} | | position ={{{label_position|}}} | ||
| coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }} | | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }} | ||
</div> | </div> | ||
| {{#if:{{map_image|{{{image_map|}}}}} | | {{#if:{{{map_image|{{{image_map|}}}}}} | ||
|<div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;">{{#invoke:InfoboxImage|InfoboxImage|image={{map_image|{{{image_map|}}}}}|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}}}}|upright={{{map_upright|}}}|sizedefault=272px|maxsize=288px|alt={{{map_alt|}}}}}{{#switch:{{{map_caption|}}}|none|=|#default=<div>{{{map_caption}}}</div>}} | |<div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;">{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}}}}|upright={{{map_upright|}}}|sizedefault=272px|maxsize=288px|alt={{{map_alt|}}}}}{{#switch:{{{map_caption|}}}|none|=|#default=<div>{{{map_caption}}}</div>}} | ||
</div>}} | </div>}} | ||
}} | }} | ||
Line 44: | Line 44: | ||
| label4 = [[Summit|Elevation]] | | label4 = [[Summit|Elevation]] | ||
| data4 = {{If empty|{{{elevation|}}}|{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{Convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2044|2=|name=elevation|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|unitabbr=true|convert=true|maxvals=1|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2044}}}}}}}}{{#if:{{{elevation_ref|{{{elevation_note|}}}}}}|{{{elevation_ref|{{{elevation_note|}}}}}}}}{{If last display both| | | data4 = {{If empty|{{{elevation|}}}|{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{Convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2044|2=|name=elevation|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|unitabbr=true|convert=true|maxvals=1|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2044}}}}}}}}{{#if:{{{elevation_ref|{{{elevation_note|}}}}}}|{{{elevation_ref|{{{elevation_note|}}}}}}}}{{If last display both|<br/>|{{#invoke:WikidataIB|getValue|1=P2044|2={{{elevation_system|}}}|name=elevation_system|qid={{{qid|}}}|qual=P459|qualsonly=Y|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|qshortname=true|maxvals=1|noicon=false}}}} | ||
|{{#invoke:WikidataIB|getValue|1=P2044|2={{{elevation_system|}}}|name=elevation_system|qid={{{qid|}}}|qual=P459|qualsonly=Y|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|qshortname=true|maxvals=1|noicon=false}}}} | |||
| label5 = [[Topographic prominence|Prominence]] | | label5 = [[Topographic prominence|Prominence]] | ||
Line 51: | Line 50: | ||
| label6 = [[Topographic prominence#Prominence parentage|Parent peak]] | | label6 = [[Topographic prominence#Prominence parentage|Parent peak]] | ||
| data6 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P3137|2={{{parent_peak|}}}|name=parent_peak|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|shortname=true|maxvals=1|noicon=false|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||Category:Wikidata value to be checked for Infobox mountain}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | | data6 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P3137|2={{{parent_peak|}}}|name=parent_peak|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|shortname=true|maxvals=1|noicon=false|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||[[Category:Wikidata value to be checked for Infobox mountain]]}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | ||
| label7 = [[Topographic isolation|Isolation]] | | label7 = [[Topographic isolation|Isolation]] | ||
Line 58: | Line 57: | ||
| class8 = category | | class8 = category | ||
| label8 = [[Lists of mountains|Listing]] | | label8 = [[Lists of mountains|Listing]] | ||
| data8 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P361|2={{{listing|}}}|name=listing|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|qshortname=true|sorted=true|noicon=false|list=ubl|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||Category:Wikidata value to be checked for Infobox mountain}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | | data8 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P361|2={{{listing|}}}|name=listing|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced=true|qshortname=true|sorted=true|noicon=false|list=ubl|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||[[Category:Wikidata value to be checked for Infobox mountain]]}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | ||
| label9 = [[Geographic coordinate system|Coordinates]] | | label9 = [[Geographic coordinate system|Coordinates]] | ||
Line 153: | Line 152: | ||
| label37 = [[Ordnance Survey National Grid|OS grid]] | | label37 = [[Ordnance Survey National Grid|OS grid]] | ||
| data37 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}|name={{{name|{{PAGENAMEBASE}}}} }}{{{grid_ref_UK_ref|{{{grid_ref_UK_note|}}}}}}}} | | data37 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_UK_ref|{{{grid_ref_UK_note|}}}}}}}} | ||
| label38 = [[Irish grid reference system|OSI/OSNI grid]] | | label38 = [[Irish grid reference system|OSI/OSNI grid]] | ||
| data38 = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}|name={{{name|{{PAGENAMEBASE}}}} }}{{{grid_ref_Ireland_ref|{{{grid_ref_Ireland_note|}}}}}}}} | | data38 = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_Ireland_ref|{{{grid_ref_Ireland_note|}}}}}}}} | ||
| label39 = [[Topographic map|Topo map]] | | label39 = [[Topographic map|Topo map]] | ||
Line 215: | Line 214: | ||
}}{{main other|{{#if:{{{region|}}}|{{#ifeq:{{#invoke:string|replace|{{{region}}}|^[A-Z0-9/\-]*$|MATCH|plain=false}}|MATCH|[[Category:Pages using infobox mountain with unknown parameters|ρ]] | }}{{main other|{{#if:{{{region|}}}|{{#ifeq:{{#invoke:string|replace|{{{region}}}|^[A-Z0-9/\-]*$|MATCH|plain=false}}|MATCH|[[Category:Pages using infobox mountain with unknown parameters|ρ]] | ||
}}}} | }}}} | ||
}}{{Wikidata image |1={{{photo|}}} |2={{{nocat_wdimage|{{#ifeq:ALL|{{uc:{{{fetchwikidata|}}}}}|1|}}}} | }}{{Wikidata image |1={{{photo|}}} |2={{{nocat_wdimage|{{#ifeq:ALL|{{uc:{{{fetchwikidata|}}}}}|1|}}}}} | ||
}}{{main other| | }}{{main other| | ||
{{#if:{{{language|}}}|[[Category:Pages using infobox mountain with language parameter|{{#invoke:string|replace|{{{language}}}|[^A-Za-z0-9]||plain=false}} ]]}} | {{#if:{{{language|}}}|[[Category:Pages using infobox mountain with language parameter|{{#invoke:string|replace|{{{language}}}|[^A-Za-z0-9]||plain=false}} ]]}} | ||
}}{{#if:{{#invoke:string|match|{{{country_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{country|}}}| and |ignore_errors=true}}||{{#if:{{{country|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|A]] | }}{{#if:{{#invoke:string|match|{{{country_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{country|}}}| and |ignore_errors=true}}||{{#if:{{{country|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|A]]|[[Category:Pages using infobox mountain with plural labels and no data|A]]}}}}| | ||
|[[Category:Pages using infobox mountain with plural labels and no data|A]]}}}}| | }}{{#if:{{#invoke:string|match|{{{settlement_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{settlement|}}}| and |ignore_errors=true}}||{{#if:{{{settlement|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|B]]|[[Category:Pages using infobox mountain with plural labels and no data|B]]}}}}| | ||
}}{{#if:{{#invoke:string|match|{{{settlement_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{settlement|}}}| and |ignore_errors=true}}||{{#if:{{{settlement|}}} | }}{{#if:{{#invoke:string|match|{{{subdivision1_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision1|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision1|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|C]]|[[Category:Pages using infobox mountain with plural labels and no data|C]]}}}}| | ||
|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|B]] | }}{{#if:{{#invoke:string|match|{{{subdivision2_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision2|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision2|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|D]]|[[Category:Pages using infobox mountain with plural labels and no data|D]]}}}}| | ||
|[[Category:Pages using infobox mountain with plural labels and no data|B]]}}}}| | }}{{#if:{{#invoke:string|match|{{{subdivision3_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision3|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision3|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|E]]|[[Category:Pages using infobox mountain with plural labels and no data|E]]}}}}| | ||
}}{{#if:{{#invoke:string|match|{{{subdivision1_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision1|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision1|}}} | }}{{#if:{{#invoke:string|match|{{{subdivision4_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision4|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision4|}}}|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|F]]|[[Category:Pages using infobox mountain with plural labels and no data|F]]}}}}| | ||
|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|C]] | |||
|[[Category:Pages using infobox mountain with plural labels and no data|C]]}}}}| | |||
}}{{#if:{{#invoke:string|match|{{{subdivision2_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision2|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision2|}}} | |||
|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|D]] | |||
|[[Category:Pages using infobox mountain with plural labels and no data|D]]}}}}| | |||
}}{{#if:{{#invoke:string|match|{{{subdivision3_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision3|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision3|}}} | |||
|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|E]] | |||
|[[Category:Pages using infobox mountain with plural labels and no data|E]]}}}}| | |||
}}{{#if:{{#invoke:string|match|{{{subdivision4_type|}}}|s$|ignore_errors=true}}|{{#if:{{#invoke:string|match|{{{subdivision4|}}}| and |ignore_errors=true}}||{{#if:{{{subdivision4|}}} | |||
|[[Category:Pages using infobox mountain with potentially incorrectly plural labels|F]] | |||
|[[Category:Pages using infobox mountain with plural labels and no data|F]]}}}}| | |||
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox mountain with deprecated parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox mountain]] with deprecated parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_ref | authority | biome | border | borders_on | child | coordinates | coordinates_ref | coords | coords_ref | country | country_type | district | district_type | easiest_route | elevation | elevation_ft | elevation_m | elevation_ref | elevation_system | embedded | etymology | fetchwikidata | first_ascent | formed_by | geology | grid_ref_Ireland | grid_ref_Ireland_ref | grid_ref_UK | grid_ref_UK_ref | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | length | length_km | length_mi | length_orientation | length_ref | listing | location | map | map_alt | map_caption | map_image | map_relief | map_size | map_upright | map_width | mapsize | module | mountain_type | name | native_name | native_name_lang | nickname | nocat_wdimage | normal_route | orogeny | other_name | parent | parent_peak | part | part_type | period | photo | photo_alt | photo_caption | photo_size | photo_upright | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | qid | range | range_coordinates | range_coordinates_ref | range_coords | region | region_type | relief | rock | settlement | settlement_type | sourcedonly | state | state_type | subdivision1 | subdivision1_type | subdivision2 | subdivision2_type | subdivision3 | subdivision3_type | subdivision4 | subdivision4_type | suppressfields | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volcanic_region | volume | volume_km3 | volume_mi3 | volume_ref | width | width_km | width_mi | width_orientation | width_ref | }}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox mountain with deprecated parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox mountain]] with deprecated parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_ref | authority | biome | border | borders_on | child | coordinates | coordinates_ref | coords | coords_ref | country | country_type | district | district_type | easiest_route | elevation | elevation_ft | elevation_m | elevation_ref | elevation_system | embedded | etymology | fetchwikidata | first_ascent | formed_by | geology | grid_ref_Ireland | grid_ref_Ireland_ref | grid_ref_UK | grid_ref_UK_ref | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | length | length_km | length_mi | length_orientation | length_ref | listing | location | map | map_alt | map_caption | map_image | map_relief | map_size | map_upright | map_width | mapsize | module | mountain_type | name | native_name | native_name_lang | nickname | nocat_wdimage | normal_route | orogeny | other_name | parent | parent_peak | part | part_type | period | photo | photo_alt | photo_caption | photo_size | photo_upright | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | qid | range | range_coordinates | range_coordinates_ref | range_coords | region | region_type | relief | rock | settlement | settlement_type | sourcedonly | state | state_type | subdivision1 | subdivision1_type | subdivision2 | subdivision2_type | subdivision3 | subdivision3_type | subdivision4 | subdivision4_type | suppressfields | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volcanic_region | volume | volume_km3 | volume_mi3 | volume_ref | width | width_km | width_mi | width_orientation | width_ref | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||