Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Rehman
restore original code for image until discussions conclude
meta>Rehman
Wikidata code for elevation while supporting separate metric and imperial parameters - includes elevation_system
Line 46: Line 46:


| label4  = [[Summit|Elevation]]
| label4  = [[Summit|Elevation]]
| data4    = {{#if:{{{elevation|}}}|{{{elevation|}}}
| data4    = {{If empty|{{{elevation|}}}|{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{Convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|P2044|qid={{{qid|}}}|rank=best|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=elevation|onlysourced={{{onlysourced|no}}}|linked=false|unitabbr=true|convert=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{elevation|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2044}}}}}}<includeonly>{{Main other|[[Category:Infobox mountain using Wikidata value for elevation]]}}</includeonly>}}{{#if:{{{elevation_ref|{{{elevation_note|}}}}}}|&#8239;{{{elevation_ref|{{{elevation_note|}}}}}}}}{{If empty|{{#if:{{{elevation_system|}}}|<br/>{{{elevation_system|}}}}}|{{#if:{{#invoke:WikidataIB|getValue|P2044|qual=P459|qualsonly=Y|qid={{{qid|}}}|ps=1}}|<br/>{{#invoke:WikidataIB|getValue|P2044|qual=P459|qualsonly=Y|qid={{{qid|}}}|rank=best|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=elevation_system|onlysourced={{{onlysourced|no}}}|linked=true|shortname=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{elevation_system|}}}}}{{Main other|[[Category:Infobox mountain using Wikidata value for elevation_system]]}}}}|}}
            | {{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|{{convert|input=P2044}}}}}}<!--
            -->{{#if:{{{elevation_note|}}}{{{elevation_ref|}}}|&#8239;{{if empty|{{{elevation_note|}}}|{{{elevation_ref|}}} }} }}<!--
            -->{{#if:{{{elevation_system|}}}|&#32;{{{elevation_system}}}}}


| label5  = [[Topographic prominence|Prominence]]
| label5  = [[Topographic prominence|Prominence]]

Revision as of 03:42, 7 May 2020

ProminenceP2660
IsolationP2659