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

From blackwiki
Jump to navigation Jump to search
(Wikitable)
imported>Frietjes
(per talk page)
 
(4 intermediate revisions by 3 users not shown)
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|}}}
 
  | {{{map_caption}}}
 
  | {{{map_caption}}}
 
  | {{#if:{{{detailed_legend|}}}
 
  | {{#if:{{{detailed_legend|}}}
   | {{legend|#2AFF2A|Yes 60%-62.5%}}
+
   | {{legend|#2AFF2A|Yes 60–62.5%}}
     {{legend|#55FF55|Yes 57.5%-60%}}
+
     {{legend|#55FF55|Yes 57.5–60%}}
     {{legend|#80FF80|Yes 55%-57.5%}}
+
     {{legend|#80FF80|Yes 55–57.5%}}
     {{legend|#AAFFAA|Yes 52.5%-55%}}
+
     {{legend|#AAFFAA|Yes 52.5–55%}}
     {{legend|#D5FFD5|Yes 50%-52.5%}}
+
     {{legend|#D5FFD5|Yes 50–52.5%}}
     {{legend|#FFD5D5|No 50%-52.5%}}
+
     {{legend|#FFD5D5|No 50–52.5%}}
     {{legend|#FFAAAA|No 52.5%-55%}}
+
     {{legend|#FFAAAA|No 52.5–55%}}
     {{legend|#FF8080|No 55%-57.5%}}
+
     {{legend|#FF8080|No 55–57.5%}}
     {{legend|#FF5555|No 57.5%-60%}}
+
     {{legend|#FF5555|No 57.5–60%}}
     {{legend|#FF2A2A|No 60%-62.5%}}
+
     {{legend|#FF2A2A|No 60–62.5%}}
     {{legend|#FF0000|No 62.5%-65%}}
+
     {{legend|#FF0000|No 62.5–65%}}
     {{legend|#D40000|No 65%-67.5%}}
+
     {{legend|#D40000|No 65–67.5%}}
     {{legend|#AA0000|No 67.5%-70%}}
+
     {{legend|#AA0000|No 67.5–70%}}
     {{legend|#800000|No 70%-72.5%}}
+
     {{legend|#800000|No 70–72.5%}}
     {{legend|#550000|No 72.5%-75%}}
+
     {{legend|#550000|No 72.5–75%}}
 
     {{legend|#2B0000|No >75%}}
 
     {{legend|#2B0000|No >75%}}
   | {{legend|{{{legend_yes|#24B14C}}}|Yes}}
+
   | {{center|{{legend inline|{{{legend_yes|#24B14C}}}|{{{yes_text|Yes}}}}}   {{legend inline|{{{legend_no|#DF0A24}}}|{{{no_text|No}}}}}}}
    {{legend|{{{legend_no|#DF0A24}}}|No}}
 
 
   }}
 
   }}
 
  }}
 
  }}

Latest revision as of 16:02, 30 May 2017

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
Missing map.svg
  Yes     No
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|detailed_legend=yes}}
Results by county
Missing map.svg
  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
Missing map.svg
  Yes     No
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=caption}}
Results by county
Missing map.svg
Caption