Template:Infobox centered row

From Pirate Software Wiki
Revision as of 15:22, 29 November 2023 by Djinnet (talk | contribs) (Centered row for modular infobox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation

Displays a centered row with colspan 2 in an Infobox.

Usage

{{infobox centered row|value|test-value|else-value}}

Note these are all unnamed parameters when using the template

  • value is displayed as the value and can be formatted (e.g. 1000, "huge", {{ItemLink|Wall}}, etc.)
  • If test-value (optional) is given, the row is only displayed if it is not empty
  • If else-value (optional) is given and test-value is empty, the row is displayed and shows Else-value as its value

Example

{{Infobox centered row|''{{{description}}}''|{{{description|}}|Not available}}}

Displays the italicized text of description, but only if it is not an empty string, otherwise it use the text "Not available".