Template:Character: Difference between revisions

minor bug
No edit summary
(minor bug)
 
(20 intermediate revisions by 2 users not shown)
Line 1:
<includeonlyonlyinclude><templatestyles src="Template:CharacterInfobox/styles.css" /><div class="articlehead"><table class="infobox ib-type-band">{{Infobox
| autoheaders=y
<tr><td colspan="2" style="text-align: center; font-size:140%;">'''{{#if: {{{name|}}}|{{{name|}}}|{{PAGENAME}}}}'''</td></tr>
| bodystyle = width:270px; border: 2px solid #DFCDDD;
<tr><td colspan="2">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size=270|sizedefault=frameless|upright=1.1|alt={{{alt|}}}|suppressplaceholder=yes}}</td></tr><!--
| abovestyle = background-color: #2B1D42; color: #DFCDDD; padding: 8px; font-size: 150%;
--><tr><td colspan="2" style="text-align: center;>{{{caption|}}}</td></tr><!--
| imagestyle = padding-top: 9px;
--><!--
| captionstyle = padding: 5px 10px;
--><td colspan="2" class="ib-line"></td>
| subheaderstyle = font-size: 110%; padding: 5px;
<!-------------------------------------------------------------------------------------------------------------------
| headerstyle = background-color: #2B1D42; font-weight: bold; #DFCDDD: white; font-size: 110%; padding: 4px;
-->
| bodyclass = infobox
<tr><td colspan="2" style="padding-top:5px;text-align: center; font-weight: bold;">Character</td></tr>
<tr>
<td class="ib-data-title" style="padding-top:5px;>Species</td>
<td class="ib-data">{{{species}}}</td>
</tr><!--
--><tr>
<td class="ib-data-title">Kind</td>
<td class="ib-data">{{{kind}}}{{#switch:{{{kind}}}|
{{FIM|Unicorn}}=[[Category:Friendship is Magic unicorns]]}}</td>
</tr><!--
--><tr>
<td class="ib-data-title">Gender</td>
<td class="ib-data">{{{gender}}}</td>
</tr>
<td colspan="2" class="ib-line"></td>
<tr><td colspan="2" style="padding-top:5px;text-align: center; font-weight: bold;">Personal life</td></tr>
<!--
-->{{#if: {{{occupation|}}}|<tr>
<td class="ib-data-title">Occupation</td>
<td class="ib-data">{{{occupation|}}}</td>
</tr>}}<!--
-->{{#if: {{{nationality|}}}|<tr>
<td class="ib-data-title">Nationality</td>
<td class="ib-data">{{{nationality|}}}</td>
</tr>}}<!--
-->{{#if: {{{residence|}}}|<tr>
<td class="ib-data-title">Residence</td>
<td class="ib-data">{{{residence|}}}</td>
</tr>}}<!--
-->{{#if: {{{address|}}}|<tr>
<td class="ib-data-title">Address</td>
<td class="ib-data">{{{address|}}}</td>
</tr>}}<!--
--><td colspan="2" class="ib-line"></td><!--
-->
<tr><td colspan="2" style="padding-top:5px;text-align: center; font-weight: bold;">Relationships</td></tr>
{{#if: {{{family|}}}|<tr>
<td class="ib-data-title">Family</td>
<td class="ib-data">{{{family|}}}</td>
</tr>}}<!--
-->{{#if: {{{relatives|}}}|<tr>
<td class="ib-data-title">Relatives</td>
<td class="ib-data">{{{relatives|}}}</td>
</tr>}}<!--
-->{{#if: {{{affiliation|}}}|<tr>
<td class="ib-data-title">Affiliation</td>
<td class="ib-data">{{{affiliation|}}}</td>
</tr>}}<!--
-->{{#if: {{{employment|}}}|<tr>
<td class="ib-data-title">Employment</td>
<td class="ib-data">{{{employment|}}}</td>
</tr>}}<!--
-->{{#if: {{{education|}}}|<tr>
<td class="ib-data-title">Education</td>
<td class="ib-data">{{{education|}}}</td>
</tr>}}<!--
 
