Template:Color

From Brighter Shores Wiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Color/doc. [edit] [history] [purge]

This template displays a color-coded item name with an optional skill icon, based on the rarity and associated skill.

Usage

{{Color|skill name|rarity|item name}}

- **skill name**: Name of the skill associated with the item. Displays an icon in the format `File:Skillname icon.png`. - **rarity**: The rarity level of the item (e.g., "common", "uncommon", "rare", "epic"). This determines the text color and will display capitalized. - **item name**: The name of the item, styled with color and optionally with an associated skill icon.

Examples

{{Color|guard|common|Guard's Sword}}

Common Guard's Sword

{{Color|guard|epic|Guard's Bow}}

Epic Guard's Bow

Notes

- Defaults to black if the rarity level is unrecognized. - Skill icon filenames are based on the skill name provided.

Displays an item with color based on rarity and an optional skill icon.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Skill Name1

Name of the skill associated with the item, used to generate the skill icon filename.

Stringoptional
Rarity2

Rarity level of the item; determines the color and displays capitalized.

Example
common
Stringrequired
Item Name3

The name of the item to display.

Stringrequired