Jump to content

Template:Infobox

From Elysium D&D
Revision as of 19:44, 7 August 2026 by Olivinism (talk | contribs) (Created page with "<includeonly><templatestyles src="Template:Infobox/styles.css" /><table class="infobox {{{class|}}}">{{#if:{{{title|}}}|<tr><th colspan="2" class="infobox-title">{{{title}}}</th></tr>}}{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|{{{imagesize|220px}}}|alt={{{alt|}}}]]{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}</td></tr>}}{{#if:{{{subtitle|}}}|<tr><td colspan="2" class="infobox-subtitle">{{{subtitle}}}</td></t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Generic infobox base. Wrapper templates should call this rather than writing table markup.

Parameters: class, title, image, imagesize, alt, caption, subtitle, below, and numbered slots headerN / labelN / dataN / rowclassN (N = 1–20).

A row with a label renders as label + data; a row with data but no label spans the full width. Rows with empty data are omitted. Pass a literal pipe as |.