Changes

Jump to: navigation, search

Template:ItemColor/doc

235 bytes added, 08:45, 5 December 2020
Examples
== Examples ==
=== Example 1: Directly on the page ===
====Example Code 1====
<pre><span style="{{ItemColor|Legendary}}">This is a legendary item.</span></pre>
====Example Output 1====
<span style="{{ItemColor|Legendary}}">This is a legendary item.</span>
===Example 2: Wikitable===
====Example Code 2====
<pre>{| class="wikitable"
!Header
|-
| <span style="{{ItemColor|4|Light}}">And this one has four mods.</span>
|}</pre>
====Example Output 2====
{| class="wikitable"
! 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>Header
|-
| <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="font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span></pre> | <span style="font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span>
|}
===Example 3: Dark background===
====Example Code 3====
<pre><span style="background-color:#000000;font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span></pre>
====Example Output 3====
<span style="background-color:#000000;font-family:Courier;{{ItemColor|L|Dark}}font-size:24px;">Can also be combined with other inline css styles.</span>
5,698
edits

Navigation menu