Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Redrose64
m bugfix per talk page
meta>WOSlinker
update as per talk page request
Line 1: Line 1:
{{infobox
{{infobox
| child      = {{{child|}}}
| bodyclass  = vcard
| bodyclass  = vcard
| bodystyle  = line-height: normal; font-size:95%; border-spacing: 2px;
| bodystyle  = line-height: normal; font-size:95%; border-spacing: 2px;
Line 5: Line 6:
| abovestyle  = background-color: #e7dcc3;
| abovestyle  = background-color: #e7dcc3;
| aboveclass  = fn org
| aboveclass  = fn org
| above      = {{{name}}}
| above      = {{ifempty
                | {{{name|}}}
                | <includeonly>{{error|Mountain name required|tag=span}}<!--
                  -->{{main other|[[Category:Mountain articles requiring maintenance]]}}</includeonly>}}


| headerstyle = background-color: #e7dcc3;
| headerstyle = background-color: #e7dcc3;
| labelstyle  = padding:4px; border:0px; vertical-align:text-top; white-space: nowrap;
| labelstyle  = padding:4px; vertical-align:text-top; white-space: nowrap;
| datastyle  = padding:4px; border:0px; vertical-align:text-top;
| datastyle  = padding:4px; vertical-align:text-top;


| subheader  = {{{other_name|}}}
| subheader  = {{ifempty|{{{other_name|}}}|{{{native_name|}}}}}


| image      = {{#if:{{{photo|}}}|[[Image:{{{photo|}}}|{{least|{{{photo_size}}}|280}}px|alt={{{photo_alt|}}}]]}}
| image      = {{#if:{{{photo|}}}|[[Image:{{{photo|}}}|{{least|{{ifempty|{{{photo_width|}}}|{{{photo_size|}}}}}|280}}px<!--
                -->{{#if:{{{photo_alt|}}}|{{!}}alt={{{photo_alt|}}}}}]]}}
| caption    = {{{photo_caption|}}}
| caption    = {{{photo_caption|}}}


| data1    = {{#if:{{{photo|}}} || {{#if:{{{map|}}} |
| data1    = {{#if:{{{photo|}}} |<!-- if photo then show map below -->
              {{Infobox map
            | {{Infobox map
                | map = {{{map|}}}
              | map = {{{map|}}}
                | map_alt = {{{map_alt|}}}
              | map_alt = {{{map_alt|}}}
                | map_width = {{least|{{{map_size}}}|272}}
              | map_width = {{least|{{ifempty|{{{map_width|}}}|{{{map_size|}}}}}|272}}
                | map_border = {{{map_border|}}}
              | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}}}}
                | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}}}}
              | mark = Red triangle with thick white border.svg
                | mark = Red triangle with thick white border.svg
              | mark_width = 10
                | mark_width = 10
              | relief = {{#ifeq:{{{map_relief|}}}|0||{{{map_relief|}}}}}
                | relief = {{#ifeq:{{{map_relief|}}}|0||{{{map_relief|}}}}}
              | label = {{ifempty|{{{label|}}}|{{{name|}}}}}
                | x = {{{x|}}} | y = {{{y|}}}
              | label_position = {{{label_position|}}}
                | label = {{{label|{{{name|}}}}}}
              | lat = {{decdeg|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}}}}
                | label_position = {{{label_position}}}
              | long = {{decdeg|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}}}}
                | lat = {{decdeg|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}} }}
              | x = {{{x|}}} | y = {{{y|}}}
                | long = {{decdeg|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}} }}
              | x% = {{{x%|}}} | y% = {{{y%|}}}}}}}
                | long_EW = {{{long_EW|{{#ifexpr:{{{long_d|0}}} < 0|W|E}}}}}}} }} }}


| label2  = [[Summit (topography)|Elevation]]
| label2  = [[Summit (topography)|Elevation]]
| data2    = {{#if:{{{elevation|}}} | {{{elevation|}}}
| data2    = {{#if:{{{elevation|}}} | {{{elevation|}}}
             | {{#if:{{{elevation_m|}}} | {{Infobox mountain/convert|{{{elevation_m|}}}|m}}
             | {{#if:{{{elevation_m|}}} | {{Infobox mountain/convert|{{{elevation_m|}}}|m}}
               |  {{#if:{{{elevation_ft|}}} | {{Infobox mountain/convert|{{{elevation_ft|}}}|ft}} }} }} }}<!--
               |  {{#if:{{{elevation_ft|}}} | {{Infobox mountain/convert|{{{elevation_ft|}}}|ft}}}}}}}}<!--
             -->{{#if:{{{elevation_ref|}}} | &thinsp;{{{elevation_ref}}} }}
             -->{{{elevation_ref|}}}


| label3  = [[Topographic prominence|Prominence]]
| label3  = [[Topographic prominence|Prominence]]
| data3    = {{#if:{{{prominence|}}} | {{{prominence|}}}
| data3    = {{#if:{{{prominence|}}} | {{{prominence|}}}
             | {{#if:{{{prominence_m|}}} | {{Infobox mountain/convert|{{{prominence_m|}}}|m}}
             | {{#if:{{{prominence_m|}}} | {{Infobox mountain/convert|{{{prominence_m|}}}|m}}
               |  {{#if:{{{prominence_ft|}}} | {{Infobox mountain/convert|{{{prominence_ft|}}}|ft}} }} }} }}<!--
               |  {{#if:{{{prominence_ft|}}} | {{Infobox mountain/convert|{{{prominence_ft|}}}|ft}}}}}}}}<!--
             -->{{#if:{{{prominence_ref|}}} | &thinsp;{{{prominence_ref}}} }}
             -->{{{prominence_ref|}}}


| label4  = [[Topographic prominence#Prominence parentage|Parent peak]]
| label4  = [[Topographic prominence#Prominence parentage|Parent peak]]
| data4    = {{{parent_peak|}}}
| data4    = {{{parent_peak|}}}
| label5  = Traversed by
| data5    = {{{traversed|}}}


| class6  = category
| class6  = category
Line 57: Line 58:
| label7  = Translation
| label7  = Translation
| data7    = {{#if:{{{translation|}}}| ''{{{translation|}}}''<!--
| data7    = {{#if:{{{translation|}}}| ''{{{translation|}}}''<!--
              -->{{#if:{{{language|}}}|&#32;({{{language|}}}) }}}}
            -->{{#if:{{{language|}}}|&#32;({{{language|}}}) }}}}


| label8  = [[help:IPA|Pronunciation]]
| label8  = [[help:IPA|Pronunciation]]
| data8    = {{#if:{{{pronunciation|}}}|{{IPA|{{{pronunciation|}}}}} }}
| data8    = {{#if:{{{pronunciation|}}}|{{IPA|{{{pronunciation|}}}}}}}


| header10 = {{#if:{{#if:{{{photo|}}}|{{{map|}}} }}<!--
| header10 = {{#if:{{#if:{{{photo|}}}|{{{map|}}}}}{{{location|}}}{{{range|}}}{{{lat_d|}}}{{{long_d|}}}<!--
              -->{{{location|}}}{{{range|}}}{{{lat_d|}}}{{{long_d|}}}{{{coordinates|}}}<!--
            -->{{{coordinates|}}}{{{coords|}}}{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}|Location}}
              -->{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}|Location|}}


| data11  = {{#if:{{{photo|}}} | {{#if:{{{map|}}} |
| data11  = {{#if:{{{photo|}}}
               {{Infobox map
            | {{Infobox map
                | map = {{{map|}}}
               | map = {{{map|}}}
                | map_alt = {{{map_alt|}}}
              | map_alt = {{{map_alt|}}}
                | map_width = {{least|{{{map_size}}}|272}}
              | map_width = {{least|{{ifempty|{{{map_width|}}}|{{{map_size|}}}}}|272}}
                | map_border = {{{map_border|}}}
              | map_border = {{{map_border|}}}
                | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}}}}
              | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}}}}
                | mark = Red triangle with thick white border.svg
              | mark = Red triangle with thick white border.svg
                | mark_width = 10
              | mark_width = 10
                | relief = {{#ifeq:{{{map_relief|}}}|0||{{{map_relief|}}}}}
              | relief = {{#ifeq:{{{map_relief|}}}|0||{{{map_relief|}}}}}
                | x = {{{x|}}} | y = {{{y|}}}
              | label = {{ifempty|{{{label|}}}|{{{name|}}}}}
                | label = {{{label|{{{name|}}}}}}
              | label_position = {{{label_position|}}}
                | label_position = {{{label_position}}}
              | lat = {{decdeg|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}}}}
                | lat = {{decdeg|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}}}}
              | long = {{decdeg|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}}}}
                | long = {{decdeg|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}}}}
              | x = {{{x|}}} | y = {{{y|}}}
                | long_EW = {{{long_EW|{{#ifexpr:{{{long_d|0}}} < 0|W|E}}}}} }} }} }}
              | x% = {{{x%|}}} | y% = {{{y%|}}}}}}}


| class12  = label
| class12  = label
| label12  = Location
| label12  = Location
| data12  = {{#if:{{{map|}}}|{{#if:{{{map_caption|}}}|{{{location|}}} }}|{{{location|}}} }}
| data12  = {{#if:{{{map|}}}|{{#if:{{{map_caption|}}}|{{{location|}}}}}|{{{location|}}}}}


| class13  = category
| class13  = category
Line 99: Line 99:
| label16  = [[Geographic coordinate system|Coordinates]]
| label16  = [[Geographic coordinate system|Coordinates]]
| data16  = {{#if:{{{lat_d|}}}{{{long_d|}}}
| data16  = {{#if:{{{lat_d|}}}{{{long_d|}}}
              |{{Infobox coord
            | {{Infobox coord
                  | lat_d  = {{{lat_d|}}}
              | lat_d  = {{{lat_d|}}}
                  | lat_m  = {{{lat_m|}}}
              | lat_m  = {{{lat_m|}}}
                  | lat_s  = {{{lat_s|}}}
              | lat_s  = {{{lat_s|}}}
                  | lat_NS  = {{{lat_NS|}}}
              | lat_NS  = {{{lat_NS|}}}
                  | long_d  = {{{long_d|}}}
              | long_d  = {{{long_d|}}}
                  | long_m  = {{{long_m|}}}
              | long_m  = {{{long_m|}}}
                  | long_s  = {{{long_s|}}}
              | long_s  = {{{long_s|}}}
                  | long_EW = {{{long_EW|}}}
              | long_EW = {{{long_EW|}}}
                  | type    = {{{coord_type|mountain}}}
              | type    = {{ifempty|{{{coord_type|}}}|mountain}}
                  | region  = {{{region|}}}
              | region  = {{{region|}}}
                  | dim    = {{{dim|}}}
              | dim    = {{{dim|}}}
                  | scale  = {{{scale|}}}
              | scale  = {{{scale|}}}
                  | source  = {{{source|}}}
              | source  = {{{source|}}}
                  | format = {{{format|}}} <!-- default is dms -->
              | format = {{{format|}}}   <!-- default is dms -->
                  | display  = {{{display|}}} <!-- default is inline,title -->
              | display  = {{{display|}}} <!-- default is inline,title -->
                  | name    = <!-- leave undefined -->
              | name    = <!-- leave undefined -->
                }}<!--
              }}
                -->{{#if:{{{coordinates_ref|}}}|{{{coordinates_ref}}} }}
            | {{ifempty|{{{coordinates|}}}|{{{coords|}}}}}
              |{{#if:{{{coordinates|}}}|{{{coordinates|}}}<!--
            }}{{ifempty|{{{coordinates_ref|}}}|{{{coords_ref|}}}}}
                -->{{#if:{{{coordinates_ref|}}}|{{{coordinates_ref}}} }} }}
            }}


| label17  = [[Topographic map|Topo map]]
| label17  = [[Topographic map|Topo map]]
| data17  = {{{topo|}}}
| data17  = {{{topo|}}}


| header19 = {{#if:{{{type|}}}{{{age|}}}<!--
| header19 = {{#if:{{{type|}}}{{{age|}}}{{{volcanic_arc|}}}{{{volcanic_belt|}}}{{{volcanic_field|}}}<!--
               -->{{{volcanic_arc/belt|}}}{{{last_eruption|}}}|Geology|}}
               -->{{{volcanic_arc/belt|}}}{{{last_eruption|}}}|Geology}}
 
| label20  = [[List of mountain types|Type]]
| label20  = [[List of mountain types|Type]]
| data20  = {{{type|}}}
| data20  = {{{type|}}}
Line 134: Line 132:
| data21  = {{{age|}}}
| data21  = {{{age|}}}


| label22  = Volcanic [[Volcanic arc|arc]]/[[Volcanic belt|belt]]
| label22  = {{#if:{{{volcanic_arc|}}}|[[Volcanic arc]]
| data22  = {{{volcanic_arc/belt|}}}
            | {{#if:{{{volcanic_belt|}}}|[[Volcanic belt]]
              | {{#if:{{{volcanic_field|}}}|[[Volcanic field]]
                | {{#if:{{{volcanic_arc/belt|}}}|Volcanic [[Volcanic arc|arc]]/[[Volcanic belt|belt]]}}}}}}}}
| data22  = {{ifempty|{{{volcanic_arc|}}}|{{{volcanic_belt|}}}|{{{volcanic_field|}}}|{{{volcanic_arc/belt|}}}}}


| label23  = [[Volcano|Last eruption]]
| label23  = [[Volcano|Last eruption]]
| data23  = {{{last_eruption|}}}
| data23  = {{{last_eruption|}}}


| header25 = {{#if:{{{first_ascent|}}}{{{easiest_route|}}}|Climbing|}}
| header25 = {{#if:{{{first_ascent|}}}{{{easiest_route|}}}|Climbing}}


| label26  = [[First ascent]]
| label26  = [[First ascent]]
Line 147: Line 148:
| label27  = Easiest [[Climbing route|route]]
| label27  = Easiest [[Climbing route|route]]
| data27  = {{{easiest_route|}}}
| data27  = {{{easiest_route|}}}
| data28  = {{{embedded|}}}
}}<noinclude>
}}<noinclude>
<!--
<!--
Line 152: Line 155:
   TO THE /doc SUBPAGE, THANKS
   TO THE /doc SUBPAGE, THANKS
-->
-->
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:06, 29 April 2012

Template:Ifempty
Template:Ifempty
Template:Infobox map
CoordinatesTemplate:IfemptyTemplate:Ifempty
Template:Ifempty