Difference between revisions of "Template:Infobox glacier/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(sync sandbox)
imported>Hike395
(test new infobox map)
Line 15: Line 15:
 
|caption1    = {{{photo_caption|}}}
 
|caption1    = {{{photo_caption|}}}
  
|image2      = {{#if:{{{map|}}}|{{Infobox map
+
|image2      = {{#if:{{{map|}}}|{{Infobox map/sandbox
               | map            = {{{map|}}}
+
               | map            = {{{map}}}
               | map_width      = {{#if:{{{map_width|}}}{{{map_size|}}}|{{least|{{ifempty|{{{map_width|}}}|{{{map_size|}}}}}|272}}}}
+
               | map_width      = {{ifempty|{{{map_width|}}}|{{{map_size|}}} }}
 
               | default_width  = 248
 
               | default_width  = 248
 +
              | max_width      = 272
 
               | relief        = {{#ifeq:{{{map_relief|}}}|0||1}}
 
               | relief        = {{#ifeq:{{{map_relief|}}}|0||1}}
 
               | label          = {{#if:{{{label|}}}|{{{label|}}}|{{#if:{{{label_position|}}}|{{{name|}}} }}}}
 
               | label          = {{#if:{{{label|}}}|{{{label|}}}|{{#if:{{{label_position|}}}|{{{name|}}} }}}}
Line 24: Line 25:
 
               | map_caption    = {{ifempty|{{{map_caption|}}}|{{{location|}}} }}
 
               | map_caption    = {{ifempty|{{{map_caption|}}}|{{{location|}}} }}
 
               | map_alt        = {{ifempty|{{{map_alt|}}}|{{{map_caption|}}}|Map showing the location of {{{glacier_name|{{{name|}}}}}} }}
 
               | map_alt        = {{ifempty|{{{map_alt|}}}|{{{map_caption|}}}|Map showing the location of {{{glacier_name|{{{name|}}}}}} }}
               | mark          = {{ifempty|{{{mark|}}}|Red pog.svg }}
+
               | mark          = {{{mark|}}}
               | mark_width    = {{ifempty|{{{marker_width|}}}|8}}
+
               | mark_width    = {{{marker_width|}}}
               | coordinates    = {{{coordinates|{{{coords|}}}}}}
+
               | coordinates    = {{{coordinates|{{{coords|}}}}}} }} }}
              | x% = {{{x%|}}} | y% = {{{y%|}}}
 
              | x  = {{{x|}}}  | y  = {{{y|}}} }} }}
 
  
 
|class1 = category
 
|class1 = category

Revision as of 03:30, 12 March 2017