Module:Ship infobox/doc

From Corsair Cove Official Wiki
Revision as of 19:02, 7 August 2026 by Aeredor (talk | contribs) (Created doc for module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 — name or positional arg missing or empty.
  • Ship not found — name not in Module:Ships_data.

Dependencies

Templates called at runtime