(Added year.) |
No edit summary |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" cellspacing="5" style="width: | {| class="infobox" cellspacing="5" style="width: 25em; font-size: 90%; text-align: left; float: right; clear: right; margin: 0 0 1em 1em; background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette|Stone}}}};" | ||
! colspan="2" style="text-align: center; font-size: | ! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" " | {{{name|{{PAGENAME}}}}} | ||
|- | |||
! colspan="2" style="font-size: 160%; text-align: center; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" | {{#if:{{{type|}}}|{{{type}}}|Event}} | |||
|- | |- | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} align="center" colspan="2" {{!}} {{{image}}} {{#if:{{{caption|}}}|<br /><small>{{{caption}}}}} | {{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>{{{caption|}}}}} | ||
{{!}}- | |||
| | |||
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:File:Wiki unknown image.png}}|350px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{rpg|}}}| | {{#if:{{{rpg|}}}| | ||
! RPG | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} RPG | ||
{{!}} {{{rpg|}}} | {{!}} {{{rpg|}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{conflict|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Conflict | |||
{{!}} {{{conflict|}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{location|}}}| | {{#if:{{{location|}}}| | ||
! Location | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Location | ||
{{!}} {{{location|}}} | {{!}} {{{location|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{combatants|}}}| | ||
! | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Combatants | ||
{{!}} {{{ | {{!}} {{{combatants|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{characters|}}}| | ||
! | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Characters | ||
{{!}} {{{ | {{!}} {{{characters|}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{victor|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Victor | |||
{{!}} {{{victor|}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{victors|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Victors | |||
{{!}} {{{victors|}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{groups|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Groups | |||
{{!}} {{{groups|}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{year|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Year | |||
{{!}} {{{year|}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{date|}}}| | {{#if:{{{date|}}}| | ||
! Date | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Date | ||
{{!}} {{{date|}}} | {{!}} {{{date|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{datestarted|}}}| | ||
! | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Date Started | ||
{{!}} {{{ | {{!}} {{{datestarted|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{dateended|}}}| | ||
! | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Date Finished | ||
{{!}} {{{ | {{!}} {{{dateended|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{before|}}}| | {{#if:{{{before|}}}| | ||
! | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Before | ||
{{!}} {{{before|}}} | {{!}} {{{before|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{after|}}}| | {{#if:{{{after|}}}| | ||
! - | ! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} After | ||
{{!}} {{{after|}}} | {{!}} {{{after|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|}< | {{#if:{{{pages|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Pages | |||
{{!}} {{{pages|}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{type|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Type | |||
{{!}} {{{type|}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{status|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Status | |||
{{!}} {{{status|}}} | |||
{{!}}- | |||
}} | |||
|} | |||
{{#if:{{{type|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{type|}}}s ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{type|}}}s]]</includeonly> | |||
}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:Events ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:Events]]</includeonly> | |||
}} | |||
}} | |||
<noinclude> | |||
== Usage == | == Usage == | ||
<div style="width: 40%;"><pre> | <div style="width: 40%;"><pre> | ||
{{Event | {{Event | ||
| name | | bg_color = | ||
| image | | name = | ||
| caption | | image = | ||
| rpg = | | caption = | ||
| location | | rpg = | ||
| | | type = | ||
| group | |||
| date | | location = | ||
| | | combatants = | ||
| | | characters = | ||
| | | victor = | ||
| | | victors = | ||
| group = | |||
| year = | |||
| date = | |||
| datestarted = | |||
| dateended = | |||
| before = | |||
| after = | |||
| pages = | |||
| type = | |||
| status = | |||
}} | }} | ||
</pre></div> | </pre></div> | ||
The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically. | The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically. | ||
Types: | |||
- Battle | |||
- War | |||
- Plot | |||
- Meeting | |||
- Murder | |||
- Trial | |||
[[Category:Templates | [[Category:Infobox Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 22:36, 11 February 2023
Event | |
---|---|
Event | |
Usage
{{Event | bg_color = | name = | image = | caption = | rpg = | type = | location = | combatants = | characters = | victor = | victors = | group = | year = | date = | datestarted = | dateended = | before = | after = | pages = | type = | status = }}
The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically.
Types: - Battle - War - Plot - Meeting - Murder - Trial