Content added Content deleted
m (→Examples) |
(→Category mapping: added complete map) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
{{Lua|Module:Infobox card}} |
{{Lua|Module:Infobox card}} {{Cargo|cards}} |
||
== Template data == |
|||
__TOC__ |
|||
==Quick copy== |
|||
<pre> |
|||
{{Infobox card |
|||
|card id = |
|||
|card name = |
|||
|japanese = |
|||
|romaji = |
|||
|thumbnail = |
|||
|thumbnail trained = |
|||
|character = |
|||
|attribute = |
|||
|rarity = |
|||
|unit = |
|||
|support unit = |
|||
|date = |
|||
|status = |
|||
|obtain = |
|||
|banner = |
|||
|event = |
|||
}} |
|||
</pre> |
|||
==Examples== |
|||
{{Infobox card |
|||
|card id = 149 |
|||
|card name = A Powerful Smile |
|||
|japanese = 強者の笑み |
|||
|romaji = Tsuwamono no Emi |
|||
|thumbnail = Miku 12 thumbnail.png |
|||
|thumbnail trained = Miku 12 trained thumbnail.png |
|||
|character = Hatsune Miku |
|||
|attribute = pure |
|||
|rarity = 4 |
|||
|unit = vs |
|||
|support unit = vbs |
|||
|date = 2020/12/31 |
|||
|status = Permanent |
|||
|obtain = Gacha,Ticket Exchange Shop |
|||
|banner = Sekai's Exciting New Year Gacha |
|||
|event = Sekai's Happy New Year! |
|||
}} |
|||
<pre> |
|||
{{Infobox card |
|||
|card id = 149 |
|||
|card name = A Powerful Smile |
|||
|japanese = 強者の笑み |
|||
|romaji = Tsuwamono no Emi |
|||
|thumbnail = Miku 12 thumbnail.png |
|||
|thumbnail trained = Miku 12 trained thumbnail.png |
|||
|character = Hatsune Miku |
|||
|attribute = pure |
|||
|rarity = 4 |
|||
|unit = vs |
|||
|support unit = vbs |
|||
|date = 2020/12/31 |
|||
|status = Permanent |
|||
|obtain = Gacha,Ticket Exchange Shop |
|||
|banner = Sekai's Exciting New Year Gacha |
|||
|event = Sekai's Happy New Year! |
|||
}} |
|||
</pre> |
|||
{{clear}} |
|||
==Template data== |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 119: | Line 53: | ||
"unit": { |
"unit": { |
||
"label": "Unit", |
"label": "Unit", |
||
"description": "The unit associated with the card |
"description": "The unit associated with the card.", |
||
"type": "string", |
"type": "string", |
||
"suggested": true |
"suggested": true |
||
Line 139: | Line 73: | ||
"description": "The banner that the card was released on.", |
"description": "The banner that the card was released on.", |
||
"type": "string", |
"type": "string", |
||
"deprecated": "Use gacha instead" |
|||
"suggested": true |
|||
}, |
}, |
||
"card name": { |
"card name": { |
||
Line 161: | Line 95: | ||
"support unit": { |
"support unit": { |
||
"label": "Support unit", |
"label": "Support unit", |
||
"description": "For VIRTUAL SINGERs, the subunit associated with the card |
"description": "For VIRTUAL SINGERs, the subunit associated with the card.", |
||
"type": "string", |
"type": "string", |
||
"suggested": true |
"suggested": true |
||
Line 169: | Line 103: | ||
"description": "The ways that this card can be obtained", |
"description": "The ways that this card can be obtained", |
||
"type": "string", |
"type": "string", |
||
"deprecated": "Use acquire instead" |
|||
"suggested": true |
|||
}, |
}, |
||
"event": { |
"event": { |
||
Line 180: | Line 114: | ||
"label": "Card ID", |
"label": "Card ID", |
||
"description": "The internal ID of the card.", |
"description": "The internal ID of the card.", |
||
"type": "number", |
|||
"required": true |
|||
}, |
|||
"gacha": { |
|||
"label": "Gacha", |
|||
"description": "The gacha that the card was released on.", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"acquire": { |
|||
"label": "Acquisition methods", |
|||
"description": "The ways that this card can be acquired.", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"gacha id": { |
|||
"label": "Gacha ID", |
|||
"description": "The gacha that this card was first released on.", |
|||
"type": "number", |
|||
"required": true |
|||
}, |
|||
"event id": { |
|||
"label": "Event ID", |
|||
"description": "The ID of the event this card is associated with", |
|||
"type": "number", |
"type": "number", |
||
"required": true |
"required": true |
||
Line 185: | Line 143: | ||
}, |
}, |
||
"format": "block", |
"format": "block", |
||
"description": "Infobox |
"description": "Infobox card for displaying card information.", |
||
"paramOrder": [ |
"paramOrder": [ |
||
"bg color", |
"bg color", |
||
Line 202: | Line 160: | ||
"date", |
"date", |
||
"status", |
"status", |
||
"acquire", |
|||
"event id", |
|||
"gacha id", |
|||
"obtain", |
"obtain", |
||
"event", |
|||
"banner", |
"banner", |
||
" |
"gacha" |
||
] |
] |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
== Category mapping == |
|||
{| class="wikitable" |
|||
! Parameter |
|||
! Value |
|||
! Category |
|||
|- |
|||
| rowspan="26" | Character |
|||
| Hatsune Miku |
|||
| [[:Category:Hatsune Miku cards]] |
|||
|- |
|||
| Kagamine Rin |
|||
| [[:Category:Kagamine Rin cards]] |
|||
|- |
|||
| Kagamine Rin |
|||
| [[:Category:Kagamine Len cards]] |
|||
|- |
|||
| Megurine Luka |
|||
| [[:Category:Megurine Luka cards]] |
|||
|- |
|||
| MEIKO |
|||
| [[:Category:MEIKO cards]] |
|||
|- |
|||
| KAITO |
|||
| [[:Category:KAITO cards]] |
|||
|- |
|||
| Hoshino Ichika |
|||
| [[:Category:Hoshino Ichika cards]] |
|||
|- |
|||
| Tenma Saki |
|||
| [[:Category:Tenma Saki cards]] |
|||
|- |
|||
| Mochizuki Honami |
|||
| [[:Category:Mochizuki Honami cards]] |
|||
|- |
|||
| Hinomori Shiho |
|||
| [[:Category:Hinomori Shiho cards]] |
|||
|- |
|||
| Hanasato Minori |
|||
| [[:Category:Hanasato Minori cards]] |
|||
|- |
|||
| Kiritani Haruka |
|||
| [[:Category:Kiritani Haruka cards]] |
|||
|- |
|||
| Momoi Airi |
|||
| [[:Category:Momoi Airi cards]] |
|||
|- |
|||
| Hinomori Shizuku |
|||
| [[:Category:Hinomori Shizuku cards]] |
|||
|- |
|||
| Azusawa Kohane |
|||
| [[:Category:Azusawa Kohane cards]] |
|||
|- |
|||
| Shiraishi An |
|||
| [[:Category:Shiraishi An cards]] |
|||
|- |
|||
| Shinonome Akito |
|||
| [[:Category:Shinonome Akito cards]] |
|||
|- |
|||
| Aoyagi Toya |
|||
| [[:Category:Aoyagi Toya cards]] |
|||
|- |
|||
| Tenma Tsukasa |
|||
| [[:Category:Tenma Tsukasa cards]] |
|||
|- |
|||
| Otori Emu |
|||
| [[:Category:Otori Emu cards]] |
|||
|- |
|||
| Kusanagi Nene |
|||
| [[:Category:Kusanagi Nene cards]] |
|||
|- |
|||
| Kamishiro Rui |
|||
| [[:Category:Kamishiro Rui cards]] |
|||
|- |
|||
| Yoisaki Kanade |
|||
| [[:Category:Yoisaki Kanade cards]] |
|||
|- |
|||
| Asahina Mafuyu |
|||
| [[:Category:Asahina Mafuyu cards]] |
|||
|- |
|||
| Shinonome Ena |
|||
| [[:Category:Shinonome Ena cards]] |
|||
|- |
|||
| Akiyama Mizuki |
|||
| [[:Category:Akiyama Mizuki cards]] |
|||
|- |
|||
| rowspan="5" | Attribute |
|||
| Cool |
|||
| [[:Category:Cool cards]] |
|||
|- |
|||
| Cute |
|||
| [[:Category:Cute cards]] |
|||
|- |
|||
| Happy |
|||
| [[:Category:Happy cards]] |
|||
|- |
|||
| Mysterious |
|||
| [[:Category:Mysterious cards]] |
|||
|- |
|||
| Pure |
|||
| [[:Category:Pure cards]] |
|||
|- |
|||
| rowspan="5" | Rarity |
|||
| 1 |
|||
| [[:Category:1☆ cards]] |
|||
|- |
|||
| 2 |
|||
| [[:Category:2☆ cards]] |
|||
|- |
|||
| 3 |
|||
| [[:Category:3☆ cards]] |
|||
|- |
|||
| 4 |
|||
| [[:Category:4☆ cards]] |
|||
|- |
|||
| Birthday |
|||
| [[:Category:Birthday cards]] |
|||
|- |
|||
| rowspan="4" | Status |
|||
| Permanent |
|||
| [[:Category:Permanent cards]] |
|||
|- |
|||
| Limited cards |
|||
| [[:Category:Limited cards]] |
|||
|- |
|||
| Colorful Festival limited |
|||
| [[:Category:Colorful Festival limited cards]] |
|||
|- |
|||
| Birthday limited |
|||
| [[:Category:Birthday limited cards]] |
|||
|} |
|||
== Quick copy == |
|||
<pre> |
|||
{{Infobox card |
|||
|card id = |
|||
|card name = |
|||
|japanese = |
|||
|romaji = |
|||
|thumbnail = |
|||
|thumbnail trained = |
|||
|character = |
|||
|attribute = |
|||
|rarity = |
|||
|unit = |
|||
|support unit = |
|||
|date = |
|||
|status = |
|||
|acquire = |
|||
|event id = |
|||
|gacha id = |
|||
|gacha = |
|||
|event = |
|||
}} |
|||
</pre> |
|||
== Examples == |
|||
{{Infobox card |
|||
|card id = 149 |
|||
|card name = A Powerful Smile |
|||
|japanese = 強者の笑み |
|||
|romaji = Tsuwamono no Emi |
|||
|thumbnail = Miku 12 thumbnail.png |
|||
|thumbnail trained = Miku 12 trained thumbnail.png |
|||
|character = Hatsune Miku |
|||
|attribute = Pure |
|||
|rarity = 4 |
|||
|unit = VIRTUAL SINGER |
|||
|support unit = Vivid BAD SQUAD |
|||
|date = 2020/12/31 |
|||
|status = Permanent |
|||
|acquire = Gacha, Ticket Exchange Shop |
|||
|event id = 9 |
|||
|gacha id = 26 |
|||
|gacha = Sekai's Exciting New Year Gacha |
|||
|event = Sekai's Happy New Year! |
|||
}} |
|||
<pre> |
|||
{{Infobox card |
|||
|card id = 149 |
|||
|card name = A Powerful Smile |
|||
|japanese = 強者の笑み |
|||
|romaji = Tsuwamono no Emi |
|||
|thumbnail = Miku 12 thumbnail.png |
|||
|thumbnail trained = Miku 12 trained thumbnail.png |
|||
|character = Hatsune Miku |
|||
|attribute = Pure |
|||
|rarity = 4 |
|||
|unit = VIRTUAL SINGER |
|||
|support unit = Vivid BAD SQUAD |
|||
|date = 2020/12/31 |
|||
|status = Permanent |
|||
|acquire = Gacha, Ticket Exchange Shop |
|||
|event id = 9 |
|||
|gacha id = 26 |
|||
|gacha = Sekai's Exciting New Year Gacha |
|||
|event = Sekai's Happy New Year! |
|||
}} |
|||
</pre> |
|||
<includeonly>[[Category:Infobox templates]] [[Category:Card templates]]</includeonly> |
<includeonly>[[Category:Infobox templates]] [[Category:Card templates]]</includeonly> |
Latest revision as of 19:32, 30 April 2023
This is a documentation subpage for Template:Infobox card. 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: |
Template data[edit source]
Infobox card for displaying card information.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background Color | bg color | The background color of the headers. Overrides the colors associated with attributes if specified.
| String | optional |
Text Color | text color | The text color of the text inside headers. Overrides text colors associated with attributes if specified.
| String | optional |
Card ID | card id | The internal ID of the card. | Number | required |
Card name | card name | The name of the card. | String | required |
Japanese | japanese | The official Japanese card title. | String | suggested |
Romaji | romaji | The romanized version of the Japanese card title. | String | suggested |
Thumbnail | thumbnail | The thumbnail art of the card. | File | suggested |
Thumbnail (trained) | thumbnail trained | The trained thumbnail of the card. | File | suggested |
Character | character | The character that the card is associated with. | String | suggested |
Attribute | attribute | The attribute associated with the card. | String | suggested |
Rarity | rarity | The rarity of the card. | Number | suggested |
Unit | unit | The unit associated with the card. | String | suggested |
Support unit | support unit | For VIRTUAL SINGERs, the subunit associated with the card. | String | suggested |
Release date | date | The date that the card was released | Date | suggested |
Status | status | Whether the card is limited or permanent. Valid values are "Permanent", "Limited" or "Colorful Festival Limited". | String | suggested |
Acquisition methods | acquire | The ways that this card can be acquired. | String | required |
Event ID | event id | The ID of the event this card is associated with | Number | required |
Gacha ID | gacha id | The gacha that this card was first released on. | Number | required |
How to obtain | obtain | The ways that this card can be obtained | String | deprecated |
Event | event | The event that this card is associated with. | Page name | suggested |
Banner | banner | The banner that the card was released on. | String | deprecated |
Gacha | gacha | The gacha that the card was released on. | String | suggested |
Category mapping[edit source]
Quick copy[edit source]
{{Infobox card |card id = |card name = |japanese = |romaji = |thumbnail = |thumbnail trained = |character = |attribute = |rarity = |unit = |support unit = |date = |status = |acquire = |event id = |gacha id = |gacha = |event = }}
Examples[edit source]
A Powerful Smile | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Japanese | 強者の笑み | ||||||||||||||||||||||||||||
Romaji | Tsuwamono no Emi | ||||||||||||||||||||||||||||
Card Information | |||||||||||||||||||||||||||||
Card ID | 149 | ||||||||||||||||||||||||||||
Character | Hatsune Miku | ||||||||||||||||||||||||||||
Attribute | Pure | ||||||||||||||||||||||||||||
Rarity | |||||||||||||||||||||||||||||
Unit | VIRTUAL SINGER | ||||||||||||||||||||||||||||
Support unit | Vivid BAD SQUAD | ||||||||||||||||||||||||||||
Acquisition Information | |||||||||||||||||||||||||||||
Status | Permanent | ||||||||||||||||||||||||||||
Release date | 2020/12/31 | ||||||||||||||||||||||||||||
Acquisition methods |
| ||||||||||||||||||||||||||||
Associated event | Sekai's Happy New Year! | ||||||||||||||||||||||||||||
Debut gacha | Sekai's Exciting New Year Gacha | ||||||||||||||||||||||||||||
{{Infobox card |card id = 149 |card name = A Powerful Smile |japanese = 強者の笑み |romaji = Tsuwamono no Emi |thumbnail = Miku 12 thumbnail.png |thumbnail trained = Miku 12 trained thumbnail.png |character = Hatsune Miku |attribute = Pure |rarity = 4 |unit = VIRTUAL SINGER |support unit = Vivid BAD SQUAD |date = 2020/12/31 |status = Permanent |acquire = Gacha, Ticket Exchange Shop |event id = 9 |gacha id = 26 |gacha = Sekai's Exciting New Year Gacha |event = Sekai's Happy New Year! }}