Template:Item: Difference between revisions
(Created page with "<div class="itembox" style="float: right; margin-left: 10px; border: 1px solid #ccc; background-color: #f9f9f9; padding: 10px; width: auto; max-width: 80%;"> <div style="font-size: 120%; font-weight: bold; margin-bottom: 5px;">{{#if: {{{name|}}} | {{{name}}} | Item Name }}</div> {{#if: {{{image|}}} | <div style="text-align: center;"><img src="{{{image}}}" alt="{{{name|Item Image}}}" style="max-width: 100%;"></div> }} {{#if: {{{description|}}} | <div>{{{de...") |
(Colour for Rarity) |
||
Line 14: | Line 14: | ||
}} | }} | ||
{{#if: {{{rarity|}}} | {{#if: {{{rarity|}}} | ||
| <div><strong>Rarity:</strong> {{{rarity}}}</div> | | <div><strong>Rarity:</strong> | ||
{{#switch: {{{rarity}}} | |||
| Common = <span style="color:#c8c8c8;">Common</span> | |||
| Rare = <span style="color:#78ffff;">Rare</span> | |||
| Epic = <span style="color:#c800c8;">Epic</span> | |||
| Legendary = <span style="color:#FFAA00;">Legendary</span> | |||
| Quest = <span style="color:#FCA800;">Quest</span> | |||
| default = {{{rarity}}} | |||
}} | |||
</div> | |||
}} | }} | ||
{{#if: {{{obtained_from|}}} | {{#if: {{{obtained_from|}}} |
Revision as of 22:47, 1 October 2023
Item Name