Content added Content deleted
(added documentation) |
m (→Parameters) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
|||
{{Lua|Module:Infobox |
{{Lua|Module:Infobox unit}} |
||
__TOC__ |
|||
==Parameters== |
==Parameters== |
||
Line 5: | Line 8: | ||
{ |
{ |
||
"params": { |
"params": { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"bg color": { |
"bg color": { |
||
"type": "string", |
"type": "string", |
||
Line 31: | Line 27: | ||
"required": true, |
"required": true, |
||
"type": "string", |
"type": "string", |
||
"label": " |
"label": "Unit Logo", |
||
"example": "25ji-logo.png", |
"example": "25ji-logo.png", |
||
"description": "The logo of the |
"description": "The logo of the unit. Use the file's name." |
||
}, |
}, |
||
"japanese": { |
"japanese": { |
||
Line 39: | Line 35: | ||
"example": " 25時、ナイトコードで。", |
"example": " 25時、ナイトコードで。", |
||
"label": "Japanese", |
"label": "Japanese", |
||
"description": "The |
"description": "The unit's name in Japanese." |
||
}, |
}, |
||
"romaji": { |
"romaji": { |
||
Line 45: | Line 41: | ||
"example": " Nijuugo-ji, Naito Koodo de. ", |
"example": " Nijuugo-ji, Naito Koodo de. ", |
||
"label": "Romaji", |
"label": "Romaji", |
||
"description": "The romanized version of the |
"description": "The romanized version of the unit's name." |
||
}, |
}, |
||
"english": { |
"english": { |
||
"type": "string", |
"type": "string", |
||
"example": " 25 |
"example": "Nightcord at 25:00", |
||
"label": "English", |
"label": "English", |
||
"description": "The English translation of the |
"description": "The English translation of the unit's name." |
||
}, |
}, |
||
"members": { |
"members": { |
||
Line 57: | Line 53: | ||
"label": "Members", |
"label": "Members", |
||
"example": "Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki", |
"example": "Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki", |
||
"description": "The list of members in the |
"description": "The list of members in the unit, separated by commas", |
||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
"virtual singers": { |
"virtual singers": { |
||
"type": "string", |
"type": "string", |
||
"example": "Hatsune Miku", |
"example": "Hatsune Miku, Kagamine Rin, Megurine Luka, MEIKO", |
||
"label": "Virtual Singers", |
"label": "Virtual Singers", |
||
"description": "The virtual singers associated with the |
"description": "The virtual singers associated with the unit, separated by commas.", |
||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
" |
"name": { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
||
⚫ | |||
⚫ | |||
} |
} |
||
}, |
}, |
||
Line 78: | Line 81: | ||
"bg color", |
"bg color", |
||
"text color", |
"text color", |
||
" |
"name", |
||
" |
"image", |
||
"japanese", |
"japanese", |
||
"romaji", |
"romaji", |
||
Line 87: | Line 90: | ||
"virtual singers" |
"virtual singers" |
||
], |
], |
||
"format": "block" |
"format": "block", |
||
"description": "Infobox unit for display unit information." |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Line 93: | Line 97: | ||
==Quick Copy== |
==Quick Copy== |
||
<pre> |
<pre> |
||
{{Infobox |
{{Infobox unit |
||
|bg color |
|bg color = |
||
|text color |
|text color = |
||
| |
|unit name = |
||
| |
|unit image = |
||
|japanese = |
|japanese = |
||
|romaji = |
|romaji = |
||
Line 108: | Line 112: | ||
==Examples== |
==Examples== |
||
{{Infobox |
{{Infobox unit |
||
|bg color |
|bg color = #884499 |
||
|text color |
|text color = #ffffff |
||
| |
|name = 25-ji, Nightcord de. |
||
| |
|image = Nightcord cg.png |
||
|logo = |
|logo = 25-ji, Nightcord de. logo (bordered).png |
||
|japanese = 25時、ナイトコードで。 |
|japanese = 25時、ナイトコードで。 |
||
|romaji = Nijuugo-ji, |
|romaji = Nijuugo-ji, Naitokoodo de. |
||
|english = |
|english = Nightcord at 25:00 |
||
|members = Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki |
|members = Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki |
||
|virtual singers = Hatsune Miku |
|virtual singers = Hatsune Miku, Kagamine Rin, Megurine Luka, MEIKO |
||
}} |
}} |
||
<pre> |
<pre> |
||
{{Infobox |
{{Infobox unit |
||
|bg color |
|bg color = #884499 |
||
|text color |
|text color = #ffffff |
||
| |
|name = 25-ji, Nightcord de. |
||
| |
|image = Nightcord cg.png |
||
|logo = |
|logo = 25-ji, Nightcord de. logo (bordered).png |
||
|japanese = 25時、ナイトコードで。 |
|japanese = 25時、ナイトコードで。 |
||
|romaji = Nijuugo-ji, |
|romaji = Nijuugo-ji, Naitokoodo de. |
||
|english = |
|english = Nightcord at 25:00 |
||
|members = Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki |
|members = Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki |
||
|virtual singers = Hatsune Miku |
|virtual singers = Hatsune Miku, Kagamine Rin, Megurine Luka, MEIKO |
||
}} |
}} |
||
</pre> |
</pre> |
Latest revision as of 07:43, 22 January 2022
This is a documentation subpage for Template:Infobox unit. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Parameters[edit source]
Infobox unit for display unit information.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background Color | bg color | The background color of the headers.
| String | required |
Text Color | text color | The color of the text inside headers.
| String | suggested |
Unit Name | name | The unit's name. Defaults to the page title if none given.
| Page name | required |
Unit Image | image | An image containing the unit's members. Use the image's name.
| String | required |
Japanese | japanese | The unit's name in Japanese.
| String | optional |
Romaji | romaji | The romanized version of the unit's name.
| String | optional |
English | english | The English translation of the unit's name.
| String | optional |
Unit Logo | logo | The logo of the unit. Use the file's name.
| String | required |
Members | members | The list of members in the unit, separated by commas
| String | suggested |
Virtual Singers | virtual singers | The virtual singers associated with the unit, separated by commas.
| String | suggested |
Quick Copy[edit source]
{{Infobox unit |bg color = |text color = |unit name = |unit image = |japanese = |romaji = |english = |logo = |members = |virtual singers = }}
Examples[edit source]
25-ji, Nightcord de. | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
? (edit) | |||||||||||||||||||||||||||||
Japanese | 25時、ナイトコードで。 | ||||||||||||||||||||||||||||
Romaji | Nijuugo-ji, Naitokoodo de. | ||||||||||||||||||||||||||||
English | Nightcord at 25:00 | ||||||||||||||||||||||||||||
Logo | |||||||||||||||||||||||||||||
Information | |||||||||||||||||||||||||||||
Members | |||||||||||||||||||||||||||||
Virtual Singers | |||||||||||||||||||||||||||||
{{Infobox unit |bg color = #884499 |text color = #ffffff |name = 25-ji, Nightcord de. |image = Nightcord cg.png |logo = 25-ji, Nightcord de. logo (bordered).png |japanese = 25時、ナイトコードで。 |romaji = Nijuugo-ji, Naitokoodo de. |english = Nightcord at 25:00 |members = Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki |virtual singers = Hatsune Miku, Kagamine Rin, Megurine Luka, MEIKO }}