Difference between revisions of "Template:Infobox climbing route/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(correct max map size)
imported>Hike395
(sync sandbox)
Line 13: Line 13:
 
|caption1 = {{{photo_caption|}}}
 
|caption1 = {{{photo_caption|}}}
  
|image2  = {{#if:{{{map|}}}|{{#if:{{#ifexist:Module:Location map/data/{{{map}}}|1|{{#ifexist:Template:Location map {{{map}}}|1}}}}|<!--
+
|image2  = {{#if:{{{map|}}}|{{Infobox map
              -->{{location map
+
            | map           = {{{map|}}}
                    | {{{map}}}
+
            | map_width      = {{least|{{ifempty|{{{map_width|}}}|220}}|300}}
                    | relief = {{{relief|}}}
+
            | relief        = {{{relief|}}}
                    | width = {{least|{{ifempty|{{{map_width|}}}|220}}|300}}
+
            | label          = {{ifempty|{{{label|}}}|{{{name|}}} }}
                    | caption = <!-- no value assigned but it must be specified, see {{location map}} -->
+
            | label_position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none --> 
                    | alt = {{ifempty |{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
+
            | map_caption    = {{{map_caption|}}}
                    | float = center
+
            | map_alt        = {{ifempty|{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
                    | label = {{ifempty|{{{label|}}}|{{{name|}}} }}
+
            | mark           = {{{mark|}}}
                    | position = {{lc: {{ifempty|{{{label_position|}}}|none}} }}
+
            | mark_width    = {{ifempty|{{{marker_width|}}}|8}}
                    | mark = {{#if:{{{mark|}}}|{{{mark}}}|Red pog.svg}}
+
    | lat_deg     = {{{lat_d|}}}
                    | marksize = {{#if:{{{marker_width|}}}|{{{marker_width}}}|8}}
+
    | lat_min     = {{{lat_m|}}}
                    | lat_deg     = {{{lat_d|}}}
+
    | lat_sec     = {{{lat_s|}}}
            | lat_min     = {{{lat_m|}}}
+
    | lat_dir     = {{{lat_NS|}}}
            | lat_sec     = {{{lat_s|}}}
+
    | lon_deg     = {{{long_d|}}}
            | lat_dir     = {{{lat_NS|}}}
+
    | lon_min     = {{{long_m|}}}
            | lon_deg     = {{{long_d|}}}
+
    | lon_sec     = {{{long_s|}}}
            | lon_min     = {{{long_m|}}}
+
    | lon_dir     = {{{long_EW|}}}
            | lon_sec     = {{{long_s|}}}
+
            | coordinates   = {{if empty|{{{coordinates|}}}|{{{coords|}}} }}
            | lon_dir     = {{{long_EW|}}}
+
            | x              = {{{x|}}}
                    | coordinates = {{{coordinates|{{{coords|}}}}}} }}|<!--
+
            | y              = {{{y|}}}
          -->{{#invoke:InfoboxImage | InfoboxImage | image={{{map}}}
+
            | x%            = {{{x%|}}}
      | size={{px|{{{map_width|}}}}} | maxsize=300px | sizedefault=220px
+
            | y%            = {{{y%|}}} }} }}
      | alt={{ifempty |{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
 
      | title={{{map_caption|}}} }} }} }}
 
|caption2 = {{{map_caption|}}}
 
  
 
|class1  = note
 
|class1  = note

Revision as of 19:55, 11 March 2017

First free ascentScript error: No such module "If empty".