mNo edit summary |
(added catmap and description) |
||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
{{Lua|Module:Infobox event}} |
{{Lua|Module:Infobox event}} {{Cargo|Songs}} |
||
Infobox template for storing event information. This template sets the "event id", "event name", "start date", "characters", and "attribute" variables onto the page based on values passed in. This template also automatically sets categories. |
|||
⚫ | |||
⚫ | |||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 15: | Line 17: | ||
}, |
}, |
||
"event name": { |
"event name": { |
||
"label": "Event |
"label": "Event name", |
||
"description": "The name of the event, translated from Japanese.", |
"description": "The name of the event, translated from Japanese.", |
||
"type": "string", |
"type": "string", |
||
Line 43: | Line 45: | ||
}, |
}, |
||
"start": { |
"start": { |
||
"label": "Start |
"label": "Start date", |
||
"description": "The start date and time of the event, in JST.", |
"description": "The start date and time of the event, in JST.", |
||
"type": "date", |
"type": "date", |
||
Line 50: | Line 52: | ||
}, |
}, |
||
"end": { |
"end": { |
||
"label": "End |
"label": "End date", |
||
"description": "The end date of the event, in JST.", |
"description": "The end date of the event, in JST.", |
||
"type": "date", |
"type": "date", |
||
Line 57: | Line 59: | ||
}, |
}, |
||
"unit focus": { |
"unit focus": { |
||
"label": "Unit |
"label": "Unit focus", |
||
"description": "The unit that is the focus of the event, or mixed. Use |
"description": "The unit that is the focus of the event, or mixed. Use the unit's proper name or \"Mixed\" if mixed.", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
"required": true, |
||
"example": " |
"example": "25-ji, Nightcord de." |
||
}, |
}, |
||
"type": { |
"type": { |
||
"label": "Event |
"label": "Event type", |
||
"description": "The type of event. Use \"Marathon\" or \"Cheerful Carnival\".", |
"description": "The type of event. Use \"Marathon\" or \"Cheerful Carnival\".", |
||
"type": "string", |
"type": "string", |
||
Line 71: | Line 73: | ||
}, |
}, |
||
"characters": { |
"characters": { |
||
"label": "Bonus |
"label": "Bonus characters", |
||
"description": "The characters of the cards that receive event bonus, separated by |
"description": "The characters of the cards that receive event bonus, separated by semicolons.", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
"required": true, |
||
"example": "Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena" |
|||
"example": "kanade,25ji luka,mafuyu,mizuki,ena" |
|||
}, |
}, |
||
"attribute": { |
"attribute": { |
||
"label": "Bonus |
"label": "Bonus attribute", |
||
"description": "The attribute of cards that receive event bonus. Use \" |
"description": "The attribute of cards that receive event bonus. Use \"Cool\", \"Cute\", \"Happy\", \"Mysterious\" or \"Pure\".", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
"required": true, |
||
"example": " |
"example": "Mysterious" |
||
}, |
}, |
||
"event song id": { |
"event song id": { |
||
"label": "Event |
"label": "Event song ID", |
||
"description": "The ID of the song that is associated with the event.", |
"description": "The ID of the song that is associated with the event.", |
||
"type": "number", |
"type": "number", |
||
Line 92: | Line 94: | ||
}, |
}, |
||
"bg color": { |
"bg color": { |
||
"label": "Background |
"label": "Background color", |
||
"description": "The background color of the infobox headers.", |
"description": "The background color of the infobox headers.", |
||
"type": "string", |
"type": "string", |
||
Line 99: | Line 101: | ||
}, |
}, |
||
"text color": { |
"text color": { |
||
"label": "Text |
"label": "Text color", |
||
"description": "The text color of the infobox headers.", |
"description": "The text color of the infobox headers.", |
||
"type": "string", |
"type": "string", |
||
Line 107: | Line 109: | ||
}, |
}, |
||
"format": "block", |
"format": "block", |
||
"description": "Infobox |
"description": "Infobox event for displaying event information.", |
||
"paramOrder": [ |
"paramOrder": [ |
||
"bg color", |
"bg color", |
||
Line 127: | Line 129: | ||
</templatedata> |
</templatedata> |
||
== Category mapping == |
|||
⚫ | |||
{| class="wikitable" |
|||
! Parameter |
|||
! Value |
|||
! Category |
|||
|- |
|||
| rowspan="2" | Type |
|||
| Marathon |
|||
| [[:Category:Marathon events]] |
|||
|- |
|||
| Cheerful Carnival |
|||
| [[:Category:Cheerful Carnival events]] |
|||
|- |
|||
| rowspan="7" | Unit focus |
|||
| VIRTUAL SINGER |
|||
| [[:Category:VIRTUAL SINGER events]] |
|||
|- |
|||
| Leo/need |
|||
| [[:Category:Leo/need events]] |
|||
|- |
|||
| MORE MORE JUMP! |
|||
| [[:Category:MORE MORE JUMP! events]] |
|||
|- |
|||
| Vivid BAD SQUAD |
|||
| [[:Category:Vivid BAD SQUAD events]] |
|||
|- |
|||
| Wonderlands×Showtime |
|||
| [[:Category:Wonderlands×Showtime events]] |
|||
|- |
|||
| 25-ji, Nightcord de. |
|||
| [[:Category:25-ji, Nightcord de. events]] |
|||
|- |
|||
| Mixed |
|||
| [[:Category:Mixed events]] |
|||
|- |
|||
| rowspan="5" | Attribute |
|||
| Cool |
|||
| [[:Category:Cool events]] |
|||
|- |
|||
| Cute |
|||
| [[:Category:Cute events]] |
|||
|- |
|||
| Happy |
|||
| [[:Category:Happy events]] |
|||
|- |
|||
| Mysterious |
|||
| [[:Category:Mysterious events]] |
|||
|- |
|||
| Pure |
|||
| [[:Category:Pure events]] |
|||
|} |
|||
⚫ | |||
<pre> |
<pre> |
||
{{Infobox event |
{{Infobox event |
||
Line 147: | Line 202: | ||
</pre> |
</pre> |
||
==Examples== |
== Examples == |
||
{{Infobox event |
{{Infobox event |
||
|bg color = #ff5b41 |
|||
|text color = #000 |
|||
|event id = 21 |
|event id = 21 |
||
|event name = STRAY BAD DOG |
|event name = STRAY BAD DOG |
||
Line 156: | Line 209: | ||
|start = 2021/04/30, 15:00 JST |
|start = 2021/04/30, 15:00 JST |
||
|end = 2021/05/08, 20:59 JST |
|end = 2021/05/08, 20:59 JST |
||
|unit focus = |
|unit focus = Vivid BAD SQUAD |
||
|type = Cheerful Carnival |
|type = Cheerful Carnival |
||
|characters = Shinonome Akito; Shiraishi An; KAITO (Vivid BAD SQUAD); Azusawa Kohane; Aoyagi Toya |
|||
|characters = akito,an,vbs kaito,kohane,toya |
|||
|attribute = |
|attribute = Happy |
||
|event song id = 126 |
|event song id = 126 |
||
}} |
}} |
||
<pre> |
<pre> |
||
{{Infobox event |
{{Infobox event |
||
|bg color = #ff5b41 |
|||
|text color = #000 |
|||
|event id = 21 |
|event id = 21 |
||
|event name = STRAY BAD DOG |
|event name = STRAY BAD DOG |
||
Line 171: | Line 222: | ||
|start = 2021/04/30, 15:00 JST |
|start = 2021/04/30, 15:00 JST |
||
|end = 2021/05/08, 20:59 JST |
|end = 2021/05/08, 20:59 JST |
||
|unit focus = |
|unit focus = Vivid BAD SQUAD |
||
|type = Cheerful Carnival |
|type = Cheerful Carnival |
||
|characters = Shinonome Akito; Shiraishi An; KAITO (Vivid BAD SQUAD); Azusawa Kohane; Aoyagi Toya |
|||
|characters = akito,an,vbs kaito,kohane,toya |
|||
|attribute = |
|attribute = Happy |
||
|event song id = 126 |
|event song id = 126 |
||
}} |
}} |
||
Line 191: | Line 242: | ||
|start = 2021/06/21, 15:00 JST |
|start = 2021/06/21, 15:00 JST |
||
|end = 2021/06/28, 20:59 JST |
|end = 2021/06/28, 20:59 JST |
||
|unit focus = |
|unit focus = 25-ji, Nightcord de. |
||
|type = Marathon |
|type = Marathon |
||
|characters = Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena |
|||
|characters = kanade,25ji luka,mafuyu,mizuki,ena |
|||
|attribute = |
|attribute = Mysterious |
||
|event song id = 149 |
|event song id = 149 |
||
}} |
}} |
||
Line 208: | Line 259: | ||
|start = 2021/06/21, 15:00 JST |
|start = 2021/06/21, 15:00 JST |
||
|end = 2021/06/28, 20:59 JST |
|end = 2021/06/28, 20:59 JST |
||
|unit focus = |
|unit focus = 25-ji, Nightcord de. |
||
|type = Marathon |
|type = Marathon |
||
|characters = Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena |
|||
|characters = kanade,25ji luka,mafuyu,mizuki,ena |
|||
|attribute = |
|attribute = Mysterious |
||
|event song id = 149 |
|event song id = 149 |
||
}} |
}} |
Revision as of 04:29, 14 July 2022
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: |
This template uses the following Cargo tables: |
Infobox template for storing event information. This template sets the "event id", "event name", "start date", "characters", and "attribute" variables onto the page based on values passed in. This template also automatically sets categories.
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 the unit's proper name or "Mixed" if mixed.
| 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 semicolons.
| 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 |
Category mapping
Parameter | Value | Category |
---|---|---|
Type | Marathon | Category:Marathon events |
Cheerful Carnival | Category:Cheerful Carnival events | |
Unit focus | VIRTUAL SINGER | Category:VIRTUAL SINGER events |
Leo/need | Category:Leo/need events | |
MORE MORE JUMP! | Category:MORE MORE JUMP! events | |
Vivid BAD SQUAD | Category:Vivid BAD SQUAD events | |
Wonderlands×Showtime | Category:Wonderlands×Showtime events | |
25-ji, Nightcord de. | Category:25-ji, Nightcord de. events | |
Mixed | Category:Mixed events | |
Attribute | Cool | Category:Cool events |
Cute | Category:Cute events | |
Happy | Category:Happy events | |
Mysterious | Category:Mysterious events | |
Pure | Category:Pure events |
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 |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 = Vivid BAD SQUAD |type = Cheerful Carnival |characters = Shinonome Akito; Shiraishi An; KAITO (Vivid BAD SQUAD); Azusawa Kohane; Aoyagi 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 = 25-ji, Nightcord de. |type = Marathon |characters = Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena |attribute = Mysterious |event song id = 149 }}