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

From blackwiki
Jump to navigation Jump to search
(Wikitable)
(Percentage ranges)
Line 8: Line 8:
 
  | {{{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}}
 
   | {{legend|{{{legend_yes|#24B14C}}}|Yes}}

Revision as of 22:50, 23 May 2015

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