Template:Infobox mountain: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zyxw
Use {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title.
meta>Hike395
fold duplicate map cells; remove x,y mark positioning in map
Line 19: Line 19:
| caption    = {{{photo_caption|}}}
| caption    = {{{photo_caption|}}}


| data1    = {{#if:{{{photo|}}} || {{#if:{{{map|}}}
| {{#if:{{{photo|}}}|data31|data1}} = {{#if:{{{map|}}}
             | <div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;>{{Infobox map
             | <div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;>{{Infobox map
                 | map = {{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}
                 | map = {{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}
Line 26: Line 26:
                 | map_width = {{ifempty|{{{map_width|}}}|{{{map_size|}}} }}
                 | map_width = {{ifempty|{{{map_width|}}}|{{{map_size|}}} }}
                 | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}} }}
                 | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}} }}
                | overlay = {{{map_overlay|}}}
                 | mark = Red triangle with thick white border.svg
                 | mark = Red triangle with thick white border.svg
                 | mark_width = {{least|{{#expr:({{{map_size|}}}/17.0) round 0}}|16}}
                 | mark_width = {{least|{{#expr:({{{map_size|}}}/17.0) round 0}}|16}}
                 | relief = {{#ifeq:{{{map_relief|}}}|0||1}}
                 | relief = {{#ifeq:{{{map_relief|}}}|0||1}}
                | x = {{{x|}}} | y = {{{y|}}}
                | x% = {{{x%|}}} | y% = {{{y%|}}}
                 | label = {{ifempty|{{{label|}}}|{{#if:{{{range_lat_d|}}}||{{{name|}}} }} }}
                 | label = {{ifempty|{{{label|}}}|{{#if:{{{range_lat_d|}}}||{{{name|}}} }} }}
                 | label_position ={{{label_position|}}}
                 | label_position ={{{label_position|}}}
Line 42: Line 39:
                 | lon_sec  = {{#if:{{{range_lat_d|}}}|{{{range_long_s|}}}|{{{long_s|}}} }}
                 | lon_sec  = {{#if:{{{range_lat_d|}}}|{{{range_long_s|}}}|{{{long_s|}}} }}
                 | lon_dir  = {{#if:{{{range_lat_d|}}}|{{{range_long_EW|}}}|{{{long_EW|}}} }} }}
                 | lon_dir  = {{#if:{{{range_lat_d|}}}|{{{range_long_EW|}}}|{{{long_EW|}}} }} }}
             </div>}} }}
             </div>}}


| header4  = {{#if:{{{highest|}}}{{{lat_d|}}}{{{long_d|}}}{{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}{{{prominence|}}}{{{prominence_m|}}}{{{prominence_ft|}}}{{{isolation|}}}{{{isolation_mi|}}}{{{isolation_km|}}}{{{parent_peak|}}}{{{isolation_parent|}}}{{{listing|}}}{{{coordinates|}}}{{{coords|}}}|Highest point}}
| header4  = {{#if:{{{highest|}}}{{{lat_d|}}}{{{long_d|}}}{{{elevation|}}}{{{elevation_m|}}}{{{elevation_ft|}}}{{{prominence|}}}{{{prominence_m|}}}{{{prominence_ft|}}}{{{isolation|}}}{{{isolation_mi|}}}{{{isolation_km|}}}{{{parent_peak|}}}{{{isolation_parent|}}}{{{listing|}}}{{{coordinates|}}}{{{coords|}}}|Highest point}}
Line 157: Line 154:
             -->{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}{{{topo_map|}}}<!---
             -->{{{topo|}}}{{{grid_ref_UK|}}}{{{grid_ref_Ireland|}}}{{{topo_map|}}}<!---
             -->{{{biome|}}}{{{range_lat_d|}}}{{{range_long_d|}}}|Geography}}
             -->{{{biome|}}}{{{range_lat_d|}}}{{{range_long_d|}}}|Geography}}
 
<!-- data31 reserved for map when photo is present -->
| data31   = {{#if:{{{photo|}}} | {{#if:{{{map|}}}
            | <div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;>{{Infobox map
                | map = {{{map|}}}
                | map_alt = {{{map_alt|}}}
                | default_width = 272
                | map_width = {{ifempty|{{{map_width|}}}|{{{map_size|}}} }}
                | map_caption = {{ifempty|{{{map_caption|}}}|{{{location|}}}}}
                | overlay = {{{map_overlay|}}}
                | mark = Red triangle with thick white border.svg
                | mark_width = {{least|{{#expr:({{{map_size|}}}/17.0) round 0}}|16}}
                | relief = {{#ifeq:{{{map_relief|}}}|0||1}}
                | x = {{{x|}}} | y = {{{y|}}}
                | x% = {{{x%|}}} | y% = {{{y%|}}}
                | label = {{ifempty|{{{label|}}}|{{#if:{{{range_lat_d|}}}||{{{name|}}} }} }}
                | label_position ={{{label_position|}}}
                | lat_deg = {{#if:{{{range_lat_d|}}}|{{{range_lat_d}}}|{{{lat_d|}}} }}
                | lat_min  = {{#if:{{{range_lat_d|}}}|{{{range_lat_m|}}}|{{{lat_m|}}} }}
                | lat_sec  = {{#if:{{{range_lat_d|}}}|{{{range_lat_s|}}}|{{{lat_s|}}} }}
                | lat_dir  = {{#if:{{{range_lat_d|}}}|{{{range_lat_NS|}}}|{{{lat_NS|}}} }}
                | lon_deg = {{#if:{{{range_lat_d|}}}|{{{range_long_d}}}|{{{long_d|}}} }}
                | lon_min  = {{#if:{{{range_lat_d|}}}|{{{range_long_m|}}}|{{{long_m|}}} }}
                | lon_sec  = {{#if:{{{range_lat_d|}}}|{{{range_long_s|}}}|{{{long_s|}}} }}
                | lon_dir  = {{#if:{{{range_lat_d|}}}|{{{range_long_EW|}}}|{{{long_EW|}}} }} }}
            </div>}}}}
               
| class32 = label
| class32 = label
| label32 = Location
| label32 = Location
Line 296: Line 268:


| data71  = {{{misc|{{{module|}}}}}}
| data71  = {{{misc|{{{module|}}}}}}
}}{{#if:{{{map|}}}|{{#ifeq:{{{map|}}}|{{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}||[[Category:Pages using hardcoded relief location maps]]}}}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox mountain with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox mountain]] with unknown parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_note | authority | biome | border | border1 | border2 | border3 | border4 | border5 | border6 | border7 | child | city | city_type | city1 | city10 | city11 | city12 | city13 | city14 | city15 | city16 | city17 | city18 | city2 | city3 | city4 | city5 | city6 | city7 | city8 | city9 | coord_type | coordinates | coordinates_no_title | coordinates_note | coordinates_ref | coords | coords_ref | country | country_type | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country17 | country18 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | dim | display | district | district_type | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district17 | district18 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | easiest_route | elevation | elevation_ft | elevation_m | elevation_note | elevation_ref | elevation_system | embedded | etymology | first_ascent | format | formed_by | geology | geology1 | geology2 | grid_ref_Ireland | grid_ref_UK | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | lat_d | lat_m | lat_NS | lat_s | length | length_km | length_mi | length_note | length_orientation | listing | location | long_d | long_EW | long_m | long_s | map | map_alt | map_caption | map_overlay | map_relief | map_size | map_width | misc | module | name | native_name | native_name_lang | nickname | normal_route | orogeny | other_name | parent | parent_peak | period | period1 | photo | photo_alt | photo_caption | photo_size | photo_width | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | range | range_coordinates_note | range_lat_d | range_lat_m | range_lat_NS | range_lat_s | range_long_d | range_long_EW | range_long_m | range_long_s | region | region_code | region_type | region1 | region10 | region11 | region12 | region13 | region14 | region15 | region16 | region17 | region18 | region19 | region2 | region20 | region21 | region22 | region23 | region3 | region4 | region5 | region6 | region7 | region8 | region9 | scale | source | state | state_type | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state17 | state18 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volume | volume_km3 | volume_mi3 | volume_note | width | width_km | width_mi | width_note | width_orientation | x | x% | y | y% }}<noinclude><!--
}}{{#if:{{{map|}}}|{{#ifeq:{{{map|}}}|{{#invoke:string|replace|{{{map|}}}| relief$||plain=false}}||[[Category:Pages using hardcoded relief location maps]]}}}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox mountain with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox mountain]] with unknown parameter "_VALUE_"|ignoreblank=y| access | age | area | area_km2 | area_mi2 | area_note | authority | biome | border | border1 | border2 | border3 | border4 | border5 | border6 | border7 | child | city | city_type | city1 | city10 | city11 | city12 | city13 | city14 | city15 | city16 | city17 | city18 | city2 | city3 | city4 | city5 | city6 | city7 | city8 | city9 | coord_type | coordinates | coordinates_no_title | coordinates_note | coordinates_ref | coords | coords_ref | country | country_type | country1 | country10 | country11 | country12 | country13 | country14 | country15 | country16 | country17 | country18 | country2 | country3 | country4 | country5 | country6 | country7 | country8 | country9 | dim | display | district | district_type | district1 | district10 | district11 | district12 | district13 | district14 | district15 | district16 | district17 | district18 | district2 | district3 | district4 | district5 | district6 | district7 | district8 | district9 | easiest_route | elevation | elevation_ft | elevation_m | elevation_note | elevation_ref | elevation_system | embedded | etymology | first_ascent | format | formed_by | geology | geology1 | geology2 | grid_ref_Ireland | grid_ref_UK | highest | highest_location | isolation | isolation_km | isolation_mi | isolation_parent | isolation_ref | label | label_position | language | last_eruption | lat_d | lat_m | lat_NS | lat_s | length | length_km | length_mi | length_note | length_orientation | listing | location | long_d | long_EW | long_m | long_s | map | map_alt | map_caption | map_overlay | map_relief | map_size | map_width | misc | module | name | native_name | native_name_lang | nickname | normal_route | orogeny | other_name | parent | parent_peak | period | period1 | photo | photo_alt | photo_caption | photo_size | photo_width | prominence | prominence_ft | prominence_m | prominence_ref | pronunciation | range | range_coordinates_note | range_lat_d | range_lat_m | range_lat_NS | range_lat_s | range_long_d | range_long_EW | range_long_m | range_long_s | region | region_code | region_type | region1 | region10 | region11 | region12 | region13 | region14 | region15 | region16 | region17 | region18 | region19 | region2 | region20 | region21 | region22 | region23 | region3 | region4 | region5 | region6 | region7 | region8 | region9 | scale | source | state | state_type | state1 | state10 | state11 | state12 | state13 | state14 | state15 | state16 | state17 | state18 | state2 | state3 | state4 | state5 | state6 | state7 | state8 | state9 | topo | topo_maker | topo_map | translation | type | volcanic_arc | volcanic_arc/belt | volcanic_belt | volcanic_field | volume | volume_km3 | volume_mi3 | volume_note | width | width_km | width_mi | width_note | width_orientation }}<noinclude><!--
   PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS
   PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS
-->{{documentation}}</noinclude>
-->{{documentation}}</noinclude>

Revision as of 12:26, 12 March 2017