m (→Examples) |
(updated examples, added parameter information) |
||
Line 1:
{{documentation subpage}}
{{Lua|Module:Infobox Event}}
==Parameters==
<templatedata>
{
"params": {
"event id": {
"label": "Event ID",
"description": "The ID of the event.",
"type": "number",
"required": true
},
"event name": {
"label": "Event Name",
"description": "The name of the event, translated from Japanese.",
"type": "string",
"required": true
},
"japanese": {
"label": "Japanese",
"description": "The name of the event in Japanese.",
"type": "string",
"suggested": true
},
"romaji": {
"label": "Romaji",
"description": "The romanization of the Japanese event name.",
"type": "string",
"suggested": true
},
"image": {
"label": "Image",
"description": "The image of the event.",
"type": "wiki-file-name",
"required": true
},
"start": {
"label": "Start Date",
"description": "The start date and time of the event, in JST.",
"type": "date",
"required": true
},
"end": {
"label": "End Date",
"description": "The end date of the event, in JST.",
"type": "date",
"required": true
},
"unit focus": {
"label": "Unit Focus",
"description": "The unit that is the focus of the event, or mixed. Use \"vs\" for VIRTUAL SINGER, \"ln\" for Leo/need, \"mmj\" for MORE MORE JUMP!, \"vbs\" for Vivid BAD SQUAD, \"wxs\" for Wonderlands×Showtime, \"25ji\" for 25-ji, Nightcord de.",
"type": "string",
"required": true
},
"type": {
"label": "Event Type",
"description": "The type of event. Use \"Marathon\" or \"Cheerful Carnival\".",
"type": "string",
"required": true
},
"characters": {
"label": "Bonus Characters",
"description": "The characters of the cards that receive event bonus, separated by commas.",
"type": "string",
"required": true
},
"attribute": {
"label": "Bonus Attribute",
"description": "The attribute of cards that receive event bonus. Use \"cool\", \"cute\", \"happy\", \"mysterious\" or \"pure\".",
"type": "string",
"required": true
},
"event song id": {
"label": "Event Song ID",
"description": "The ID of the song that is associated with the event.",
"type": "number",
"suggested": true
},
"bg color": {
"label": "Background Color",
"description": "The background color of the infobox headers.",
"type": "string",
"suggested": true
},
"text color": {
"label": "Text Color",
"description": "The text color of the infobox headers.",
"type": "string",
"suggested": true
}
},
"format": "block",
"description": "Infobox Event for displaying event information.",
"paramOrder": [
"bg color",
"text color",
"event id",
"event name",
"japanese",
"romaji",
"image",
"start",
"end",
"unit focus",
"type",
"characters",
"attribute",
"event song id"
]
}
</templatedata>
==Quick Copy==
Line 29 ⟶ 137:
|bg color = #ff5b41
|text color = #000
|event id = 21
|event name = STRAY BAD DOG
|image = Stray2021 logo.png
|start = 2021/04/30, 15:00 JST
|end = 2021/05/08, 20:59 JST
|unit focus = vbs
|type = Cheerful Carnival
Line 43 ⟶ 152:
|bg color = #ff5b41
|text color = #000
|event id = 21
|event name = STRAY BAD DOG
|image = Stray2021 logo.png
|start = 2021/04/30, 15:00 JST
|end = 2021/05/08, 20:59 JST
|unit focus = vbs
|type = Cheerful Carnival
Line 58 ⟶ 168:
{{Infobox Event
|bg color = #
|text color = #000
|event
|event name = Carnation Recollection
|japanese = カーネーション・リコレクション
|
|
|
|end = 2021/06/28, 20:59 JST
|unit focus = 25ji
|type = Marathon
|characters = kanade,25ji luka,mafuyu,mizuki,ena
|attribute = mysterious
|event song id = 149
}}
<pre>
{{Infobox Event
|bg color = #
|text color = #000
|event
|event name = Carnation Recollection
|japanese = カーネーション・リコレクション
|
|
|
|end = 2021/06/28, 20:59 JST
|unit focus = 25ji
|type = Marathon
|characters = kanade,25ji luka,mafuyu,mizuki,ena
|attribute = mysterious
|event song id = 149
}}
</pre>
|
Revision as of 02:51, 31 October 2021
This is a documentation subpage for Template:Infobox event. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Parameters
Infobox Event for displaying event information.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background Color | bg color | The background color of the infobox headers. | String | suggested |
Text Color | text color | The text color of the infobox headers. | String | suggested |
Event ID | event id | The ID of the event. | Number | required |
Event Name | event name | The name of the event, translated from Japanese. | String | required |
Japanese | japanese | The name of the event in Japanese. | String | suggested |
Romaji | romaji | The romanization of the Japanese event name. | String | suggested |
Image | image | The image of the event. | File | required |
Start Date | start | The start date and time of the event, in JST. | Date | required |
End Date | end | The end date of the event, in JST. | Date | required |
Unit Focus | unit focus | The unit that is the focus of the event, or mixed. Use "vs" for VIRTUAL SINGER, "ln" for Leo/need, "mmj" for MORE MORE JUMP!, "vbs" for Vivid BAD SQUAD, "wxs" for Wonderlands×Showtime, "25ji" for 25-ji, Nightcord de. | String | required |
Event Type | type | The type of event. Use "Marathon" or "Cheerful Carnival". | String | required |
Bonus Characters | characters | The characters of the cards that receive event bonus, separated by commas. | String | required |
Bonus Attribute | attribute | The attribute of cards that receive event bonus. Use "cool", "cute", "happy", "mysterious" or "pure". | String | required |
Event Song ID | event song id | The ID of the song that is associated with the event. | Number | suggested |
Quick Copy
{{Infobox Event |bg color = |text color = |event id = |event name = |japanese = |romaji = |image = |start = |end = |unit focus = |type = |characters = |attribute = |event song id = }}
Examples
{{Infobox Event |bg color = #ff5b41 |text color = #000 |event id = 21 |event name = STRAY BAD DOG |image = Stray2021 logo.png |start = 2021/04/30, 15:00 JST |end = 2021/05/08, 20:59 JST |unit focus = vbs |type = Cheerful Carnival |characters = akito,an,vbs kaito,kohane,toya |attribute = happy |event song id = 126 }}
{{Infobox Event |bg color = #bc698c |text color = #000 |event id = 26 |event name = Carnation Recollection |japanese = カーネーション・リコレクション |romaji = Kaaneeshon Rikurekushon |image = Carnation2021 logo.png |start = 2021/06/21, 15:00 JST |end = 2021/06/28, 20:59 JST |unit focus = 25ji |type = Marathon |characters = kanade,25ji luka,mafuyu,mizuki,ena |attribute = mysterious |event song id = 149 }}