Changes

Jump to: navigation, search

Template:ItemColor/doc

563 bytes added, 09:37, 5 December 2020
documentation update -- still need to clean up examples
== Syntax ==
*Single parameter for use on standard "parchment color" background: <pre>{{ItemColor|rarity}}</pre>*Two parameters for use in wikitables, [[:Template:ITEM_infobox|ITEM infoboxes]], or other light/dark backgrounds: <pre>{{ItemColor|rarity|backgroundShade}}</pre>
===Parameters===
*First and only parameter (required): The rarity whose color you wish to express. This can be any of:** The full word description of the rarity: Common, Uncommon, Rare, Exceptional, Epic, Legendary (capitalized or not)** The number of mods on an item of that rarity: 0, 1, 2, 3, 4, 5** A one letter abbreviation for that rarity: c, u, r, x, p, l (capitalized or not)** Any other values default to the color whitegrey.*Second parameter (optional): Used to select a palette with better contrast against the background color. Possible parameters "Light" (or "L") or "Dark" (or "D"), which can be used captialized or not. Leave this parameter out for a palette designed for common itemsthe default "parchment color" wiki background.
== Examples ==
! Code
! Result
|-style="background-color:#BCA787;
| <pre><span style="{{ItemColor|Legendary}}">This is a legendary item.</span></pre>
| <span style="{{ItemColor|Legendary}}">This is a legendary item.</span>
|-
| <pre><span style="{{ItemColor|4|Light}}">And this one has four mods.</span></pre> | <span style="{{ItemColor|4|Light}}">And this one has four mods.</span>|-style="background-color:#000000; | <pre><span style="backgroundfont-colorfamily:blackCourier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span></pre> | <span style="backgroundfont-colorfamily:blackCourier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span>
|}
5,698
edits

Navigation menu