Template:Color/doc

From Brighter Shores Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:Color.
It contains usage information, categories, and other content that is not part of the original template page.

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

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