Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Rehman
adding Wikidata code for volume - switch NONE to ALL to enable
meta>Hike395
Reverted to revision 957545721 by Hike395 (talk): Rv latest edits which introduce bugs in live infoboxes (TW)
Line 66: Line 66:


| label11      = Length
| label11      = Length
| data11        = {{If first display both|{{If empty|{{{length|}}}|{{#if:{{{length_km|}}}{{{length_mi|}}}|{{Convinfobox|{{{length_km|}}}|km|{{{length_mi|}}}|mi}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2043|2=|name=length|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2043}}}}}}}}|{{If last display both| |{{If empty|{{{length_orientation|}}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2043|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q36477|nomatch=}}|Q36477|(NS)|}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2043|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q34027|nomatch=}}|Q34027|(EW)|}}}}}}{{If last display both| |{{{length_ref|{{{length_note|}}}}}}}}}}
| data11        = {{#if:{{{length|}}}|{{{length}}}|{{#if:{{{length_km|}}}{{{length_mi|}}}|<!--
                -->{{convinfobox|{{{length_km|}}}|km|{{{length_mi|}}}|mi}} }} }}<!--
                -->{{#if:{{{length_km|}}}{{{length_mi|}}}{{{length|}}}|<!--
                -->{{#if:{{{length_orientation|}}}|&#32;{{{length_orientation}}} }}<!--
                -->{{#if:{{{length_note|}}}|&#8239;{{{length_note}}} }} }}


| label12      = Width
| label12      = Width
| data12        = {{If first display both|{{If empty|{{{width|}}}|{{#if:{{{width_km|}}}{{{width_mi|}}}|{{Convinfobox|{{{width_km|}}}|km|{{{width_mi|}}}|mi}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2049|2=|name=width|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2049}}}}}}}}|{{If last display both|&#32;|{{If empty|{{{width_orientation|}}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2049|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q36477|nomatch=}}|Q36477|(NS)|}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2049|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q34027|nomatch=}}|Q34027|(EW)|}}}}}}{{If last display both|&#32;|{{{width_ref|{{{width_note|}}}}}}}}}}
| data12        = {{#if:{{{width|}}}|{{{width}}}|{{#if:{{{width_km|}}}{{{width_mi|}}}|<!--
                -->{{convinfobox|{{{width_km|}}}|km|{{{width_mi|}}}|mi}} }} }}<!--
                -->{{#if:{{{width_km|}}}{{{width_mi|}}}{{{width|}}}<!--
                -->|{{#if:{{{width_orientation|}}}|&#32;{{{width_orientation}}} }}<!--
                -->{{#if:{{{width_note|}}}|&#8239;{{{width_note}}} }} }}


| label13      = Area
| label13      = Area
| data13        = {{If first display both|{{If empty|{{{area|}}}|{{#if:{{{area_km2|}}}{{{area_mi2|}}}|{{Convinfobox|{{{area_km2|}}}|km2|{{{area_mi2|}}}|mi2}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2046|2=|name=area|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2046}}}}}}}}|{{If last display both|&#32;|{{{area_ref|{{{area_note}}}}}}}}}}
| data13        = {{#if:{{{area|}}}|{{{area}}}|{{#if:{{{area_km2|}}}{{{area_mi2|}}}|<!--
                -->{{convinfobox|{{{area_km2|}}}|km2|{{{area_mi2|}}}|mi2}} }} }}<!--
                -->{{#if:{{{area_km2|}}}{{{area_mi2|}}}{{{area|}}}|<!--
                -->{{#if:{{{area_note|}}}|&#8239;{{{area_note}}} }} }}


| label14      = Volume
| label14      = Volume
| data14        = {{If first display both|{{If empty|{{{volume|}}}|{{#if:{{{volume_km3|}}}{{{volume_mi3|}}}|{{Convinfobox|{{{volume_km3|}}}|km3|{{{volume_mi3|}}}|mi3}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2234|2=|name=volume|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2234}}}}}}}}|{{If last display both|&#32;|{{{volume_ref|{{{volume_note}}}}}}}}}}
| data14        = {{#if:{{{volume|}}}|{{{volume}}}|{{#if:{{{volume_km3|}}}{{{volume_mi3|}}}|<!--
                -->{{convinfobox|{{{volume_km3|}}}|km3|{{{volume_mi3|}}}|mi3}} }} }}<!--
                -->{{#if:{{{volume_km3|}}}{{{volume_km3|}}}{{{volume|}}}|<!--
                -->{{#if:{{{volume_note|}}}|&#8239;{{{volume_note}}} }} }}


| header15      = {{#if:{{{etymology|}}}{{{nickname|}}}{{{native_name|}}}{{{translation|}}}{{{language|}}}{{{native_name_lang|}}}{{{pronunciation|}}}|Naming|}}
| header15      = {{#if:{{{etymology|}}}{{{nickname|}}}{{{native_name|}}}{{{translation|}}}{{{language|}}}{{{native_name_lang|}}}{{{pronunciation|}}}|Naming|}}

Revision as of 03:27, 1 June 2020