Template:Pie chart/slice: Difference between revisions

The official GemStone IV encyclopedia.
< Template:Pie chart
Jump to navigation Jump to search
(Created page with "<includeonly><div style="border:solid transparent;position:absolute;width:100px;line-height:0;{{#switch:{{#expr:floor({{{2}}}/25)}} <!-- 0-25% --> |0= left:100px; top:{{#e...")
 
No edit summary
 
Line 4: Line 4:
|2= right:100px; top:100px; border-width:{{#expr:100*sin(pi/50*({{{2}}}-50))}}px {{#expr:100*cos(pi/50*({{{2}}}-50))}}px 0 0; border-top-color:{{{1}}} "></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 200px 100px 0;border-color:{{{1}}}"></div> <!-- 75%-100% -->
|2= right:100px; top:100px; border-width:{{#expr:100*sin(pi/50*({{{2}}}-50))}}px {{#expr:100*cos(pi/50*({{{2}}}-50))}}px 0 0; border-top-color:{{{1}}} "></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 200px 100px 0;border-color:{{{1}}}"></div> <!-- 75%-100% -->
|3= left:100px; top:100px; border-width:100px 0 0 {{#expr:100*tan(pi/50*({{{2}}}-25))}}px; border-left-color:{{{1}}} "></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 200px 100px 0;border-color:{{{1}}}"></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 100px 200px 0;border-color:{{{1}}}"></div> <!-- 100% -->
|3= left:100px; top:100px; border-width:100px 0 0 {{#expr:100*tan(pi/50*({{{2}}}-25))}}px; border-left-color:{{{1}}} "></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 200px 100px 0;border-color:{{{1}}}"></div> <div style="position:absolute;line-height:0;border-style:solid;left:0;top:0;border-width:0 100px 200px 0;border-color:{{{1}}}"></div> <!-- 100% -->
|4= left:0; top:0; border-width:0 200px 200px 0; border-color:{{{1}}} "></div> }}</includeonly><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>:
|4= left:0; top:0; border-width:0 200px 200px 0; border-color:{{{1}}} "></div> }}</includeonly><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>

Latest revision as of 16:08, 4 September 2019