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
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Skeleton Infobox
| name    =  
| name    =  
| title    = {{{name|}}}
| title    = {{{name|}}}
| image   = {{{image|}}}
| image = {{#if:{{{image|}}}
| [[File:{{{image}}}|300px]]
| [[File:No-Image-Placeholder.svg|300px]]
}}
| caption  = {{{caption|}}}
| caption  = {{{caption|}}}


| header1  = Arrangement
| header1  = Arrangement


| label1   = Organiser
| label2   = Organiser
|  data1   = {{{organiser|}}}
|  data2   = {{{organiser|}}}
 
| label3  = Event date
|  data3  = {{#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}}}}}}}
| label4  = Location
|  data4  = {{{location|}}}


| label2  = Event date
| header5 = Results
|  data2  = {{{event_date|}}}
| label3  = Location
|  data3  = {{{location|}}}


| header4 = Results
| label6  = Participants
|  data6  = {{{participants|}}}


| label5 = Participants
| label7 = Duration
|  data5 = {{{participants|}}}
|  data7 = {{{duration|}}}


| label6 = Duration
| label8 = Winner
|  data6 = {{{duration|}}}
|  data8 = {{{winner|}}}
| label9  = Winners
|  data9  = {{{winners|}}}


| label7 = Winner
| label10 = Prize
|  data7 = {{{winner|}}}
|  data10 = {{{prize|}}}
| label8  = Winners
|  data8  = {{{winners|}}}


| label9  = Prize
| label11 = Casualties
|  data9  = {{{prize|}}}
|  data11 = {{{casualties|}}}


| label10 = Casualties
| label12 = Recurring
|  data10 = {{{casualties|}}}
|  data12 = {{#ifeq:{{lc:{{{recurring|}}}}}|yes|Yes|No}}
}}
}}
[[Category:Events]]</includeonly>
[[Category:Events]]</includeonly>
Line 49: Line 70:
"description": "A picture that best describes the event",
"description": "A picture that best describes the event",
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true
"autovalue": "",
"suggested": true
},
},
"caption": {
"caption": {
Line 59: Line 81:
"label": "Event organiser",
"label": "Event organiser",
"description": "The person who organised / lead the event",
"description": "The person who organised / lead the event",
"type": "wiki-page-name"
"type": "wiki-page-name",
"example": "{{playerhead|SiOtter}}"
},
},
"location": {
"location": {
"label": "Event location",
"label": "Event location",
"description": "The place, where the event happened",
"description": "The place, where the event happened",
"required": true,
"type": "wiki-page-name",
"type": "wiki-page-name"
"suggested": true
},
},
"participants": {
"participants": {
Line 71: Line 94:
"description": "List of people, who participated in the event",
"description": "List of people, who participated in the event",
"type": "string",
"type": "string",
"required": true
"example": "{{playerhead|Xeon}}, {{playerhead|Moxieskip}}, {{playerhead|Sweetcorm}}",
"suggested": true
},
},
"duration": {
"duration": {
Line 77: Line 101:
"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 121:
"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"
},
"recurring": {
"label": "Recurring Event",
"type": "string",
"description": "Whether this is a recurring event or not",
"example": "Yes, No",
"suggested": true
}
}
},
},
Line 110: Line 150:
"image",
"image",
"caption",
"caption",
"event_date",
"event_day",
"event_month",
"event_year",
"organiser",
"organiser",
"location",
"location",
Line 118: Line 160:
"winners",
"winners",
"prize",
"prize",
"casualties"
"casualties",
"recurring"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 16:06, 25 October 2026


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

Auto value
Filesuggested
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

Example
{{playerhead|SiOtter}}
Page nameoptional
Event locationlocation

The place, where the event happened

Page namesuggested
Participantsparticipants

List of people, who participated in the event

Example
{{playerhead|Xeon}}, {{playerhead|Moxieskip}}, {{playerhead|Sweetcorm}}
Stringsuggested
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
Recurring Eventrecurring

Whether this is a recurring event or not

Example
Yes, No
Stringsuggested