Template:Infobox row

From Caves of Qud Wiki
Revision as of 18:11, 16 December 2021 by Egocarib (talk | contribs) (mark infobox labels as auxilary data for searching purposes (lowers their search importance) - see https://www.mediawiki.org/wiki/Help:CirrusSearch#Exclude_content_from_the_search_index)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This is a skeleton for infobox rows, for use in {{infobox}}.

Adapted from Minecraft Wiki.

Usage

{{infobox row
| label
| field
}}

Alternatively, you can use the named parameter {{{label}}} as a substitute for {{{1}}}, and {{{field}}} as a substitute for {{{2}}}.

The parameter {{{class}}} can be added to add a class to the contents of the row.

Example

{{infobox
|image=Caves_of_qud_logo.png
|rows=
{{infobox row|Name|Qud Object}}
{{infobox row|label=Faction|field=Grazing Hedonists}}
{{infobox row|field=<div style="text-align:center;border-top:var(--infobox-border);border-bottom:var(--infobox-border);">Specify <code>field</code> without a <code>label</code> to span both columns. For example, maybe you'd do this for a section header</div>}}
{{infobox row|class=custom-css-class|Custom|<this row has custom-css-class>}}
{{infobox row|label=Stats|field=etc}}
}}

will output

Infobox row
Caves of qud logo.png
Name

Qud Object

Faction

Grazing Hedonists

Specify field without a label to span both columns. For example, maybe you'd do this for a section header
Custom

<this row has custom-css-class>

Stats

etc