Module:Servant Icon/data/doc
Cached copy of the original page · revision 1645482 · refresh
This is the documentation page for Servant Icon/data. It contains usage information, categories, and other content not part of the original module page. | ||
|---|---|---|
| Main | Documentation | Usage |
Icon data used by Module:Servant Icon. One entry per Servant, keyed by article name and grouped by class.
["Gray Lily (Saber)"] = { id = 472, rarity = 4, class = "Saber", stages = { "1", "4" } },
- id — collection number. Padded to three digits for the file name (472 →
S472…). - rarity — decides whether the
s/gPalingenesis suffixes are honoured. Defaults to 5, which honours neither. - class — decides whether the
pGrand suffix is honoured, checked against Module:Servant Icon/config. Module:Material Usage also reads it to split its table by class, so it has to be the Servant's real class rather than whichever group the entry sits in. - stages — every stage token the Servant has an icon for (
"1"~"4","cos1", ...). A token that is not listed falls back to stage 1, so keeping this list complete is what stops missing icons from turning into red links. - iconPrefix (optional) — replaces the automatic
A/Cprefix. - iconFile (optional) — replaces the generated file name entirely.
["Unknown Servant"] is the fallback for an article name that is not in the table. Do not remove it.
Add a Servant here once the article and its icons exist. Nothing else needs editing afterwards: {{Servant Icon}}, the per-Servant templates and Module:Material Usage all read this table.