5,698
edits
Changes
→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
|-
|}
===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>