Module:Swatches/data

From Dune: Awakening Community Wiki
Jump to navigation Jump to search

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.
Item must match the value used for the item= 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.



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" },
  },
}