Difference between pages "Template:Infobox cave" and "Template:Infobox cave/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
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:{{{ | + | |image2 = {{#if:{{{map_image|{{{image_map|}}}}}}<!-- |
− | | | + | -->|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}<!-- |
− | + | -->|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}} }}|maxsize=256px|alt={{{map_alt|}}}}}<!-- | |
− | + | -->|{{#if:{{yesno|{{{map|}}}}}|{{Infobox mapframe|id={{{qid|}}}|coord={{{coordinates|{{{coords|}}}}}}<!-- | |
− | + | -->|zoom={{{zoom|}}}|length_km={{#if:{{{zoom|}}}||400}}|frame-width={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}}|220}}<!-- | |
− | + | -->|frame-heights={{{map_height|}}}|marker={{{marker|}}}|marker-color={{{marker-color|}}}}}}}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | + | |caption2 = {{{map_caption|}}} |
− | |||
|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 | + | }}{{#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]]}} |