| above = {{ #if: {{{name|}}} | {{{name|{{PAGENAME}}|#if:{{{fan|true}}} [[category:Fan names]]}}} | {{PAGENAME}}}}
--><!-------------------------------------------------------------------------------------------------------------------
|subheader = {{Character/SeriesCategorization|series={{{series|}}}}}
-->{{#if: {{{voice_artist|}}}|<!--
 
--><tr><td colspan="2" class="ib-line"></td></tr><!--
| image = {{#invoke:InfoboxImageDRAFT|InfoboxImageDRAFT|image={{trim brackets|{{{image|}}}}}|alt={{{image_alt|}}}|size={{{image_size|270px}}}|upright={{{upright|1.45}}}|sizedefault=frameless|maxsize=270px}}
-->{{#if: {{{voice_artist|}}}|<tr>
| caption = {{{caption|}}}
<td class="ib-data-title">Voice actor</td>
 
<td class="ib-data">{{{voice_artist|}}}</td>
| header1 = Biographical information
</tr>}}}}<!--
| label2 = {{tooltip|aka|Also known as}}
-->{{#if: {{{live_actor|}}}|<tr>
| data2 = {{{aka|}}}
<td class="ib-data-title">Live actor</td>
| rowclass2 = bordered
<td class="ib-data">{{{live_actor|}}}</td>
| label3 </tr>}}<!-- = Species
| data3 = {{Character/SpeciesCategorization|species={{{species|}}}}} {{#if:{{{kind|}}}|{{*}}{{Character/kindCategorization|kind={{{kind|}}}}}}}
-->{{#if: {{{singer|}}}|<tr>
| rowclass3 = bordered
<td class="ib-data-title">Singer</td>
| label4 = [[Gender in My Little Pony|Gender]]
<td class="ib-data">{{{singer|}}}</td>
| data4 = {{Character/GenderCategorization|gender={{{gender|}}}}}
</tr>}}
| rowclass4 = bordered
</table>[[Category:Characters]]</includeonly><noinclude>{{doc}}[[Category:Infoboxes]]</noinclude>
| label5 = Age
| data5 = {{Character/AgeCategorization|age={{{age|}}}}} {{#if:{{{age_2|}}}|{{CN|{{{age_2}}}}}}}
| rowclass5 = bordered
 
| label7 = Occupation
| data7 = {{{occupation|}}}
| rowclass7 = bordered
| label8 = Nationality
| data8 = {{{nationality|}}}
| rowclass8 = bordered
| label9 = Education
| data9 = {{{education|}}}
| rowclass9 = bordered
| label10 = Residence
| data10 = {{{residence|}}}
| rowclass10 = bordered
| label11 = Home
| data11 = {{{home|}}}
| rowclass11 = bordered
| header12 = Relationships
| label13 = Family
| data13 = {{{family|}}}
|rowclass13 = bordered
| label14 = Relatives
| data14 = {{{relatives|}}}
|rowclass14 = bordered
| label15 = Partner(s)
| data15 = {{{partner|}}}
|rowclass15 = bordered
| label16 = Affiliation
| data16 = {{{affiliation|}}}
|rowclass16 = bordered
| header17 = Real world
| label18 = Designer
| data18 = {{{designer|}}}
|rowclass18 = bordered
| label19 = Voice
| data19 = {{{voice_artist|}}}
|rowclass19 = bordered
| label20 = Live
| data20 = {{{live_actor|}}}
|rowclass20 = bordered
| label21 = Singer
| data21 = {{{singer|}}}
|rowclass21 = bordered
 
|data22 = {{#if:{{{first|}}}{{{last|}}}|
{{(!}} style="width: 100%; display: inline-table; border-collapse: collapse"
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''First'''<br />{{#if: {{{first|}}} | {{{first}}} | &mdash;}}
{{!}} style="width: 33%; padding: 0.3em; text-align: center; border-right: 0px solid #326275; border-bottom: 0px solid #326275;" {{!}} '''Last'''<br />{{#if: {{{last|}}} | {{{last}}} | &mdash;}}
{{!)}}
}}
}}</onlyinclude><includeonly>[[Category:Using character infobox]]{{#if:{{{Y|}}}|[[Category:{{{Y}}} character debuts‎]]}}</includeonly><noinclude><br style="clear:both;" />{{documentation}}</noinclude>