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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(Wikitable)
Line 1: Line 1:
<includeonly>{| border="1" cellpadding="4" cellspacing="0" style="width:25em; margin: 0; background: #fafafa; border: 1px #aaa solid; border-collapse: collapse;"
+
<includeonly>{| border="1" class="wikitable" style="width:25em; background:#fffff; text-align:center;"
 
|- style="background-color:#dddddd;"
 
|- style="background-color:#dddddd;"
 
! {{{map_header|}}}
 
! {{{map_header|}}}
|- style="background-color:#ffffff; text-align:center;"
+
|-
 
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|imagesize=250px|sizedefault=250px|alt={{{map_alt|}}}}}
 
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|imagesize=250px|sizedefault=250px|alt={{{map_alt|}}}}}
|- style="background-color:#ffffff; 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|#55FF55|Yes 57.5%-60%}}{{legend|#80FF80|Yes 55%-57.5%}}{{legend|#AAFFAA|Yes 52.5%-55%}}{{legend|#D5FFD5|Yes 50%-52.5%}}{{legend|#FFD5D5|No 50%-52.5%}}{{legend|#FFAAAA|No 52.5%-55%}}{{legend|#FF8080|No 55%-57.5%}}{{legend|#FF5555|No 57.5%-60%}}{{legend|#FF2A2A|No 60%-62.5%}}{{legend|#FF0000|No 62.5%-65%}}{{legend|#D40000|No 65%-67.5%}}{{legend|#AA0000|No 67.5%-70%}}{{legend|#800000|No 70%-72.5%}}{{legend|#550000|No 72.5%-75%}}{{legend|#2B0000|No >75%}}
+
   | {{legend|#2AFF2A|Yes 60%-62.5%}}
   |{{legend|{{{legend_yes|#24B14C}}}|Yes}}{{legend|{{{legend_no|#DF0A24}}}|No}}
+
    {{legend|#55FF55|Yes 57.5%-60%}}
 +
    {{legend|#80FF80|Yes 55%-57.5%}}
 +
    {{legend|#AAFFAA|Yes 52.5%-55%}}
 +
    {{legend|#D5FFD5|Yes 50%-52.5%}}
 +
    {{legend|#FFD5D5|No 50%-52.5%}}
 +
    {{legend|#FFAAAA|No 52.5%-55%}}
 +
    {{legend|#FF8080|No 55%-57.5%}}
 +
    {{legend|#FF5555|No 57.5%-60%}}
 +
    {{legend|#FF2A2A|No 60%-62.5%}}
 +
    {{legend|#FF0000|No 62.5%-65%}}
 +
    {{legend|#D40000|No 65%-67.5%}}
 +
    {{legend|#AA0000|No 67.5%-70%}}
 +
    {{legend|#800000|No 70%-72.5%}}
 +
    {{legend|#550000|No 72.5%-75%}}
 +
    {{legend|#2B0000|No >75%}}
 +
   | {{legend|{{{legend_yes|#24B14C}}}|Yes}}
 +
    {{legend|{{{legend_no|#DF0A24}}}|No}}
 
   }}
 
   }}
 
  }}
 
  }}
Line 23: Line 39:
 
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|legend_yes=red|legend_no=blue}}
 
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|legend_yes=red|legend_no=blue}}
 
:<code><nowiki>{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=caption}}</nowiki></code>
 
:<code><nowiki>{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=caption}}</nowiki></code>
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=caption}}
+
{{Infobox referendum/map|map=Missing map.svg|map_header=Results by county|map_caption=Caption}}
 
}}</noinclude>
 
}}</noinclude>

Revision as of 22:46, 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
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