Template:Infobox unit/doc: Difference between revisions

Template page
Content added Content deleted
m (group => unit)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Lua|Module:Infobox Unit}}
{{Lua|Module:Infobox unit}}


__TOC__
__TOC__
Line 7: Line 8:
{
{
"params": {
"params": {
"group name": {
"required": true,
"type": "wiki-page-name",
"label": "Group Name",
"description": "The group name. Defaults to the page title if none given.",
"example": "25-ji, Night Code de."
},
"bg color": {
"bg color": {
"type": "string",
"type": "string",
Line 33: Line 27:
"required": true,
"required": true,
"type": "string",
"type": "string",
"label": "Group Logo",
"label": "Unit Logo",
"example": "25ji-logo.png",
"example": "25ji-logo.png",
"description": "The logo of the group. Use the file's name."
"description": "The logo of the unit. Use the file's name."
},
},
"japanese": {
"japanese": {
Line 41: Line 35:
"example": " 25時、ナイトコードで。",
"example": " 25時、ナイトコードで。",
"label": "Japanese",
"label": "Japanese",
"description": "The group's name in Japanese."
"description": "The unit's name in Japanese."
},
},
"romaji": {
"romaji": {
Line 47: Line 41:
"example": " Nijuugo-ji, Naito Koodo de. ",
"example": " Nijuugo-ji, Naito Koodo de. ",
"label": "Romaji",
"label": "Romaji",
"description": "The romanized version of the group's name."
"description": "The romanized version of the unit's name."
},
},
"english": {
"english": {
"type": "string",
"type": "string",
"example": " 25 o’clock, by Night Code ",
"example": "Nightcord at 25:00",
"label": "English",
"label": "English",
"description": "The English translation of the group's name."
"description": "The English translation of the unit's name."
},
},
"members": {
"members": {
Line 59: 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 group, separated by commas",
"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 group, separated by commas.",
"description": "The virtual singers associated with the unit, separated by commas.",
"suggested": true
"suggested": true
},
},
"group image": {
"name": {
"label": "Unit Name",
"description": "An image containing the group's members. Use the image's name.",
"description": "The unit's name. Defaults to the page title if none given.",
"example": "25-ji, Nightcord de.",
"type": "wiki-page-name",
"required": true
},
"image": {
"label": "Unit Image",
"description": "An image containing the unit's members. Use the image's name.",
"example": "night_code_cg.png",
"type": "string",
"type": "string",
"required": true,
"required": true
"label": "Group Image",
"example": "night_code_cg.png"
}
}
},
},
Line 80: Line 81:
"bg color",
"bg color",
"text color",
"text color",
"group name",
"name",
"group image",
"image",
"japanese",
"japanese",
"romaji",
"romaji",
Line 90: Line 91:
],
],
"format": "block",
"format": "block",
"description": "Infobox Groups for display group information."
"description": "Infobox unit for display unit information."
}
}
</templatedata>
</templatedata>
Line 96: Line 97:
==Quick Copy==
==Quick Copy==
<pre>
<pre>
{{Infobox Group
{{Infobox unit
|bg color =
|bg color =
|text color =
|text color =
|group name =
|unit name =
|group image =
|unit image =
|japanese =
|japanese =
|romaji =
|romaji =
Line 111: Line 112:


==Examples==
==Examples==
{{Infobox Group
{{Infobox unit
|bg color = #884499
|bg color = #884499
|text color = #ffffff
|text color = #ffffff
|group name = 25-ji, Night Code de.
|name = 25-ji, Nightcord de.
|group image = night_code_cg.png
|image = Nightcord cg.png
|logo = 25ji-logo.png
|logo = 25-ji, Nightcord de. logo (bordered).png
|japanese = 25時、ナイトコードで。
|japanese = 25時、ナイトコードで。
|romaji = Nijuugo-ji, Naito Koodo de.
|romaji = Nijuugo-ji, Naitokoodo de.
|english = 25 o’clock, by Night Code
|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 Group
{{Infobox unit
|bg color = #884499
|bg color = #884499
|text color = #ffffff
|text color = #ffffff
|group name = 25-ji, Night Code de.
|name = 25-ji, Nightcord de.
|group image = night_code_cg.png
|image = Nightcord cg.png
|logo = 25ji-logo.png
|logo = 25-ji, Nightcord de. logo (bordered).png
|japanese = 25時、ナイトコードで。
|japanese = 25時、ナイトコードで。
|romaji = Nijuugo-ji, Naito Koodo de.
|romaji = Nijuugo-ji, Naitokoodo de.
|english = 25 o’clock, by Night Code
|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

Parameters[edit source]

Infobox unit for display unit information.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Background Colorbg color

The background color of the headers.

Default
#000000
Example
#884499
Stringrequired
Text Colortext color

The color of the text inside headers.

Default
#FFFFFF
Example
#FFFFFF
Stringsuggested
Unit Namename

The unit's name. Defaults to the page title if none given.

Example
25-ji, Nightcord de.
Page namerequired
Unit Imageimage

An image containing the unit's members. Use the image's name.

Example
night_code_cg.png
Stringrequired
Japanesejapanese

The unit's name in Japanese.

Example
25時、ナイトコードで。
Stringoptional
Romajiromaji

The romanized version of the unit's name.

Example
Nijuugo-ji, Naito Koodo de.
Stringoptional
Englishenglish

The English translation of the unit's name.

Example
Nightcord at 25:00
Stringoptional
Unit Logologo

The logo of the unit. Use the file's name.

Example
25ji-logo.png
Stringrequired
Membersmembers

The list of members in the unit, separated by commas

Example
Yoisaki Kanade, Asahina Mafuyu, Shinonome Ena, Akiyama Mizuki
Stringsuggested
Virtual Singersvirtual singers

The virtual singers associated with the unit, separated by commas.

Example
Hatsune Miku, Kagamine Rin, Megurine Luka, MEIKO
Stringsuggested

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.
Japanese25時、ナイトコードで。
RomajiNijuugo-ji, Naitokoodo de.
EnglishNightcord 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
}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.