Template:Event: Difference between revisions

Template page
m (1 revision imported)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="5" style="width: 21em; font-size: 90%; text-align: left;"
{| 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: 130%;" | {{{name|{{PAGENAME}}}}}
! 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:{{{group|}}}|
{{#if:{{{combatants|}}}|
! Group(s) involved
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Combatants
{{!}} {{{group|}}}
{{!}} {{{combatants|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{character|}}}|
{{#if:{{{characters|}}}|
! Character(s) involved
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Characters
{{!}} {{{character|}}}
{{!}} {{{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:{{{pages|}}}|
{{#if:{{{datestarted|}}}|
! Page(s)
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Date Started
{{!}} {{{pages|}}}
{{!}} {{{datestarted|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{year|}}}|
{{#if:{{{dateended|}}}|
! Year
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Date Finished
{{!}} {{{year|}}}
{{!}} {{{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|}}}
{{!}}-
{{!}}-
}}
}}
|}<noinclude>{{documentation}}
{{#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         =
| character =  
| type       =
| group     =
 
| date       =  
| location   =
| pages     =
| combatants  =  
| year       =
| characters =
| before    =
| victor      =
| after     =
| 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.


{{esoteric}}
Types:
- Battle
- War
- Plot
- Meeting
- Murder
- Trial


[[Category:Templates|{{PAGENAME}}]]
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:36, 11 February 2023

Event
Event
Wiki unknown image.png



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