Jump to content

Template:Pie chart: Difference between revisions

From OpenGeofiction
Created page with "<includeonly><div class="thumb t{{{thumb|right}}}" style="{{{style|}}}"><div style="width:202px"> <!-- Graph --> <div style="background-color:white;margin:auto;position:relati..."
 
rebuild
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="thumb t{{{thumb|right}}}" style="{{{style|}}}"><div style="width:202px">
<includeonly><div class="box-{{{side|right}}}">
<!-- Graph -->
<!-- Graph -->
<div style="background-color:white;margin:auto;position:relative;width:200px;height:200px;overflow:hidden;border-radius:100px;border:1px solid black">
<div style="background-color:white;margin:auto;position:relative;width:200px;height:200px;overflow:hidden;border-radius:100px;border:1px solid black">
Line 34: Line 34:
</div>
</div>
<!-- Legend -->
<!-- Legend -->
<div class="thumbcaption">
<div class="tbx-barbox">
{{{caption|}}}
{{{caption|}}}
{{#if:{{{label1|}}}|{{legend|{{{color1|red}}}|{{{label1}}} ({{{value1}}}%)}}
{{#if:{{{label1|}}}|{{legend|{{{color1|red}}}|{{{label1}}} ({{{value1}}}%)}}
Line 48: Line 48:
}}{{#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}}}}}%)}}}}
}}{{#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></div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Wpderiv|Pie chart}}
{{Wpderiv|Pie chart}}
[[Category:Chart and graph templates]]</noinclude>
[[Category:Chart and graph templates]]</noinclude>

Latest revision as of 20:14, 17 January 2026

This template is modeled after and adapted from a chart template originally found on Wikipedia and licensed under Creative Commons-ShareAlike-Attribution 3.0.