Jump to content

Template:Infobox character old: Difference between revisions

From SchoolIdolWiki
Roughly tried to make the infobox work. At least now *I think* it can be used on character pages
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 250px; font-size: 90%; text-align: left; border: 2px solid #aaa; background-color: #f9f9f9;"
{| class="infobox" style="width:300px; font-size:90%; text-align:left; border:1px solid #ccc; background:{{{bgcolor|#fff}}}; font-family:sans-serif;"
|+ style="text-align:center; font-weight:bold; font-size: 120%; background-color: #444; color: white;" | {{{Name|{{PAGENAME}}}}}
|+ style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-size:120%; font-weight:bold; padding:6px; text-align:center;" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align:center; background-color: #eee;" | [[File:{{{image|Placeholder.png}}}|250px]]
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|center|250px|frameless|style="box-shadow:0 0 5px #aaa;"]]|}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Kanji
! style="color:{{{labelcolor|#555}}};" | Kanji
| <span lang="ja">{{{Kanji|}}}</span>
| <span lang="ja">{{{Japanese Name|}}}</span>
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Romaji
! style="color:{{{labelcolor|#555}}};" | Romaji
| ''{{{Romanized Name|}}}''
| ''{{{Romanized Name|}}}''
|-
|-
! colspan="2" style="background-color:#cce5ff; color:#004085; text-align:center;" | Statistics
! colspan="2" style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-weight:bold; text-align:center;" | Statistics
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Year
! style="color:{{{labelcolor|#555}}};" | Year
| ''{{{Year|}}}''
| {{{Year|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Birthday
! style="color:{{{labelcolor|#555}}};" | Birthday
| ''{{{Birthday|}}}''
| {{{Birthday|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Gender
! style="color:{{{labelcolor|#555}}};" | Gender
| ''{{{Gender|}}}''
| {{{Gender|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Blood Type
! style="color:{{{labelcolor|#555}}};" | Blood Type
| ''{{{Blood Type|}}}''
| {{{Blood Type|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Height
! style="color:{{{labelcolor|#555}}};" | Height
| ''{{{Height|}}}''
| {{{Height|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Three Sizes
! style="color:{{{labelcolor|#555}}};" | Three Sizes
| ''{{{Three Sizes|}}}''
| {{{Three Sizes|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Favorite Food
! style="color:{{{labelcolor|#555}}};" | Favorite Food
| ''{{{Favorite Food|}}}''
| {{{Favorite Food|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Disliked Food
! style="color:{{{labelcolor|#555}}};" | Disliked Food
| ''{{{Disliked Food|}}}''
| {{{Disliked Food|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Charm Point
! style="color:{{{labelcolor|#555}}};" | Charm Point
| ''{{{Charm Point|}}}''
| {{{Charm Point|}}}
|-
|-
! colspan="2" style="background-color:#cce5ff; color:#004085; text-align:center;" | First Appearence
! colspan="2" style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-weight:bold; text-align:center;" | First Appearance
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Debut
! style="color:{{{labelcolor|#555}}};" | Debut
| ''{{{Debut|}}}''
| {{{Debut|}}}
|-
|-
! colspan="2" style="background-color:#cce5ff; color:#004085; text-align:center;" | Voice Actress
! colspan="2" style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-weight:bold; text-align:center;" | Japanese Voice Actress/Actor
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Seiyuu Kanji
! style="color:{{{labelcolor|#555}}};" | Kanji
| ''{{{Seiyuu Kanji|}}}''
| <span lang="ja">{{{Seiyuu Kanji|}}}</span>
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Seiyuu Romaji
! style="color:{{{labelcolor|#555}}};" | Romaji
| ''{{{Seiyuu Romaji|}}}''
| ''{{{Seiyuu Romaji|}}}''
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | EN Seiyuu
! colspan="2" style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-weight:bold; text-align:center;" | English Voice Actress/Actor
| ''{{{EN Seiyuu|}}}''
|-
|-
! colspan="2" style="background-color:#cce5ff; color:#004085; text-align:center;" | Icon and Signature
! style="color:{{{labelcolor|#555}}};" | Name
| {{{English Seiyuu Name|}}}
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Icon
! colspan="2" style="background:{{{headerbg|#ff3399}}}; color:{{{headertxt|white}}}; font-weight:bold; text-align:center;" | Icon and Signature
| ''{{{Icon|}}}''
|-
|-
! style="background-color:#d9edf7; color:#31708f;" | Signature
! style="color:{{{labelcolor|#555}}};" | Icon
| ''{{{Signature|}}}''
| {{{Icon|}}}
|-
! style="color:{{{labelcolor|#555}}};" | Signature
| {{{Signature|}}}
|}
|}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{documentation}}
== Usage ==
This infobox template now supports custom color schemes through these parameters:
 
; bgcolor
: Background color of the infobox (default: #fff)
; headerbg
: Background color for headers (default: #ff3399)
; headertxt
: Text color for headers (default: white)
; labelcolor
: Color for label text (default: #555)
 
=== Example ===
<pre>
{{Infobox Character
| name = Example
| headerbg = #3366ff
| headertxt = #fff
| labelcolor = #333
| bgcolor = #f8f8f8
| Japanese Name = 例
| Romanized Name = Rei
}}
</pre>
 
[[Category:Infobox templates]]
[[Category:Infobox templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 02:14, 11 April 2025


Usage

This infobox template now supports custom color schemes through these parameters:

bgcolor
Background color of the infobox (default: #fff)
headerbg
Background color for headers (default: #ff3399)
headertxt
Text color for headers (default: white)
labelcolor
Color for label text (default: #555)

Example

{{Infobox Character
| name = Example
| headerbg = #3366ff
| headertxt = #fff
| labelcolor = #333
| bgcolor = #f8f8f8
| Japanese Name = 例
| Romanized Name = Rei
}}