Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Hike395
add note field for grid_ref_UK and grid_ref_Ireland
meta>Trialpears
m Changed ifempty to if empty per talk page and User talk:Colonies Chris#Cosmetic edit requests
Line 17: Line 17:
| subheader  = {{{other_name|}}}
| subheader  = {{{other_name|}}}


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{photo|}}}|size={{ifempty|{{{photo_width|}}}|{{{photo_size|}}}|frameless}}|upright={{{photo_upright|1.21}}}|maxsize=300px|alt={{{photo_alt|}}}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{photo|}}}|size={{if empty|{{{photo_width|}}}|{{{photo_size|}}}|frameless}}|upright={{{photo_upright|1.21}}}|maxsize=300px|alt={{{photo_alt|}}}}}
| caption    = {{{photo_caption|}}}
| caption    = {{{photo_caption|}}}


Line 26: Line 26:
                 | default_width = 256
                 | default_width = 256
                 | max_width = 288
                 | max_width = 288
                 | width = {{ifempty|{{{map_width|}}}|{{{map_size|}}} }}
                 | width = {{if empty|{{{map_width|}}}|{{{map_size|}}} }}
                 | caption = {{#switch:{{{map_caption|}}}|none=|#default={{ifempty|{{{map_caption|}}}|{{{location|}}} }} }}
                 | caption = {{#switch:{{{map_caption|}}}|none=|#default={{if empty|{{{map_caption|}}}|{{{location|}}} }} }}
                 | 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 = {{ifempty|{{{label|}}}|{{#if:{{{range_coordinates|}}}||{{{name|}}} }} }}
                 | label = {{if empty|{{{label|}}}|{{#if:{{{range_coordinates|}}}||{{{name|}}} }} }}
                 | position ={{{label_position|}}}
                 | position ={{{label_position|}}}
                 | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }}
                 | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }}
Line 48: Line 48:
| data4    = {{#if:{{{elevation|}}}|{{{elevation|}}}
| data4    = {{#if:{{{elevation|}}}|{{{elevation|}}}
             | {{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|{{convert|input=P2044}}}}}}<!--
             | {{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|{{convert|input=P2044}}}}}}<!--
             -->{{#if:{{{elevation_note|}}}{{{elevation_ref|}}}|&thinsp;{{ifempty|{{{elevation_note|}}}|{{{elevation_ref|}}} }} }}<!--
             -->{{#if:{{{elevation_note|}}}{{{elevation_ref|}}}|&thinsp;{{if empty|{{{elevation_note|}}}|{{{elevation_ref|}}} }} }}<!--
             -->{{#if:{{{elevation_system|}}}|&#32;<span style="font-size:80%;">{{{elevation_system}}}</span>}}
             -->{{#if:{{{elevation_system|}}}|&#32;<span style="font-size:80%;">{{{elevation_system}}}</span>}}


Line 70: Line 70:


| label9  = [[Geographic coordinate system|Coordinates]]
| label9  = [[Geographic coordinate system|Coordinates]]
| data9    = {{#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|}}}}}}}}}}}<!--
| data9    = {{#if:{{{coordinates|}}}{{{coords|}}}|{{#invoke:Coordinates|coordinsert|{{if empty|{{{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|}}}}}}}}}}}<!--
     -->&thinsp;{{ifempty|{{{coordinates_note|}}}|{{{coordinates_ref|}}}|{{{coords_ref|}}} }} }}
     -->&thinsp;{{if empty|{{{coordinates_note|}}}|{{{coordinates_ref|}}}|{{{coords_ref|}}} }} }}


| header10  = {{#if:{{{length|}}}{{{length_km|}}}{{{length_mi|}}}{{{width|}}}{{{width_km|}}}{{{width_mi|}}}{{{area|}}}{{{area_km2|}}}{{{area_mi2|}}}|Dimensions}}
| header10  = {{#if:{{{length|}}}{{{length_km|}}}{{{length_mi|}}}{{{width|}}}{{{width_km|}}}{{{width_mi|}}}{{{area|}}}{{{area_km2|}}}{{{area_mi2|}}}|Dimensions}}
Line 170: Line 170:


| label34  = [[Geographic coordinate system|Range coordinates]]
| label34  = [[Geographic coordinate system|Range coordinates]]
| data34    = {{#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}}} }}
| data34    = {{#if:{{{range_coordinates|}}}{{{range_coords|}}}|{{#invoke:Coordinates|coordinsert|{{if empty|{{{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}}} }}


| class35  = category
| class35  = category
Line 189: Line 189:


| label40  = [[Topographic map|Topo map]]
| label40  = [[Topographic map|Topo map]]
| data40  = {{#if:{{{topo_maker|}}}|{{{topo_maker}}}&nbsp;}}{{ifempty|{{{topo|}}}|{{{topo_map|}}} }}
| data40  = {{#if:{{{topo_maker|}}}|{{{topo_maker}}}&nbsp;}}{{if empty|{{{topo|}}}|{{{topo_map|}}} }}


| label41  = [[Biome]]
| label41  = [[Biome]]
Line 203: Line 203:


| label45  = [[Geologic time scale|Age of rock]]
| label45  = [[Geologic time scale|Age of rock]]
| data45  = {{ifempty|{{{age|}}}|{{enum|{{{period|}}}|{{{period1|}}}|{{{period2|}}}|{{{period3|}}}|{{{period4|}}}|{{{period5|}}} }} }}
| data45  = {{if empty|{{{age|}}}|{{enum|{{{period|}}}|{{{period1|}}}|{{{period2|}}}|{{{period3|}}}|{{{period4|}}}|{{{period5|}}} }} }}


| label46  = [[List of mountain types|Mountain type]]
| label46  = [[List of mountain types|Mountain type]]
Line 215: Line 215:
               | {{#if:{{{volcanic_field|}}}|[[Volcanic field]]
               | {{#if:{{{volcanic_field|}}}|[[Volcanic field]]
                 | {{#if:{{{volcanic_arc/belt|}}}|Volcanic [[Volcanic arc|arc]]/[[Volcanic belt|belt]]}}}}}}}}
                 | {{#if:{{{volcanic_arc/belt|}}}|Volcanic [[Volcanic arc|arc]]/[[Volcanic belt|belt]]}}}}}}}}
| data48  = {{ifempty|{{{volcanic_arc|}}}|{{{volcanic_belt|}}}|{{{volcanic_field|}}}|{{{volcanic_arc/belt|}}}}}
| data48  = {{if empty|{{{volcanic_arc|}}}|{{{volcanic_belt|}}}|{{{volcanic_field|}}}|{{{volcanic_arc/belt|}}}}}


| label49  = [[Types of volcanic eruptions|Last eruption]]
| label49  = [[Types of volcanic eruptions|Last eruption]]

Revision as of 16:56, 10 October 2019

ElevationP2044
ProminenceP2660
IsolationP2659