Module:Ship infobox/doc
From Corsair Cove Official Wiki
This is the documentation page for Module:Ship infobox
This module builds the ship infobox HTML. It is invoked from Template:Ship infobox.
Usage
| Method invoked by template | Argument from template | Description of argument |
|---|---|---|
main() |
name |
Canonical ship name, as seen in-game (e.g. Bedlam, Wrath Bringer).
|
Template Examples
With a named argument:
{{#invoke:Ship infobox|main|name=Bedlam}}
Or a positional argument:
{{#invoke:Ship infobox|main|Bedlam}}
API
main()- Entry point. Looks up the ship, builds the infobox, and returns HTML.
No other functions are exported.
Errors
- Ship name is required —
nameor positional arg missing or empty. - Ship not found — name not in Module:Ships_data.
Dependencies
- Module:Ships_data — ship stats, crew, construction, unlock data
- Module:ResourceData — construction resource icons


