<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FIn-cell_graph%2Fdoc</id>
	<title>Template:MC/In-cell graph/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FIn-cell_graph%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/In-cell_graph/doc&amp;action=history"/>
	<updated>2026-04-10T06:32:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:MC/In-cell_graph/doc&amp;diff=43499&amp;oldid=prev</id>
		<title>imported&gt;AttemptToCallNil: syntaxhighlight -&gt; pre</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/In-cell_graph/doc&amp;diff=43499&amp;oldid=prev"/>
		<updated>2020-03-16T03:13:48Z</updated>

		<summary type="html">&lt;p&gt;syntaxhighlight -&amp;gt; pre&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation header}}&lt;br /&gt;
&amp;lt;!-- Documentation here --&amp;gt;&lt;br /&gt;
{{Shortcut|ICG}}&lt;br /&gt;
This template generates an embedded ratio graph/chart into table cells.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre lang=wikitext&amp;gt;{{In-cell graph [|type=&amp;lt;type&amp;gt;] [|width=&amp;lt;width&amp;gt;] [|height=&amp;lt;height&amp;gt;] | &amp;lt;zone 1&amp;gt; | [zone 2] | [zone 3] | ... }}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre lang=wikitext&amp;gt;&amp;lt;zone x&amp;gt; ::= &amp;lt;percentage&amp;gt;|[color]| &amp;lt;content&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: the direction of the graph; either &amp;#039;&amp;#039;vertical&amp;#039;&amp;#039; (default) or &amp;#039;&amp;#039;horizontal&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;width&amp;#039;&amp;#039;&amp;#039;: the width of the cell containing the graph, in pixels.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;#039;: the height of the cell containing the graph, in pixels.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;percentage&amp;#039;&amp;#039;&amp;#039; is the percentage of the zone, without &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;color&amp;#039;&amp;#039;&amp;#039; is the CSS color to use as the background of the zone.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;content&amp;#039;&amp;#039;&amp;#039; is what to be displayed inside the zone.&lt;br /&gt;
&lt;br /&gt;
; Notes&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;percentage&amp;#039;&amp;#039; and &amp;#039;&amp;#039;color&amp;#039;&amp;#039; should not have spaces between them and the adjacent pipe characters, or the spaces will be converted to &amp;lt;code&amp;gt;&amp;amp;amp;nbsp;&amp;lt;/code&amp;gt; thus break the template rendering.&lt;br /&gt;
* Zone&amp;#039;s content will be aligned to the center both horizontally and vertically.&lt;br /&gt;
* Total &amp;#039;&amp;#039;percentage&amp;#039;&amp;#039; values of zones must be exactly 100, otherwise it will render incorrectly.&lt;br /&gt;
* In the same row/column, in-cell graphs should have the same height/width.&lt;br /&gt;
* The width/height of the graph should be a multiplier of 100 to prevent rendering issues.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Vertical graph ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Block !! [[Silk Touch|Silk touch]] !! Correct tool !! [[Fortune]] 1 !! [[Fortune]] 2 !! [[Fortune]] 3 !! Incorrect tool&lt;br /&gt;
|-&lt;br /&gt;
| {{BlockLink|Coal Ore}}&lt;br /&gt;
| {{ICG | height=150 |100|#FCD6AF| 1 {{BlockSprite|link=Coal Ore|Coal Ore}} (100%) }}&lt;br /&gt;
| {{ICG | height=150 |100|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (100%) }}&lt;br /&gt;
| {{ICG | height=150 |67|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (67%) |33|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (33%) }}&lt;br /&gt;
| {{ICG | height=150 |50|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (50%) |25|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (25%) |25|#BDFCAF| 3 {{ItemSprite|link=Coal|Coal}} (25%) }}&lt;br /&gt;
| {{ICG | height=150 |40|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (40%) |20|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (20%) |20|#BDFCAF| 3 {{ItemSprite|link=Coal|Coal}} (20%) |20|#AFFCEF| 4 {{ItemSprite|link=Coal|Coal}} (20%) }}&lt;br /&gt;
| {{ICG | height=150 |100|#FCAFAF| {{BlockSprite|Air}} Nothing (100%) }}&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Block&lt;br /&gt;
! [[Silk Touch|Silk touch]]&lt;br /&gt;
! Correct tool&lt;br /&gt;
! [[Fortune]] 1&lt;br /&gt;
! [[Fortune]] 2&lt;br /&gt;
! [[Fortune]] 3&lt;br /&gt;
! Incorrect tool&lt;br /&gt;
|-&lt;br /&gt;
| {{BlockLink|Coal Ore}}&lt;br /&gt;
| {{ICG | height=150 |100|#FCD6AF| 1 {{BlockSprite|link=Coal Ore|Coal Ore}} (100%) }}&lt;br /&gt;
| {{ICG | height=150 |100|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (100%) }}&lt;br /&gt;
| {{ICG | height=150 |67|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (67%) |33|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (33%) }}&lt;br /&gt;
| {{ICG | height=150 |50|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (50%) |25|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (25%) |25|#BDFCAF| 3 {{ItemSprite|link=Coal|Coal}} (25%) }}&lt;br /&gt;
| {{ICG | height=150 |40|#FCD6AF| 1 {{ItemSprite|link=Coal|Coal}} (40%) |20|#EEFCAF| 2 {{ItemSprite|link=Coal|Coal}} (20%) |20|#BDFCAF| 3 {{ItemSprite|link=Coal|Coal}} (20%) |20|#AFFCEF| 4 {{ItemSprite|link=Coal|Coal}} (20%) }}&lt;br /&gt;
| {{ICG | height=150 |100|#FCAFAF| {{BlockSprite|Air}} Nothing (100%) }}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Horizontal graph ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Year !! Color coverage&lt;br /&gt;
|-&lt;br /&gt;
| 2015 || {{ICG | type=horizontal | width=500 |50|#BDFCAF| Green 50% |50|#FCAFAF| Red 50%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2016 || {{ICG | type=horizontal | width=500 |45|#BDFCAF| Green 45% |35|#EEFCAF| Yellow 35% |20|#FCAFAF| Red 20%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2017 || {{ICG | type=horizontal | width=500 |31|#BDFCAF| Green 31% |46|#EEFCAF| Yellow 46% |23|#FCAFAF| Red 23%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2018 || {{ICG | type=horizontal | width=500 |28|#BDFCAF| Green 28% |55|#EEFCAF| Yellow 55% |17|#FCAFAF| Red 17%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2019 || {{ICG | type=horizontal | width=500 |17|#BDFCAF| Green 17% |73|#EEFCAF| Yellow 73% |10|#FCAFAF| Red 10%}}&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Year !! Color coverage&lt;br /&gt;
|-&lt;br /&gt;
| 2015 || {{ICG | type=horizontal | width=500 |50|#BDFCAF| Green 50% |50|#FCAFAF| Red 50%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2016 || {{ICG | type=horizontal | width=500 |45|#BDFCAF| Green 45% |35|#EEFCAF| Yellow 35% |20|#FCAFAF| Red 20%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2017 || {{ICG | type=horizontal | width=500 |31|#BDFCAF| Green 31% |46|#EEFCAF| Yellow 46% |23|#FCAFAF| Red 23%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2018 || {{ICG | type=horizontal | width=500 |28|#BDFCAF| Green 28% |55|#EEFCAF| Yellow 55% |17|#FCAFAF| Red 17%}}&lt;br /&gt;
|-&lt;br /&gt;
| 2019 || {{ICG | type=horizontal | width=500 |17|#BDFCAF| Green 17% |73|#EEFCAF| Yellow 73% |10|#FCAFAF| Red 10%}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Template categories/interwiki here --&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Documentation categories/interwiki here --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;AttemptToCallNil</name></author>
	</entry>
</feed>