Difference between pages "Template:Infobox cave" and "Template:Infobox cave/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Evad37
(pass coords through to infobox mapframe)
 
imported>Hike395
(update parameter checking)
 
Line 13: Line 13:
 
|caption1 = {{if empty|{{{caption|}}}|{{{photo_caption|}}}}}
 
|caption1 = {{if empty|{{{caption|}}}|{{{photo_caption|}}}}}
  
|image2 = {{#if:{{{map|}}} | {{location map|{{{map|}}}
+
|image2 = {{#if:{{{map_image|{{{image_map|}}}}}}<!--
             | border = infobox | float = center
+
             -->|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}<!--
            | width          = {{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}} }}
+
                  -->|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}} }}|maxsize=256px|alt={{{map_alt|}}}}}<!--
            | default_width  = 220
+
            -->|{{#if:{{yesno|{{{map|}}}}}|{{Infobox mapframe|id={{{qid|}}}|coord={{{coordinates|{{{coords|}}}}}}<!--
            | max_width      = 256
+
                  -->|zoom={{{zoom|}}}|length_km={{#if:{{{zoom|}}}||400}}|frame-width={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}}|220}}<!--
            | relief        = {{{relief|}}}
+
                  -->|frame-heights={{{map_height|}}}|marker={{{marker|}}}|marker-color={{{marker-color|}}}}}}}}}
            | label          = {{if empty|{{{label|}}}|{{{name|}}} }}
 
            | position      = {{if empty|{{{label_position|}}}|none}} <!-- change default to none -->
 
            | caption        = {{{map_caption|}}}
 
            | alt            = {{if empty|{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
 
            | mark          = {{{mark|}}}
 
            | marksize      = {{if empty|{{{mark_width|}}}|{{{mark_size|}}}}}
 
            | coordinates    = {{if empty|{{{coordinates|}}}|{{{coords|}}}}} }}
 
          | {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}} }}|maxsize=256px|alt={{{map_alt|}}}}}
 
          }}
 
|caption2 = {{#if:{{{map|}}} || {{{map_caption|}}} }}
 
  
|image3  = {{#invoke:Infobox mapframe|auto|mapframe-coord={{{coordinates|{{{coords|}}}}}}}}
+
|caption2 = {{{map_caption|}}}
|caption3 = {{#invoke:Infobox mapframe|autocaption}}
 
  
 
|label1  = Location
 
|label1  = Location
Line 37: Line 26:
  
 
|label2  = [[Ordnance Survey National Grid|OS grid]]
 
|label2  = [[Ordnance Survey National Grid|OS grid]]
|data2    = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}}}{{{grid_ref|}}}}}
+
|data2    ={{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}}}{{{grid_ref|}}}}}
  
 
|label3  = [[Irish grid reference system|OSI/OSNI grid]]
 
|label3  = [[Irish grid reference system|OSI/OSNI grid]]
Line 125: Line 114:
 
|data30  = {{{embedded|}}}
 
|data30  = {{{embedded|}}}
  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox cave with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox cave]] with unknown parameter "_VALUE_"|ignoreblank=y| access | alt_name | bcra_grade | caption | child | coordinates | coordinates ref | coords | coords_ref | depth | difficulty | discovery | elevation | embed | embedded | entrance_count | entrance_list | entrances | features | free_data_1 | free_data_2 | free_label_1 | free_label_2 | geology | grid_ref | grid_ref_Ireland | grid_ref_UK | hazards | height_variation | image_map | label | label_position | language | length | lighting | list of entrances | location | map | map_alt | map_caption | map_image | map_size | map_width | mapsize | mark | mark_size | mark_width | name | number of entrances | other_name | photo | photo_alt | photo_caption | photo_width | pronunciation | register | registry | relief | show cave | show cave length | show_cave | show_cave_length | survey | survey electronic format | survey_format | translation | visitors | website | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox cave with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox cave]] with unknown parameter "_VALUE_"|ignoreblank=y| access | alt_name | bcra_grade | caption | child | coordinates | coordinates ref | coords | coords_ref | depth | difficulty | discovery | elevation | embed | embedded | entrance_count | entrance_list | entrances | features | free_data_1 | free_data_2 | free_label_1 | free_label_2 | geology | grid_ref | grid_ref_Ireland | grid_ref_UK | hazards | height_variation | image_map | language | length | lighting | list of entrances | location | map | map_alt | map_caption | map_height | map_image | map_size | map_width | mapsize | marker | marker_color | name | number of entrances | other_name | photo | photo_alt | photo_caption | photo_width | pronunciation | qid | register | registry | show cave | show cave length | show_cave | show_cave_length | survey | survey electronic format | survey_format | translation | visitors | website | zoom
 
}}{{#if:{{{coords|}}}{{{coordinates|}}}|{{Main other|[[Category:Wikipedia cave articles with {{#if:{{{coords_ref|}}}|referenced|unreferenced}} coordinates|{{PAGENAME}}]]}}
 
}}{{#if:{{{coords|}}}{{{coordinates|}}}|{{Main other|[[Category:Wikipedia cave articles with {{#if:{{{coords_ref|}}}|referenced|unreferenced}} coordinates|{{PAGENAME}}]]}}
 
}}{{#if:{{{free_data_1|}}}|{{#if:{{{free_label_1|}}}||[[Category:Pages using infobox cave with unknown parameters|ψ1]]}}
 
}}{{#if:{{{free_data_1|}}}|{{#if:{{{free_label_1|}}}||[[Category:Pages using infobox cave with unknown parameters|ψ1]]}}