More actions
Created page with "<div style="float: right; width: 300px; background: #1a1a2e; border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;"> <div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> {{{image|}}} {| style="width: 100%;" {{#if:{{{date|}}}| {{!}}- ! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Date {{!}} style="padding: 4px;" {{!}} {{{date}}} }} {{#if:{{{location|}}}| {{!..." |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="float: right; width: 300px; background: | <div style="float: right; width: 300px; background: var(--color-surface-2); border: 1px solid var(--border-color-base); border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;"> | ||
<div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> | <div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> | ||
{{{image|}}} | <div style="text-align: center;">{{{image|}}}</div> | ||
{| style="width: 100%;" | {| style="width: 100%;" | ||
{{#if:{{{date|}}}| | {{#if:{{{date|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Date | ||
{{!}} style="padding: 4px;" {{!}} {{{date}}} | {{!}} style="padding: 4px;" {{!}} {{{date}}} | ||
}} | }} | ||
{{#if:{{{location|}}}| | {{#if:{{{location|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Location | ||
{{!}} style="padding: 4px;" {{!}} {{{location}}} | {{!}} style="padding: 4px;" {{!}} {{{location}}} | ||
}} | }} | ||
{{#if:{{{series|}}}| | {{#if:{{{series|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Series | ||
{{!}} style="padding: 4px;" {{!}} {{{series}}} | {{!}} style="padding: 4px;" {{!}} {{{series}}} | ||
}} | }} | ||
|} | |} | ||
</div | </div><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
| Line 37: | Line 27: | ||
|date= | |date= | ||
|location= | |location= | ||
|series= | |series= | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"type": "string", | |||
"description": "Event name", | |||
"default": "{{PAGENAME}}" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"type": "wiki-file-name", | |||
"description": "Event image" | |||
}, | |||
"date": { | |||
"label": "Date", | |||
"type": "string", | |||
"description": "When the event occurred" | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"type": "string", | |||
"description": "Where the event took place" | |||
}, | |||
"series": { | |||
"label": "Series", | |||
"type": "string", | |||
"description": "Which series this event is from", | |||
"suggestedvalues": ["Rift SMP", "Ruinous Sands", "Tropical Island Civ"] | |||
} | |||
}, | |||
"description": "Infobox for event pages", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 18:13, 11 April 2026
Infobox event
Usage
{{Infobox event
|name=
|image=
|date=
|location=
|series=
}}
Infobox for event pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Event name
| String | optional |
| Image | image | Event image | File | optional |
| Date | date | When the event occurred | String | optional |
| Location | location | Where the event took place | String | optional |
| Series | series | Which series this event is from
| String | optional |