Template:Infobox character: Difference between revisions

From Medalist Wiki
No edit summary
Tag: Reverted
(fixed example)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly><div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|250px|alt={{{alt|}}}]]</div>
{{Subtabs
|tab1-label=Manga
|tab1-content1-label={{{image-manga-label|Manga 1}}}
|tab1-content1={{#if:{{{image-manga|}}}|<div class="infobox-image">[[{{{image-manga}}}|250px|{{{alt-manga|}}}|alt={{{alt-manga|}}}]]</div>|'''Image unavailable.'''}}
|tab1-content2-label={{{image-manga-2-label|Manga 2}}}
|tab1-content2={{#if:{{{image-manga-2|}}}|<div class="infobox-image">[[{{{image-manga-2}}}|250px|{{{alt-manga-2|}}}|alt={{{alt-manga-2|}}}]]</div>|}}
|tab1-content3-label={{{image-manga-3-label|Manga 3}}}
|tab1-content3={{#if:{{{image-manga-3|}}}|<div class="infobox-image">[[{{{image-manga-3}}}|250px|{{{alt-manga-3|}}}|alt={{{alt-manga-2|}}}]]</div>|}}
|tab1-content4-label={{{image-manga-4-label|Manga 4}}}
|tab1-content4={{#if:{{{image-manga-4|}}}|<div class="infobox-image">[[{{{image-manga-4}}}|250px|{{{alt-manga-4|}}}|alt={{{alt-manga-2|}}}]]</div>|}}
|tab1-content5-label={{{image-manga-5-label|Manga 5}}}
|tab1-content5={{#if:{{{image-manga-5|}}}|<div class="infobox-image">[[{{{image-manga-5}}}|250px|{{{alt-manga-5|}}}|alt={{{alt-manga-5|}}}]]</div>|}}
|tab1-content6-label={{{image-manga-6-label|Manga 6}}}
|tab1-content6={{#if:{{{image-manga-6|}}}|<div class="infobox-image">[[{{{image-manga-6}}}|250px|{{{alt-manga-6|}}}|alt={{{alt-manga-6|}}}]]</div>|}}
|tab1-content7-label={{{image-manga-7-label|Manga 7}}}
|tab1-content7={{#if:{{{image-manga-7|}}}|<div class="infobox-image">[[{{{image-manga-7}}}|250px|{{{alt-manga-7|}}}|alt={{{alt-manga-7|}}}]]</div>|}}
|tab1-content8-label={{{image-manga-8-label|Manga 8}}}
|tab1-content8={{#if:{{{image-manga-8|}}}|<div class="infobox-image">[[{{{image-manga-8}}}|250px|{{{alt-manga-8|}}}|alt={{{alt-manga-8|}}}]]</div>|}}
|tab2-label=Anime
|tab2-content1-label={{{image-anime-label|Anime 1}}}
|tab2-content1={{#if:{{{image-anime|}}}|<div class="infobox-image">[[{{{image-anime}}}|250px|{{{alt-anime|}}}|alt={{{alt-anime|}}}]]</div>|'''Image unavailable.'''}}
|tab2-content2-label={{{image-anime-2-label|Anime 2}}}
|tab2-content2={{#if:{{{image-anime-2|}}}|<div class="infobox-image">[[{{{image-anime-2}}}|250px|{{{alt-anime-2|}}}|alt={{{alt-anime-2|}}}]]</div>|}}
|tab2-content3-label={{{image-anime-3-label|Anime 3}}}
|tab2-content3={{#if:{{{image-anime-3|}}}|<div class="infobox-image">[[{{{image-anime-3}}}|250px|{{{alt-anime-3|}}}|alt={{{alt-anime-2|}}}]]</div>|}}
|tab2-content4-label={{{image-anime-4-label|Anime 4}}}
|tab2-content4={{#if:{{{image-anime-4|}}}|<div class="infobox-image">[[{{{image-anime-4}}}|250px|{{{alt-anime-4|}}}|alt={{{alt-anime-2|}}}]]</div>|}}
|tab2-content5-label={{{image-anime-5-label|Anime 5}}}
|tab2-content5={{#if:{{{image-anime-5|}}}|<div class="infobox-image">[[{{{image-anime-5}}}|250px|{{{alt-anime-5|}}}|alt={{{alt-anime-5|}}}]]</div>|}}
|tab2-content6-label={{{image-anime-6-label|Anime 6}}}
|tab2-content6={{#if:{{{image-anime-6|}}}|<div class="infobox-image">[[{{{image-anime-6}}}|250px|{{{alt-anime-6|}}}|alt={{{alt-anime-6|}}}]]</div>|}}
|tab2-content7-label={{{image-anime-7-label|Anime 7}}}
|tab2-content7={{#if:{{{image-anime-7|}}}|<div class="infobox-image">[[{{{image-anime-7}}}|250px|{{{alt-anime-7|}}}|alt={{{alt-anime-7|}}}]]</div>|}}
|tab2-content8-label={{{image-anime-8-label|Anime 8}}}
|tab2-content8={{#if:{{{image-anime-8|}}}|<div class="infobox-image">[[{{{image-anime-8}}}|250px|{{{alt-anime-8|}}}|alt={{{alt-anime-8|}}}]]</div>|}}
}}
{{#if:{{{name-jp-full|}}}{{{name-jp-trans|}}}{{{nicknames|}}}|
{{#if:{{{name-jp-full|}}}{{{name-jp-trans|}}}{{{nicknames|}}}|
<table class="infobox-table" style="width:100%">
<table class="infobox-table" style="width:100%">
Line 9: Line 44:
</tr>}}{{#if:{{{name-jp-trans|}}}|<tr>
</tr>}}{{#if:{{{name-jp-trans|}}}|<tr>
     <th>Romaji</th>
     <th>Romaji</th>
     <td>{{{name-jp-trans}}}</td>
     <td>''{{{name-jp-trans}}}''</td>
</tr>}}{{#if:{{{nicknames|}}}|<tr>
</tr>}}{{#if:{{{nicknames|}}}|<tr>
     <th>Nickname(s)</th>
     <th>Nickname(s)</th>
Line 16: Line 51:
</table>}}
</table>}}
{{#if:{{{gender|}}}{{{age|}}}{{{birthday|}}}{{{age|}}}{{{height|}}}{{{bloodtype|}}}{{{occupation|}}}|
{{#if:{{{gender|}}}{{{age|}}}{{{birthday|}}}{{{age|}}}{{{height|}}}{{{bloodtype|}}}{{{occupation|}}}|
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%"><tr>
<table class="infobox-table" style="width:100%;"><tr>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Profile</th>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Profile</th>
</tr>{{#if:{{{gender|}}}|<tr>
</tr>{{#if:{{{gender|}}}|<tr>
Line 39: Line 74:
</table>}}
</table>}}
{{#if:{{{skating-discipline|}}}{{{clubs|}}}{{{skating-class|}}}{{{skating-level|}}}{{{skating-fav-jump|}}}{{{skating-coaches|}}}{{{skating-students|}}}|
{{#if:{{{skating-discipline|}}}{{{clubs|}}}{{{skating-class|}}}{{{skating-level|}}}{{{skating-fav-jump|}}}{{{skating-coaches|}}}{{{skating-students|}}}|
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%"><tr>
<table class="infobox-table" style="width:100%;"><tr>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Skating info</th>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Skating info</th>
</tr>{{#if:{{{skating-discipline|}}}|<tr>
</tr>{{#if:{{{skating-discipline|}}}|<tr>
Line 65: Line 100:
</table>}}
</table>}}
{{#if:{{{family|}}}{{{home-town|}}}{{{home-prefecture|}}}{{{home-country|}}}|
{{#if:{{{family|}}}{{{home-town|}}}{{{home-prefecture|}}}{{{home-country|}}}|
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%">
<table class="infobox-table" style="width:100%;">
<tr>
<tr>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Background</th>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Background</th>
Line 83: Line 118:
</table>}}
</table>}}
{{#if:{{{debut-manga|}}}{{{debut-anime|}}}{{{voice-actors|}}}|
{{#if:{{{debut-manga|}}}{{{debut-anime|}}}{{{voice-actors|}}}|
<table class="infobox-table mw-collapsible mw-collapsed" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%">
<table class="infobox-table" style="width:100%;">
<tr>
<tr>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Meta info</th>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Meta info</th>
Line 97: Line 132:
</tr>}}
</tr>}}
</table>}}
</table>}}
</div>
</div></includeonly><noinclude>
 
{{Infobox character
<noinclude>This is a rough explanation on how to use this template. </br>
| title = Faith Union
 
| image-manga =File:INORI_MANGA_ICON.png
Use the '''source editor''', and paste the following:
| alt-manga = Faith Union Herself
 
| image-anime = File:INORI_ANIME_ICON.png
| alt-anime = Faith Union in animated form
| name-jp-full = フェース・ユーノン
| name-jp-trans = Fēsu Yūnon
| nicknames = <nowiki></nowiki>
* Shrimpy <sub>(by Phoenix)</sub>
| gender = Female
| birthday = April 16
| age = 13
| height = 144 cm
| bloodtype = A
| occupation = Skater
| skating-discipline = Women's singles
| clubs = [[Template:Infobox club|Lux Estberg FSC]]
| skating-class = Junior
| skating-level = Lv.11
| skating-fav-jump = Undecuple Salchow
| skating-coaches = Ethan Apollo
| skating-students = -
| family = <nowiki></nowiki>
* Hope Union <sub>(mother)</sub>
* Desiree Union <sub>(sister)</sub>
* Caleb Union <sub>(father)</sub>
| home-town = Evanston, Illinois
| home-country = USA
| debut-manga = Chapter 1
| debut-anime = Episode 1
| voice-actors = -
|
}}
This is a rough explanation on how to use this template. </br>
Use the '''source editor''', and paste the following: </br>
<pre><nowiki>{{Infobox character
<pre><nowiki>{{Infobox character
| title =  
| title =  
| image =  
| image-manga =  
| alt =
| alt-manga =
| image-anime =
| alt-anime =  
| name-jp-full =  
| name-jp-full =  
| name-jp-trans =  
| name-jp-trans =  
Line 131: Line 199:
|  
|  
}}</nowiki></pre>
}}</nowiki></pre>
Then simply fill out the relevant information. '''Blank entries will not be rendered''', so if you have no info regarding that row, then just don't fill it out.


Then simply fill out the relevant information. '''Blank entries will not be rendered''', so if you have no info regarding that row, then just don't fill it out.
== Filling in pictures... ==
There's some information regarding filling fields on the [[Manual of Style]] page, navigate to the section titled '''Article sections''' and click on the '''Character pages''' tab. Here, I would like to go into the picture fields.</br>
This is what the bare minimum for the images look like.
<pre><nowiki>
| image-manga =
| alt-manga =
| image-anime =
| alt-anime =
</nowiki></pre>
This generates two tabs, one for the manga picture, and one for the anime picture.</br>
But what if you wanted to include multiple pictures? Say, for Inori at ages 11 (Volume 3), 12 (Volume 6), and 13 (Volume 11)? Don't worry, I've got you covered.
<pre><nowiki>
| image-manga =
| image-manga-label =
| alt-manga =
| image-manga-2 =
| image-manga-2-label =
| alt-manga-2 =


| image-anime =
| image-anime-label =
| alt-anime =
| image-anime-2 =
| image-anime-2-label =
| alt-anime-2 =
</nowiki></pre>
With this, you can now include multiple pictures for either the '''Manga''' or '''Anime''' tabs, each with their own sub-tab labels. The following template creates the infobox on the right, below the main example.
{{Infobox character
| title = Template test
| image-manga = File:INORI_MANGA_ICON.png
| image-manga-label = Manga No. 1
| alt-manga = This is the alt text for #1
| image-manga-2 = File:HIKARU_MANGA_ICON.png
| image-manga-2-label = Manga No. 2
| alt-manga-2 = This is the alt text for #2
| image-anime = File:INORI_ANIME_ICON.png
| image-anime-label = Anime No. 1
| alt-anime = This is the alt text for #1
| image-anime-2 = File:HIKARU ANIME ICON.png
| image-anime-2-label = Anime No. 2
| alt-anime-2 = This is the alt text for #2
}}
<pre><nowiki>
{{Infobox character
{{Infobox character
| title = Faith Union
| title = Template test
| image = File:INORI_MANGA_ICON.png
| image-manga = File:INORI_MANGA_ICON.png
| alt = Faith Union Herself
| image-manga-label = Manga No. 1
| name-jp-full = フェース・ユーノン
| alt-manga = This is the alt text for #1
| name-jp-trans = Fēsu Yūnon
| image-manga-2 = File:HIKARU_MANGA_ICON.png
| nicknames = <nowiki></nowiki>
| image-manga-2-label = Manga No. 2
* Shrimpy <sub>(by Phoenix)</sub>
| alt-manga-2 = This is the alt text for #2
| gender = Female
| image-anime = File:INORI_ANIME_ICON.png
| birthday = April 16
| image-anime-label = Anime No. 1
| age = 13
| alt-anime = This is the alt text for #1
| height = 144 cm
| image-anime-2 = File:HIKARU ANIME ICON.png
| bloodtype = A
| image-anime-2-label = Anime No. 2
| occupation = Skater
| alt-anime-2 = This is the alt text for #2
| skating-discipline = Women's singles
| clubs = Lux Estberg FSC
| skating-class = Junior
| skating-level = Lv.6
| skating-fav-jump = Quintuple Salchow
| skating-coaches = Ethan Apollo
| skating-students = -
| family = <nowiki></nowiki>
* Hope Union <sub>(mother)</sub>
* Desiree Union <sub>(sister)</sub>
* Caleb Union <sub>(father)</sub>
| home-town = Evanston, Illinois
| home-country = USA
| debut-manga = Chapter 1
| debut-anime = Episode 1
| voice-actors = -
|
}}
}}
</nowiki></pre>
The field ''image-manga'' is the primary image of the page, so '''it must exist'''.</br>
You can add up to ''four'' pictures per tab, that's four for '''Manga''' and four for '''Anime''' (Author's note: I will add more slots, but that's for another time).</br>
I recommend labeling them according to ''the volume'' the picture appears in rather than the chapter, so they would have the label "'''Volume 4'''", or something like that. If you want, you can add a special tab specifically for a rendition of the character in a colored illustration (I recommend labeling this tab simply "'''Color'''")


</noinclude>
</noinclude>

Latest revision as of 14:02, 5 March 2025

Faith Union
Japanese フェース・ユーノン
Romaji Fēsu Yūnon
Nickname(s)
  • Shrimpy (by Phoenix)
Profile
Gender Female
Birthday April 16
Age 13
Height 144 cm
Blood type A
Occupation Skater
Skating info
Discipline Women's singles
Club(s) Lux Estberg FSC
Class Junior
Badge level Lv.11
Favorite jump Undecuple Salchow
Coach(es) Ethan Apollo
Student(s) -
Background
Family
  • Hope Union (mother)
  • Desiree Union (sister)
  • Caleb Union (father)
Hometown Evanston, Illinois
Home country USA
Meta info
Debut (manga) Chapter 1
Debut (anime) Episode 1
Voice actors -

This is a rough explanation on how to use this template.
Use the source editor, and paste the following:

{{Infobox character
| title = 
| image-manga = 
| alt-manga = 
| image-anime = 
| alt-anime = 
| name-jp-full = 
| name-jp-trans = 
| nicknames =
| gender = 
| birthday = 
| age = 
| height = 
| bloodtype = 
| occupation = 
| skating-discipline = 
| clubs = 
| skating-class = 
| skating-level = 
| skating-fav-jump = 
| skating-coaches = 
| skating-students = 
| family = 
| home-town = 
| home-country = 
| debut-manga =
| debut-anime = 
| voice-actors =
| 
}}

Then simply fill out the relevant information. Blank entries will not be rendered, so if you have no info regarding that row, then just don't fill it out.

Filling in pictures...

There's some information regarding filling fields on the Manual of Style page, navigate to the section titled Article sections and click on the Character pages tab. Here, I would like to go into the picture fields.
This is what the bare minimum for the images look like.

| image-manga = 
| alt-manga = 
| image-anime = 
| alt-anime = 

This generates two tabs, one for the manga picture, and one for the anime picture.
But what if you wanted to include multiple pictures? Say, for Inori at ages 11 (Volume 3), 12 (Volume 6), and 13 (Volume 11)? Don't worry, I've got you covered.

| image-manga = 
| image-manga-label =
| alt-manga = 
| image-manga-2 = 
| image-manga-2-label =
| alt-manga-2 = 

| image-anime = 
| image-anime-label =
| alt-anime = 
| image-anime-2 = 
| image-anime-2-label =
| alt-anime-2 = 

With this, you can now include multiple pictures for either the Manga or Anime tabs, each with their own sub-tab labels. The following template creates the infobox on the right, below the main example.

{{Infobox character
| title = Template test
| image-manga = File:INORI_MANGA_ICON.png
| image-manga-label = Manga No. 1
| alt-manga = This is the alt text for #1
| image-manga-2 = File:HIKARU_MANGA_ICON.png
| image-manga-2-label = Manga No. 2
| alt-manga-2 = This is the alt text for #2
| image-anime = File:INORI_ANIME_ICON.png
| image-anime-label = Anime No. 1
| alt-anime = This is the alt text for #1
| image-anime-2 = File:HIKARU ANIME ICON.png
| image-anime-2-label = Anime No. 2
| alt-anime-2 = This is the alt text for #2
}}

The field image-manga is the primary image of the page, so it must exist.
You can add up to four pictures per tab, that's four for Manga and four for Anime (Author's note: I will add more slots, but that's for another time).
I recommend labeling them according to the volume the picture appears in rather than the chapter, so they would have the label "Volume 4", or something like that. If you want, you can add a special tab specifically for a rendition of the character in a colored illustration (I recommend labeling this tab simply "Color")