Module:Swatches/data/doc
< Module:Swatches | data
This is the documentation page for Module:Swatches/data
Module:Swatches/data
Dataset of cosmetic swatches.
Schema
Each swatch entry is a Lua table with:
- name
- Display name of the swatch (Title Case).
- image
- File name of the swatch preview image.
- colors
- Array of 4 hex color strings (e.g.
"#32434b"), with the main color ordered first, then continuing clockwise. - scopes
- Array of compatibility scopes. Use
"All"if compatible with all items. - Otherwise, use one or more of:
"Vehicle","Weapon","Garment","Placeable". - If
"All"is present, it overrides all other values. - onlyItems (optional)
- Array of
"Scope:Item"strings (e.g."Vehicle:Sandbike"). - If omitted, the swatch applies to all items within its specified scopes.
- If present, the swatch applies only to those specific items.
Itemmust match the value used for theitem=parameter when filtering with Module:Swatches.- link (optional)
- Wiki page name (not a URL) to link the swatch title and image to.
- If omitted, the swatch is displayed without a link.