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= |
− | |||
{{#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 | + | <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 | + | <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 | |
---|---|
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The name of the event | Unknown | required |
Image | image | An image to represent the event | Unknown | optional |
Location(s) | locations | The locations the event happened in | Unknown | required |
Groups | groups | Any involved groups
| Unknown | optional |
Preceding Event | previousEvent | The event before this one | Unknown | required |
Succeeding Event | nextEvent | The event after this one | Unknown | optional |
Start Date | startDate | The date the event started | Unknown | optional |
End Date | endDate | The date the event finished | Unknown | optional |
Start Time | startTime | The time the event started | Unknown | optional |
End Time | endTime | The time the event finished | Unknown | optional |
ExtraContent | extraContent | no description | Unknown | optional |