Template:Pie chart: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
>Tin the free
(Blanked the page)
>Tin the free
No edit summary
 
Line 1: Line 1:
 
<includeonly><div class="PieChartTemplate thumb t{{{thumb|right}}}" style="{{{style|}}}"><div class="thumbinner" style="width:202px">
<!-- Graph -->
<div style="background-color:white;margin:auto;position:relative;width:200px;height:200px;overflow:hidden;border-radius:100px;border:1px solid black">
{{#if:{{{value30|}}}|{{Pie chart/slice|{{{color30|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}+{{{value26}}}+{{{value27}}}+{{{value28}}}+{{{value29}}}+{{{value30}}}
}}}}}}<!--
-->{{#if:{{{value29|}}}|{{Pie chart/slice|{{{color29|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}+{{{value26}}}+{{{value27}}}+{{{value28}}}+{{{value29}}}
}}}}}}<!--
-->{{#if:{{{value28|}}}|{{Pie chart/slice|{{{color28|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}+{{{value26}}}+{{{value27}}}+{{{value28}}}
}}}}}}<!--
-->{{#if:{{{value27|}}}|{{Pie chart/slice|{{{color27|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}+{{{value26}}}+{{{value27}}}
}}}}}}<!--
-->{{#if:{{{value26|}}}|{{Pie chart/slice|{{{color26|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}+{{{value26}}}
}}}}}}<!--
-->{{#if:{{{value25|}}}|{{Pie chart/slice|{{{color25|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}+{{{value25}}}
}}}}}}<!--
-->{{#if:{{{value24|}}}|{{Pie chart/slice|{{{color24|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}+{{{value24}}}
}}}}}}<!--
-->{{#if:{{{value23|}}}|{{Pie chart/slice|{{{color23|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}+{{{value23}}}
}}}}}}<!--
-->{{#if:{{{value22|}}}|{{Pie chart/slice|{{{color22|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}+{{{value22}}}
}}}}}}<!--
-->{{#if:{{{value21|}}}|{{Pie chart/slice|{{{color21|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}+{{{value21}}}
}}}}}}<!--
-->{{#if:{{{value20|}}}|{{Pie chart/slice|{{{color20|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}+{{{value20}}}
}}}}}}<!--
-->{{#if:{{{value19|}}}|{{Pie chart/slice|{{{color19|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}+{{{value19}}}
}}}}}}<!--
-->{{#if:{{{value18|}}}|{{Pie chart/slice|{{{color18|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}+{{{value18}}}
}}}}}}<!--
-->{{#if:{{{value17|}}}|{{Pie chart/slice|{{{color17|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}+{{{value17}}}
}}}}}}<!--
-->{{#if:{{{value16|}}}|{{Pie chart/slice|{{{color16|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}+{{{value16}}}
}}}}}}<!--
-->{{#if:{{{value15|}}}|{{Pie chart/slice|{{{color15|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}+{{{value15}}}
}}}}}}<!--
-->{{#if:{{{value14|}}}|{{Pie chart/slice|{{{color14|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}+{{{value14}}}
}}}}}}<!--
-->{{#if:{{{value13|}}}|{{Pie chart/slice|{{{color13|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}+{{{value13}}}
}}}}}}<!--
-->{{#if:{{{value12|}}}|{{Pie chart/slice|{{{color12|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}+{{{value12}}}
}}}}}}<!--
-->{{#if:{{{value11|}}}|{{Pie chart/slice|{{{color11|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}+{{{value11}}}
}}}}}}<!--
-->{{#if:{{{value10|}}}|{{Pie chart/slice|{{{color10|sienna}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}+{{{value10}}}
}}}}}}<!--
-->{{#if:{{{value9|}}}|{{Pie chart/slice|{{{color9|purple}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}+{{{value9}}}
}}}}}}<!--
-->{{#if:{{{value8|}}}|{{Pie chart/slice|{{{color8|orange}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}+{{{value8}}}
}}}}}}<!--
-->{{#if:{{{value7|}}}|{{Pie chart/slice|{{{color7|brown}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}+{{{value7}}}
}}}}}}<!--
-->{{#if:{{{value6|}}}|{{Pie chart/slice|{{{color6|aqua}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}+{{{value6}}}
}}}}}}<!--
-->{{#if:{{{value5|}}}|{{Pie chart/slice|{{{color5|fuchsia}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}+{{{value5}}}
}}}}}}<!--
-->{{#if:{{{value4|}}}|{{Pie chart/slice|{{{color4|yellow}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}+{{{value4}}}
}}}}}}<!--
-->{{#if:{{{value3|}}}|{{Pie chart/slice|{{{color3|blue}}}|{{#expr:
{{{value1}}}+{{{value2}}}+{{{value3}}}
}}}}}}<!--
-->{{#if:{{{value2|}}}|{{Pie chart/slice|{{{color2|green}}}|{{#expr:
{{{value1}}}+{{{value2}}}
}}}}}}<!--
-->{{#if:{{{value1|}}}|{{Pie chart/slice|{{{color1|red}}}|
{{{value1}}}
}}}}
</div>
<!-- Legend -->
<div class="thumbcaption">
{{{caption|}}}
{{#if:{{{label1|}}}|{{legend|{{{color1|red}}}|{{{label1}}} ({{{value1}}}%)}}
}}{{#if:{{{label2|}}}|{{legend|{{{color2|green}}}|{{{label2}}} ({{{value2}}}%)}}
}}{{#if:{{{label3|}}}|{{legend|{{{color3|blue}}}|{{{label3}}} ({{{value3}}}%)}}
}}{{#if:{{{label4|}}}|{{legend|{{{color4|yellow}}}|{{{label4}}} ({{{value4}}}%)}}
}}{{#if:{{{label5|}}}|{{legend|{{{color5|fuchsia}}}|{{{label5}}} ({{{value5}}}%)}}
}}{{#if:{{{label6|}}}|{{legend|{{{color6|aqua}}}|{{{label6}}} ({{{value6}}}%)}}
}}{{#if:{{{label7|}}}|{{legend|{{{color7|<!-- brown --> #a52a2a}}}|{{{label7}}} ({{{value7}}}%)}}
}}{{#if:{{{label8|}}}|{{legend|{{{color8|<!-- orange --> #ffa500}}}|{{{label8}}} ({{{value8}}}%)}}
}}{{#if:{{{label9|}}}|{{legend|{{{color9|purple}}}|{{{label9}}} ({{{value9}}}%)}}
}}{{#if:{{{label10|}}}|{{legend|{{{color10|sienna}}}|{{{label10}}} ({{{value10}}}%)}}
}}{{#if:{{{label11|}}}|{{legend|{{{color11|sienna}}}|{{{label11}}} ({{{value11}}}%)}}
}}{{#if:{{{label12|}}}|{{legend|{{{color12|sienna}}}|{{{label12}}} ({{{value12}}}%)}}
}}{{#if:{{{label13|}}}|{{legend|{{{color13|sienna}}}|{{{label13}}} ({{{value13}}}%)}}
}}{{#if:{{{label14|}}}|{{legend|{{{color14|sienna}}}|{{{label14}}} ({{{value14}}}%)}}
}}{{#if:{{{label15|}}}|{{legend|{{{color15|sienna}}}|{{{label15}}} ({{{value15}}}%)}}
}}{{#if:{{{label16|}}}|{{legend|{{{color16|sienna}}}|{{{label16}}} ({{{value16}}}%)}}
}}{{#if:{{{label17|}}}|{{legend|{{{color17|sienna}}}|{{{label17}}} ({{{value17}}}%)}}
}}{{#if:{{{label18|}}}|{{legend|{{{color18|sienna}}}|{{{label18}}} ({{{value18}}}%)}}
}}{{#if:{{{label19|}}}|{{legend|{{{color19|sienna}}}|{{{label19}}} ({{{value19}}}%)}}
}}{{#if:{{{label20|}}}|{{legend|{{{color20|sienna}}}|{{{label20}}} ({{{value20}}}%)}}
}}{{#if:{{{label21|}}}|{{legend|{{{color21|sienna}}}|{{{label21}}} ({{{value21}}}%)}}
}}{{#if:{{{label22|}}}|{{legend|{{{color22|sienna}}}|{{{label22}}} ({{{value22}}}%)}}
}}{{#if:{{{label23|}}}|{{legend|{{{color23|sienna}}}|{{{label23}}} ({{{value23}}}%)}}
}}{{#if:{{{label24|}}}|{{legend|{{{color24|sienna}}}|{{{label24}}} ({{{value24}}}%)}}
}}{{#if:{{{label25|}}}|{{legend|{{{color25|sienna}}}|{{{label25}}} ({{{value25}}}%)}}
}}{{#if:{{{label26|}}}|{{legend|{{{color26|sienna}}}|{{{label26}}} ({{{value26}}}%)}}
}}{{#if:{{{label27|}}}|{{legend|{{{color27|sienna}}}|{{{label27}}} ({{{value27}}}%)}}
}}{{#if:{{{label28|}}}|{{legend|{{{color28|sienna}}}|{{{label28}}} ({{{value28}}}%)}}
}}{{#if:{{{label29|}}}|{{legend|{{{color29|sienna}}}|{{{label29}}} ({{{value29}}}%)}}
}}{{#if:{{{label30|}}}|{{legend|{{{color30|sienna}}}|{{{label30}}} ({{{value30}}}%)}}
}}{{#if:{{{other|}}}|{{legend|white|Other ({{#expr:100-{{{value1|0}}}-{{{value2|0}}}-{{{value3|0}}}-{{{value4|0}}}-{{{value5|0}}}-{{{value6|0}}}-{{{value7|0}}}-{{{value8|0}}}-{{{value9|0}}}-{{{value10|0}}}-{{{value11|0}}}-{{{value12|0}}}-{{{value13|0}}}-{{{value14|0}}}-{{{value15|0}}}-{{{value16|0}}}-{{{value17|0}}}-{{{value18|0}}}-{{{value19|0}}}-{{{value20|0}}}-{{{value21|0}}}-{{{value22|0}}}-{{{value23|0}}}-{{{value24|0}}}-{{{value25|0}}}-{{{value26|0}}}-{{{value27|0}}}-{{{value28|0}}}-{{{value29|0}}}-{{{value30|0}}}}}%)}}}}
</div>
</div></div></includeonly><noinclude>
{{documentation}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata.  -->
</noinclude>

Latest revision as of 22:08, 1 April 2020