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

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

Revision as of 06:36, 11 March 2017

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