Toggle menu
Toggle preferences 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
More languages
Content deleted Content added
m Protected "Template:Infobox Event" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
 
Line 11: Line 11:


| label2 = Event date
| label2 = Event date
| data2 = {{{event_date|}}}
| data2 = {{#if:{{{event_year|}}}{{{event_month|}}}{{{event_day|}}}
| {{#formatdate:{{{event_day}}}.{{#switch:{{#sub:{{lc:{{{event_month}}}}}|0|3}}
| jan = 01
| feb = 02
| mar = 03
| apr = 04
| may = 05
| jun = 06
| jul = 07
| aug = 08
| sep = 09
| oct = 10
| nov = 11
| dec = 12
| {{padleft:{{{event_month}}}|2}}
}}.{{{event_year}}}}}}}
| label3 = Location
| label3 = Location
| data3 = {{{location|}}}
| data3 = {{{location|}}}
Line 77: Line 92:
"description": "The total duration of the event",
"description": "The total duration of the event",
"type": "string"
"type": "string"
},
"event_date": {
"label": "Date of the event",
"description": "The day when the event occurred",
"type": "date",
"required": true
},
},
"winner": {
"winner": {
Line 103: Line 112:
"description": "List of casualties, if applicable",
"description": "List of casualties, if applicable",
"type": "string"
"type": "string"
},
"event_year": {
"label": "Event year",
"description": "The year, when the event occurred",
"type": "number"
},
"event_month": {
"label": "Event month",
"description": "The month, on which the event occurred (numeric or short name like Jan, Mar, etc.)",
"type": "line"
},
"event_day": {
"label": "Event day",
"description": "The day, on which the event occurred",
"type": "number"
}
}
},
},
Line 110: Line 134:
"image",
"image",
"caption",
"caption",
"event_date",
"event_day",
"event_month",
"event_year",
"organiser",
"organiser",
"location",
"location",

Latest revision as of 12:47, 3 August 2025


This infobox describes any event that happened on Moxiecraft

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Event namename

The name of the event

Linerequired
Pictureimage

A picture that best describes the event

Filerequired
Image captioncaption

A description for the provided picture

Lineoptional
Event dayevent_day

The day, on which the event occurred

Numberoptional
Event monthevent_month

The month, on which the event occurred (numeric or short name like Jan, Mar, etc.)

Lineoptional
Event yearevent_year

The year, when the event occurred

Numberoptional
Event organiserorganiser

The person who organised / lead the event

Page nameoptional
Event locationlocation

The place, where the event happened

Page namerequired
Participantsparticipants

List of people, who participated in the event

Stringrequired
Event durationduration

The total duration of the event

Stringoptional
Winnerwinner

The winner of the event, if applicable

Page nameoptional
Winnerswinners

The winners of the event, if applicable

Stringoptional
Event prizeprize

The prize that the winner(s) got, if applicable

Lineoptional
Casualtiescasualties

List of casualties, if applicable

Stringoptional