Jump to content

Template:Infobox Event: Difference between revisions

From Xandaris Wiki
Switch to HTML table to fix whitespace
Single-line includeonly to fix foster-parented br elements
 
Line 1: Line 1:
<includeonly><table class="wikitable" style="float:right; margin-left:1em;">
<includeonly><table class="wikitable" style="float:right; margin-left:1em;"><tr><th colspan="2">{{{name|{{PAGENAME}}}}}</th></tr>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{image}}}|250px]]</td></tr>}}{{#if:{{{date|}}}|<tr><td>'''Date'''</td><td>{{{date}}}</td></tr>}}{{#if:{{{location|}}}|<tr><td>'''Location'''</td><td>{{{location}}}</td></tr>}}{{#if:{{{victim|}}}|<tr><td>'''{{#if:{{{victim2|}}}|Victims|Victim}}'''</td><td>{{{victim}}}{{#if:{{{victim2|}}}|, {{{victim2}}}}}{{#if:{{{victim3|}}}|, {{{victim3}}}}}</td></tr>}}{{#if:{{{killer|}}}|<tr><td>'''{{#if:{{{killer2|}}}|Killers|Killer}}'''</td><td>{{{killer}}}{{#if:{{{killer2|}}}|, {{{killer2}}}}}{{#if:{{{killer3|}}}|, {{{killer3}}}}}</td></tr>}}{{#if:{{{weapon|}}}|<tr><td>'''Weapon'''</td><td>{{{weapon}}}</td></tr>}}{{#if:{{{motive|}}}|<tr><td>'''Motive'''</td><td>{{{motive}}}</td></tr>}}{{#if:{{{witnesses|}}}|<tr><td>'''Witnesses'''</td><td>{{{witnesses}}}</td></tr>}}{{#if:{{{outcome|}}}|<tr><td>'''Outcome'''</td><td>{{{outcome}}}</td></tr>}}{{#if:{{{preceded_by|}}}|<tr><td>'''Preceded By'''</td><td>{{{preceded_by}}}</td></tr>}}{{#if:{{{followed_by|}}}|<tr><td>'''Followed By'''</td><td>{{{followed_by}}}</td></tr>}}</table></includeonly>
<tr><th colspan="2">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{image}}}|250px]]</td></tr>}}
{{#if:{{{date|}}}|<tr><td>'''Date'''</td><td>{{{date}}}</td></tr>}}
{{#if:{{{location|}}}|<tr><td>'''Location'''</td><td>{{{location}}}</td></tr>}}
{{#if:{{{victim|}}}|<tr><td>'''{{#if:{{{victim2|}}}|Victims|Victim}}'''</td><td>{{{victim}}}{{#if:{{{victim2|}}}|, {{{victim2}}}}}{{#if:{{{victim3|}}}|, {{{victim3}}}}}</td></tr>}}
{{#if:{{{killer|}}}|<tr><td>'''{{#if:{{{killer2|}}}|Killers|Killer}}'''</td><td>{{{killer}}}{{#if:{{{killer2|}}}|, {{{killer2}}}}}{{#if:{{{killer3|}}}|, {{{killer3}}}}}</td></tr>}}
{{#if:{{{weapon|}}}|<tr><td>'''Weapon'''</td><td>{{{weapon}}}</td></tr>}}
{{#if:{{{motive|}}}|<tr><td>'''Motive'''</td><td>{{{motive}}}</td></tr>}}
{{#if:{{{witnesses|}}}|<tr><td>'''Witnesses'''</td><td>{{{witnesses}}}</td></tr>}}
{{#if:{{{outcome|}}}|<tr><td>'''Outcome'''</td><td>{{{outcome}}}</td></tr>}}
{{#if:{{{preceded_by|}}}|<tr><td>'''Preceded By'''</td><td>{{{preceded_by}}}</td></tr>}}
{{#if:{{{followed_by|}}}|<tr><td>'''Followed By'''</td><td>{{{followed_by}}}</td></tr>}}
</table></includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==

Latest revision as of 23:19, 1 March 2026


Usage[edit]

{{Infobox Event
| name        =
| image       =
| date        =
| location    =
| victim      =
| victim2     =
| victim3     =
| killer      =
| killer2     =
| killer3     =
| weapon      =
| motive      =
| witnesses   =
| outcome     =
| preceded_by =
| followed_by =
}}

All fields are optional. name defaults to {{PAGENAME}}.

When multiple victims or killers are provided, the label auto-pluralizes (e.g. "Victim" → "Victims").