Difference between revisions of "Template:Infobox referendum/map"

From blackwiki
Jump to navigation Jump to search
(Percentage ranges)
imported>Χ
m (centered map)
Line 3: Line 3:
 
! {{{map_header|}}}
 
! {{{map_header|}}}
 
|-
 
|-
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|imagesize=250px|sizedefault=250px|alt={{{map_alt|}}}}}
+
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|center=yes|imagesize=250px|sizedefault=250px|alt={{{map_alt|}}}}}
 
|- style="text-align:left;"
 
|- style="text-align:left;"
 
| {{#if:{{{map_caption|}}}
 
| {{#if:{{{map_caption|}}}

Revision as of 18:51, 7 March 2016

Template documentation

This subtemplate of {{Infobox referendum}} is used to generate the referendum results map with legend. It should not be used directly.

Examples

{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county}}
Results by county
  Yes
  No
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|detailed_legend=yes}}
Results by county
  Yes 60–62.5%
  Yes 57.5–60%
  Yes 55–57.5%
  Yes 52.5–55%
  Yes 50–52.5%
  No 50–52.5%
  No 52.5–55%
  No 55–57.5%
  No 57.5–60%
  No 60–62.5%
  No 62.5–65%
  No 65–67.5%
  No 67.5–70%
  No 70–72.5%
  No 72.5–75%
  No >75%
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|legend_yes=red|legend_no=blue}}
Results by county
  Yes
  No
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=caption}}
Results by county
Caption