<?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%3APG%2FItemColor%2Fdoc</id>
	<title>Template:PG/ItemColor/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%3APG%2FItemColor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:PG/ItemColor/doc&amp;action=history"/>
	<updated>2026-04-08T06:06:05Z</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:PG/ItemColor/doc&amp;diff=123&amp;oldid=prev</id>
		<title>imported&gt;Alleryn: /* Examples */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:PG/ItemColor/doc&amp;diff=123&amp;oldid=prev"/>
		<updated>2020-12-05T13:45:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories/interwikis for the template itself --&amp;gt;&lt;br /&gt;
[[Category:Formatting templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories/interwikis for this documentation itself --&amp;gt;&lt;br /&gt;
[[Category:Template documentation|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns the inline-css-style to make the color the correct one for an item of the given rarity. Used in [[:Template:ITEM infobox]] and [[:Template:ItemRarity]]; it is unlikely you will want to use this template directly, though in some cases it may be useful where you wish to create a similar effect to [[:Template:ItemRarity]], but with additional inline styles or without the linking behavior in that template.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
*Single parameter for use on standard &amp;quot;parchment color&amp;quot; background: &amp;lt;pre&amp;gt;{{ItemColor|rarity}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Two parameters for use in wikitables, [[:Template:ITEM_infobox|ITEM infoboxes]], or other light/dark backgrounds: &amp;lt;pre&amp;gt;{{ItemColor|rarity|backgroundShade}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
*First parameter (required): The rarity whose color you wish to express. This can be any of:&lt;br /&gt;
** The full word description of the rarity: Common, Uncommon, Rare, Exceptional, Epic, Legendary (capitalized or not)&lt;br /&gt;
** The number of mods on an item of that rarity: 0, 1, 2, 3, 4, 5&lt;br /&gt;
** A one letter abbreviation for that rarity: c, u, r, x, p, l (capitalized or not)&lt;br /&gt;
** Any other values default to the color grey.&lt;br /&gt;
*Second parameter (optional): Used to select a palette with better contrast against the background color. Possible parameters &amp;quot;Light&amp;quot; (or &amp;quot;L&amp;quot;) or &amp;quot;Dark&amp;quot; (or &amp;quot;D&amp;quot;), captialized or not. Leave this parameter out for a palette designed for the default &amp;quot;parchment color&amp;quot; wiki background.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Example 1: Directly on the page ===&lt;br /&gt;
====Example Code 1====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span style=&amp;quot;{{ItemColor|Legendary}}&amp;quot;&amp;gt;This is a legendary item.&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Example Output 1====&lt;br /&gt;
&amp;lt;span style=&amp;quot;{{ItemColor|Legendary}}&amp;quot;&amp;gt;This is a legendary item.&amp;lt;/span&amp;gt;&lt;br /&gt;
===Example 2: Wikitable===&lt;br /&gt;
====Example Code 2====&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Header&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span style=&amp;quot;{{ItemColor|4|Light}}&amp;quot;&amp;gt;And this one has four mods.&amp;lt;/span&amp;gt;&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Example Output 2====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Header&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span style=&amp;quot;{{ItemColor|4|Light}}&amp;quot;&amp;gt;And this one has four mods.&amp;lt;/span&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
===Example 3: Dark background===&lt;br /&gt;
====Example Code 3====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span style=&amp;quot;background-color:#000000;font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;&amp;quot;&amp;gt;Can also be combined with other inline css styles.&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Example Output 3====&lt;br /&gt;
&amp;lt;span style=&amp;quot;background-color:#000000;font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;&amp;quot;&amp;gt;Can also be combined with other inline css styles.&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Alleryn</name></author>
	</entry>
</feed>