Actions

Template

Difference between revisions of "EventInfoBox"

(Created event infobox)
 
(Fixed maximum height of images to 400px)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable=
    {{InfoBox|title={{{title|}}}|infoBoxTable=
 
 
         {{#if: {{{image|}}}|  
 
         {{#if: {{{image|}}}|  
 
             <tr>
 
             <tr>
                 <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]]</td>
+
                 <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px|x400px]]</td>
 
             </tr>
 
             </tr>
 
         }}
 
         }}
Line 20: Line 19:
 
         {{#if: {{{previousEvent}}}|  
 
         {{#if: {{{previousEvent}}}|  
 
             <tr>
 
             <tr>
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>Preceding Event</b>:</td>
+
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>Preceding {{#switch: {{{type|}}}|arc=Arc|incident=Incident|Event}}</b>:</td>
 
                 <td>{{{previousEvent}}}</td>
 
                 <td>{{{previousEvent}}}</td>
 
             </tr>
 
             </tr>
Line 26: Line 25:
 
         {{#if: {{{nextEvent|}}}|  
 
         {{#if: {{{nextEvent|}}}|  
 
             <tr>
 
             <tr>
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>Succeeding Event</b>:</td>
+
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>Succeeding {{#switch: {{{type|}}}|arc=Arc|incident=Incident|Event}}</b>:</td>
 
                 <td>{{{nextEvent}}}</td>
 
                 <td>{{{nextEvent}}}</td>
 
             </tr>
 
             </tr>
Line 32: Line 31:
 
         {{#if: {{{startDate|}}}|  
 
         {{#if: {{{startDate|}}}|  
 
             <tr>
 
             <tr>
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>{{#if: {{{endDate|}}|Start}}} Date</b>:</td>
+
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>{{#if: {{{endDate|}}}|Start}} Date</b>:</td>
 
                 <td>{{{startDate}}}</td>
 
                 <td>{{{startDate}}}</td>
 
             </tr>
 
             </tr>
Line 38: Line 37:
 
         {{#if: {{{startTime|}}}|  
 
         {{#if: {{{startTime|}}}|  
 
             <tr>
 
             <tr>
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>{{#if: {{{endTime|}}|Start}}} Time</b>:</td>
+
                 <td class="infoboxtd1strow" style="padding: 10px;"><b>{{#if: {{{endTime|}}}|Start}} Time</b>:</td>
 
                 <td>{{{startTime}}}</td>
 
                 <td>{{{startTime}}}</td>
 
             </tr>
 
             </tr>
Line 56: Line 55:
 
         {{#if: {{{extraContent|}}}|  
 
         {{#if: {{{extraContent|}}}|  
 
             {{{extraContent}}}
 
             {{{extraContent}}}
         }}
+
         }}}}
    }}
+
</includeonly><noinclude>{{EventInfoBox
</includeonly>
+
|title=Test Event
<noinclude>
+
|image=byAllah.jpg
{{EventInfoBox
+
|locations=[[Test City]], [[Test village]]
 +
|groups=[[Test Group]], [[Test Party]]
 +
|previousEvent=Some previous event
 +
|nextEvent=The next event
 +
|startDate=6/9/42
 +
|endDate=6/9/69
 +
|startTime=18:00
 +
|endTime=19:00
 +
|extraContent=<tr><td>Extra content used by other templates</td></tr>}}Test text
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 111: Line 118:
 
}
 
}
 
}
 
}
</templatedata></noinclude>
+
</templatedata>
 +
</noinclude>

Latest revision as of 16:59, 30 August 2021

Test Event
ByAllah.jpg
Notable Locations: Test City, Test village
Involved Groups: Test Group, Test Party
Preceding Event: Some previous event
Succeeding Event: The next event
Start Date: 6/9/42
Start Time: 18:00
End Date: 6/9/69
End Time: 19:00
Extra content used by other templates

Test text

No description.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

The name of the event

Unknownrequired
Imageimage

An image to represent the event

Unknownoptional
Location(s)locations

The locations the event happened in

Unknownrequired
Groupsgroups

Any involved groups

Example
Templar Order
Unknownoptional
Preceding EventpreviousEvent

The event before this one

Unknownrequired
Succeeding EventnextEvent

The event after this one

Unknownoptional
Start DatestartDate

The date the event started

Unknownoptional
End DateendDate

The date the event finished

Unknownoptional
Start TimestartTime

The time the event started

Unknownoptional
End TimeendTime

The time the event finished

Unknownoptional
ExtraContentextraContent

no description

Unknownoptional