Template:Infobox Event: Difference between revisions
Appearance
Create reusable infobox template for event pages |
Single-line includeonly to fix foster-parented br elements |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <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> | ||
<noinclude> | |||
{{#if:{{{image|}}}| | |||
}} | |||
{{#if:{{{date|}}}| | |||
}} | |||
{{#if:{{{location|}}}| | |||
}} | |||
{{#if:{{{victim|}}}| | |||
}} | |||
{{#if:{{{killer|}}}| | |||
}} | |||
{{#if:{{{weapon|}}}| | |||
}} | |||
{{#if:{{{motive|}}}| | |||
}} | |||
{{#if:{{{witnesses|}}}| | |||
}} | |||
{{#if:{{{outcome|}}}| | |||
}} | |||
{{#if:{{{preceded_by|}}}| | |||
}} | |||
{{#if:{{{followed_by|}}}| | |||
}} | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
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").