Module:Swatches/data
Jump to navigation
Jump to search
Module:Swatches/data
Dataset of cosmetic swatches.
Schema
Each swatch entry is a table with the following fields:
- name
- string
- Display name of the swatch (Title Case).
- image
- string
- File name of the swatch preview image.
- colors
- string[4]
- Array of 4 hex color strings, with the main color ordered first, then continuing clockwise.
- Examples:
- •
"#000000" - •
"#ffffff"
- •
- scopes
- string[]
- Compatibility scopes for the swatch.
- One of:
- •
"All"(this overrides all other values) - •
"Vehicle" - •
"Weapon" - •
"Garment" - •
"Placeable"
- •
- onlyItems (optional)
- string[]
- Specific items the swatch applies to, in the form of
<Scope>:<Item>. Itemmust match the value used for theitem=parameter when filtering with Module:Swatches.- If present, the swatch applies only to the specified items.
- If omitted, the swatch applies to all items within its specified
scopes. - Examples:
- •
"Vehicle:Sandbike" - •
"Weapon:Rapiers"
- •
- link (optional)
- string
- Wiki page name to link the swatch title and image to.
- If omitted, the swatch is displayed without a link.
return {
{
name = "Dusk Rider",
image = "Swatch_DuskRider.jpg",
colors = { "#32434b", "#47484c", "#ad726a", "#323232" },
scopes = { "Vehicle" },
onlyItems = { "Vehicle:Sandbike" },
link = "Dusk Rider Sandbike Swatch",
},
{
name = "Blue Dasher",
image = "Swatch_BlueDasher.jpg",
colors = { "#697b87", "#2f2f2f", "#ba954e", "#59343b" },
scopes = { "Vehicle" },
onlyItems = {
"Vehicle:Scout Ornithopter",
"Vehicle:Assault Ornithopter",
"Vehicle:Carrier Ornithopter",
},
link = "Blue Dasher Ornithopter Swatch",
},
{
name = "Sunset Dye",
image = "Swatch_SunsetDye.jpg",
colors = { "#373737", "#b3a491", "#955821", "#614d2c" },
scopes = { "All" },
link = "Sunset Dye Global Swatch",
},
{
name = "Maula",
image = "Swatch_Maula.jpg",
colors = { "#596978", "#61737d", "#2f2f2f", "#8c8070" },
scopes = { "All" },
},
{
name = "Vermillius Gap",
image = "Swatch_VermilliusGap.jpg",
colors = { "#8c8070", "#c8a156", "#919392", "#560901" },
scopes = { "All" },
},
{
name = "CHOAM",
image = "Swatch_CHOAM.jpg",
colors = { "#c2b49a", "#c98348", "#ab8000", "#baab98" },
scopes = { "All" },
},
{
name = "House Atreides",
image = "Swatch_Atreides.jpg",
colors = { "#3c4b36", "#828e46", "#ab9e8d", "#979797" },
scopes = { "All" },
},
{
name = "House Harkonnen",
image = "Swatch_Harkonnen.jpg",
colors = { "#373737", "#783b42", "#2f2f2f", "#484848" },
scopes = { "All" },
},
}