Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox event: Difference between revisions

Template page
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: #1a1a2e; border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;">
<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: #999;" {{!}} Date
! 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: #999;" {{!}} Location
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Location
{{!}} style="padding: 4px;" {{!}} {{{location}}}
{{!}} style="padding: 4px;" {{!}} {{{location}}}
}}
{{#if:{{{participants|}}}|
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Participants
{{!}} style="padding: 4px;" {{!}} {{{participants}}}
}}
{{#if:{{{outcome|}}}|
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Outcome
{{!}} style="padding: 4px;" {{!}} {{{outcome}}}
}}
}}
{{#if:{{{series|}}}|
{{#if:{{{series|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Series
! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Series
{{!}} style="padding: 4px;" {{!}} {{{series}}}
{{!}} style="padding: 4px;" {{!}} {{{series}}}
}}
}}
|}
|}
</div><includeonly>[[Category:Events]]{{#if:{{{series|}}}|[[Category:{{{series}}} Events]]}}</includeonly><noinclude>
</div><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
Line 37: Line 27:
|date=
|date=
|location=
|location=
|participants=
|outcome=
|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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Event name

Default
{{PAGENAME}}
Stringoptional
Imageimage

Event image

Fileoptional
Datedate

When the event occurred

Stringoptional
Locationlocation

Where the event took place

Stringoptional
Seriesseries

Which series this event is from

Suggested values
Rift SMP Ruinous Sands Tropical Island Civ
Stringoptional
Contents