Module:Utilities/doc

Revision as of 21:19, 1 November 2024 by Sur (talk | contribs) (initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Utilities

Overview

Utility functions that serve any miscellaneous purpose

Functions

get_slot_color

Retrieve's the hex color of a certain slot/category, formerly known in english as Weapon, Vitality, and Spirit, though their unlocalized names are Weapon, Armor, and Tech.

Parameters

  • slot - slot key, options are Weapon, Armor, and Tech
  • color_format - color format, defaults to hex. Valid options are hex, rgb

Examples

To style text: '''Tech Item:''' <span style="color: {{#invoke:Utilities|get_slot_color|Tech}};">Powered Up!</span>

Tech Item: Powered Up!


To style divs: <div style="background-color: {{#invoke:Utilities|get_slot_color|Tech}}; padding: 10px; border-radius: 5px;"> This is a Tech item description. </div>


This is a Tech item description.