Template
Infobox Event
From Dogcraft Wiki
(Adding Survival 4 to auto link for World) |
No edit summary |
||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
{{Infobox Event | {{Infobox Event | ||
|title | |title = | ||
|image | |image = | ||
|caption | |caption = | ||
|type | |type = | ||
|date | |date = | ||
|time | |time = | ||
|attendance = | |attendance = | ||
|organizers | |organizers = | ||
|activities | |activities = | ||
|world | |world = | ||
|tp_command = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 30: | Line 31: | ||
|label2 = World | |label2 = World | ||
|data2 = {{#if: {{{world}}} | {{#switch: {{{world}}} | Survival = [[Survival]] | Survival 1 = [[Survival 1]] | Survival 2 = [[Survival 2]] | Survival 3 = [[Survival 3]] | Survival 4 = [[Survival 4]] | Amplified = [[Amplified]] | Skyblock = [[Skyblock]] | Creative = [[Creative]] | MCMMO = [[MCMMO]] | {{{world}}} }}|}} | |data2 = {{#if: {{{world}}} | {{#switch: {{{world}}} | Survival = [[Survival]] | Survival 1 = [[Survival 1]] | Survival 2 = [[Survival 2]] | Survival 3 = [[Survival 3]] | Survival 4 = [[Survival 4]] | Amplified = [[Amplified]] | Skyblock = [[Skyblock]] | Creative = [[Creative]] | MCMMO = [[MCMMO]] | {{{world}}} }}|}} | ||
|label3 = Organizers | |label3 = TP Command | ||
| | |data3 = {{{tp_command|}}} | ||
| | |label4 = Organizers | ||
| | |data4 = {{{organizers|}}} | ||
| | |label5 = Attendance | ||
| | |data5 = {{{attendance|}}} | ||
| | |label6 = Type | ||
| | |data6 = {{{type|}}} | ||
| | |label7 = Activities | ||
| | |data7 = {{{activities|}}} | ||
| | |label8 = Date | ||
| | |data8 = {{{date|}}} | ||
|label9 = Time | |||
|data9 = {{{time|}}} | |||
}} | }} | ||
[[Category:Events]] | [[Category:Events]] | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "The name of the event", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "A main image of the event", | |||
"example": "Event.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "A caption for the image", | |||
"type": "string" | |||
}, | |||
"world": { | |||
"label": "World", | |||
"description": "What world/season was the event held on?", | |||
"example": "Survival 4", | |||
"type": "string" | |||
}, | |||
"tp_command": { | |||
"label": "TP Command", | |||
"description": "Public home or warp", | |||
"example": "/phome event", | |||
"type": "string" | |||
}, | |||
"organizers": { | |||
"label": "Organizers", | |||
"description": "Who organised the event", | |||
"type": "string" | |||
}, | |||
"attendance": { | |||
"label": "Attendance", | |||
"description": "How well-attended was the event", | |||
"type": "string" | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "What type of event was it", | |||
"type": "string" | |||
}, | |||
"activities": { | |||
"label": "Activities", | |||
"description": "What activities occurred at the event", | |||
"type": "string" | |||
}, | |||
"date": { | |||
"label": "Date", | |||
"description": "When was the event held?", | |||
"type": "date" | |||
}, | |||
"time": { | |||
"label": "Time", | |||
"description": "At what time was the event held? Include timezone", | |||
"example": "1:00PM GMT", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "An infobox for Events held on the Dogcraft Server" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 16:55, 3 January 2021
{{Infobox Event |title = |image = |caption = |type = |date = |time = |attendance = |organizers = |activities = |world = |tp_command = }}
An infobox for Events held on the Dogcraft Server
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The name of the event | String | optional |
Image | image | A main image of the event
| File | optional |
Caption | caption | A caption for the image | String | optional |
World | world | What world/season was the event held on?
| String | optional |
TP Command | tp_command | Public home or warp
| String | optional |
Organizers | organizers | Who organised the event | String | optional |
Attendance | attendance | How well-attended was the event | String | optional |
Type | type | What type of event was it | String | optional |
Activities | activities | What activities occurred at the event | String | optional |
Date | date | When was the event held? | Date | optional |
Time | time | At what time was the event held? Include timezone
| String | optional |
This page was last modified on 3 January 2021, at 16:55. (3 months ago)