Template:Trait references
Renders the real-world reference image(s) a single trait depicts as a left-aligned,
frameless gallery. Place it in a dedicated == Reference media ==
section after the body text and before == See also == /
== References ==.
Keeping it in its own end section (rather than inside the infobox or inline after
the lead) stops the reference image from stacking a second picture into the box or
displacing the prose, while the now-shorter infobox no longer dangles past a
deliberately meagre body.
Each reference is authored as a self-contained group (refN +
optional refN_subject / refN_caption) so image and
caption can never desync, and so the groups remain machine-addressable for a
future trait → reference Cargo mapping with no re-authoring.
Quick start
{{Trait references
| ref1 = Georgia_Guidestones_2005.jpg
| ref1_subject = Georgia Guidestones
| ref1_caption = Georgia Guidestones, c. 2005
}}
Parameters
| Parameter | Description |
|---|---|
ref1 … ref8 |
Reference image filename (no File: prefix, no brackets). Up to eight references.
|
ref1_subject … |
Canonical subject the image shows (e.g. Georgia Guidestones). Used as the caption when no explicit caption is given, and is the key a future reference mapping groups on.
|
ref1_caption … |
Display caption for the image. Falls back to refN_subject, then to no caption. May contain a wikilink.
|
mode |
Gallery mode. Defaults to nolines, which keeps single-reference sections left-aligned without thumbnail framing. Use packed only when a page needs a dense row of several references.
|
widths |
Gallery item width in pixels. Defaults to 240.
|
heights |
Gallery item height in pixels. Defaults to 200.
|
When to use
- Trait articles that depict one or more real-world subjects (a monument, a building, a videogame level, a film still).
- Pair with
Template:Tlx: the infobox holds the trait art and data; this template holds the reference image(s).
The infobox references parameter names the subjects in text; this
template shows them. The two are complementary.