Module:Servant Icon/doc
Cached copy of the original page · revision 1657505 · refresh
This is the documentation page for Servant Icon. It contains usage information, categories, and other content not part of the original module page. | ||
|---|---|---|
| Main | Documentation | Usage |

Module for {{Servant Icon}}. Turns a Servant's article name into that Servant's icon.
The file name is built from the Servant's collection number and the requested Ascension stage, with the number padded to three digits: id 472 at stage 1 gives File:S472A1Icon.webp. stage=cos1 yields C1 in place of A1, rawimage=y appends Raw, and an entry carrying iconFile replaces the generated name outright.
Nothing here produces a red link on bad input. A stage the Servant does not have falls back to stage 1, and an article name missing from the data falls back to the Unknown Servant entry. That is what makes these suffixes safe to pass to any Servant:
s/g— Palingenesis icons, kept only for 1★~2★ (s) and up to 3★ (g). Ignored for anyone else.p— Grand Servant icons, kept only for the classes listed in Module:Servant Icon/config.
Uses Module:Arguments, Module:Yesno.
To update:
- Module:Servant Icon/data — one entry per Servant
- Module:Servant Icon/config — the classes that have a Grand form
Parameters are documented at Template:Servant Icon. In articles the module is normally reached through the per-Servant templates, e.g. {{Nero Claudius}}, which call the fromTemplate entry point. It takes the Servant from the template's own name and the size from its first argument, and passes every other argument on.