Difference between revisions of "Template:Infobox referendum/map"
Jump to navigation
Jump to search
Template documentation
imported>Frietjes |
(Wikitable) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{| border="1" | + | <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|}}} | ||
| − | |- | + | |- |
| {{#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=" | + | |- 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= | + | {{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
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}}
{{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 |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |