mNo edit summary |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
{{Lua|Module:Infobox event}} |
{{Lua|Module:Infobox event}} {{Cargo|events}} |
||
This infobox serves several purposes: displaying event information, storing values into Cargo, setting page variables, and automatically categorizing pages. This template sets the "event id", "event name", "start date", "end date", "characters", and "attribute" variables onto the page. |
|||
⚫ | |||
⚫ | |||
<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 36: | Line 38: | ||
}, |
}, |
||
"image": { |
"image": { |
||
"label": " |
"label": "Logo", |
||
"description": "The |
"description": "The logo of the event.", |
||
"type": "wiki-file-name", |
"type": "wiki-file-name", |
||
"required": true, |
"required": true, |
||
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", |
||
"suggested": true, |
"suggested": true, |
||
"example": "149" |
"example": "149" |
||
}, |
|||
"bg color": { |
|||
"label": "Background Color", |
|||
"description": "The background color of the infobox headers.", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"example": "#bc698c" |
|||
}, |
|||
"text color": { |
|||
"label": "Text Color", |
|||
"description": "The text color of the infobox headers.", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"example": "#000" |
|||
} |
} |
||
}, |
}, |
||
"format": "block", |
"format": "block", |
||
"description": "Infobox |
"description": "Infobox event for displaying event information.", |
||
"paramOrder": [ |
"paramOrder": [ |
||
"bg color", |
|||
"text color", |
|||
"event id", |
"event id", |
||
"event name", |
"event name", |
||
Line 127: | Line 113: | ||
</templatedata> |
</templatedata> |
||
== Category mapping == |
|||
⚫ | |||
{| class="wikitable" |
|||
! Parameter |
|||
! Value |
|||
! Category |
|||
|- |
|||
| rowspan="2" | Event 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" | Bonus 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 186: | ||
</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 193: | ||
|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 206: | ||
|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 226: | ||
|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 243: | ||
|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 |
||
}} |
}} |
Latest revision as of 22:16, 28 April 2023
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: |
This infobox serves several purposes: displaying event information, storing values into Cargo, setting page variables, and automatically categorizing pages. This template sets the "event id", "event name", "start date", "end date", "characters", and "attribute" variables onto the page.
Parameters[edit source]
Infobox event for displaying event information.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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 |
Logo | image | The logo 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[edit source]
Parameter | Value | Category |
---|---|---|
Event 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 | |
Bonus attribute | Cool | Category:Cool events |
Cute | Category:Cute events | |
Happy | Category:Happy events | |
Mysterious | Category:Mysterious events | |
Pure | Category:Pure events |
Quick copy[edit source]
{{Infobox event |bg color = |text color = |event id = |event name = |japanese = |romaji = |image = |start = |end = |unit focus = |type = |characters = |attribute = |event song id = }}
Examples[edit source]
{{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 }}