mNo edit summary |
(added catmap and description) |
||
Line 1:
{{documentation subpage}}
{{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.
==Parameters==▼
▲== Parameters ==
<templatedata>
{
Line 15 ⟶ 17:
},
"event name": {
"label": "Event
"description": "The name of the event, translated from Japanese.",
"type": "string",
Line 43 ⟶ 45:
},
"start": {
"label": "Start
"description": "The start date and time of the event, in JST.",
"type": "date",
Line 50 ⟶ 52:
},
"end": {
"label": "End
"description": "The end date of the event, in JST.",
"type": "date",
Line 57 ⟶ 59:
},
"unit focus": {
"label": "Unit
"description": "The unit that is the focus of the event, or mixed. Use
"type": "string",
"required": true,
"example": "
},
"type": {
"label": "Event
"description": "The type of event. Use \"Marathon\" or \"Cheerful Carnival\".",
"type": "string",
Line 71 ⟶ 73:
},
"characters": {
"label": "Bonus
"description": "The characters of the cards that receive event bonus, separated by
"type": "string",
"required": true,
"example": "Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena"
},
"attribute": {
"label": "Bonus
"description": "The attribute of cards that receive event bonus. Use \"
"type": "string",
"required": true,
"example": "
},
"event song id": {
"label": "Event
"description": "The ID of the song that is associated with the event.",
"type": "number",
Line 92 ⟶ 94:
},
"bg color": {
"label": "Background
"description": "The background color of the infobox headers.",
"type": "string",
Line 99 ⟶ 101:
},
"text color": {
"label": "Text
"description": "The text color of the infobox headers.",
"type": "string",
Line 107 ⟶ 109:
},
"format": "block",
"description": "Infobox
"paramOrder": [
"bg color",
Line 127 ⟶ 129:
</templatedata>
== Category mapping ==
==Quick Copy==▼
{| 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>
{{Infobox event
Line 147 ⟶ 202:
</pre>
== Examples ==
{{Infobox event
|event id = 21
|event name = STRAY BAD DOG
Line 156 ⟶ 209:
|start = 2021/04/30, 15:00 JST
|end = 2021/05/08, 20:59 JST
|unit focus =
|type = Cheerful Carnival
|characters = Shinonome Akito; Shiraishi An; KAITO (Vivid BAD SQUAD); Azusawa Kohane; Aoyagi Toya
|attribute =
|event song id = 126
}}
<pre>
{{Infobox event
|event id = 21
|event name = STRAY BAD DOG
Line 171 ⟶ 222:
|start = 2021/04/30, 15:00 JST
|end = 2021/05/08, 20:59 JST
|unit focus =
|type = Cheerful Carnival
|characters = Shinonome Akito; Shiraishi An; KAITO (Vivid BAD SQUAD); Azusawa Kohane; Aoyagi Toya
|attribute =
|event song id = 126
}}
Line 191 ⟶ 242:
|start = 2021/06/21, 15:00 JST
|end = 2021/06/28, 20:59 JST
|unit focus =
|type = Marathon
|characters = Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena
|attribute =
|event song id = 149
}}
Line 208 ⟶ 259:
|start = 2021/06/21, 15:00 JST
|end = 2021/06/28, 20:59 JST
|unit focus =
|type = Marathon
|characters = Yoisaki Kanade; Megurine Luka (25-ji, Nightcord de.); Asahina Mafuyu; Akiyama Mizuki; Shinonome Ena
|attribute =
|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 }}