Template:CharacterInfobox: Difference between revisions
From Cassette Beasts
Created template |
Adjusted image sizes and fix spacing when no voice actor entry |
||
| Line 5: | Line 5: | ||
</div> | </div> | ||
<div class="infobox-body"> | <div class="infobox-body"> | ||
<div class="infobox-image"><center>[[File:{{{image|Unknown.png}}}|{{{image_size| | <div class="infobox-image"><center>[[File:{{{image|Unknown.png}}}|{{{image_size|250x350px}}}]]</center></div> | ||
<div class="infobox-data"> | <div class="infobox-data"> | ||
<table> | <table> | ||
{{#if: {{{pronouns|}}}|<tr><th>Pronouns</th><td>{{{pronouns}}}</td></tr>}} | {{#if: {{{pronouns|}}}|<tr><th>Pronouns</th><td>{{{pronouns}}}</td></tr> | ||
{{#if: {{{age|}}}|<tr><th>Age</th><td>{{{age}}}</td></tr>}} | }}{{#if: {{{age|}}}|<tr><th>Age</th><td>{{{age}}}</td></tr> | ||
{{#if: {{{voice_actor|}}}|<tr><th>Voice actor</th><td>{{{voice_actor}}}</td></tr>}} | }}{{#if: {{{voice_actor|}}}|<tr><th>Voice actor</th><td>{{{voice_actor}}}</td></tr>}} | ||
</table> | </table> | ||
</div> | </div> | ||
| Line 17: | Line 17: | ||
<noinclude> | <noinclude> | ||
{{-}} | {{-}} | ||
== | == Examples == | ||
{{CharacterInfobox | {{CharacterInfobox | ||
| name = Kayleigh | | name = Kayleigh | ||
| Line 23: | Line 23: | ||
| pronouns = she/her | | pronouns = she/her | ||
| voice_actor = [https://www.imdb.com/name/nm4348191/ Katherine Moran] | | voice_actor = [https://www.imdb.com/name/nm4348191/ Katherine Moran] | ||
}} | |||
{{-}} | |||
{{CharacterInfobox | |||
| name = Barkley | |||
| image = Barkley.png | |||
| pronouns = he/him | |||
}} | }} | ||
</noinclude> | </noinclude> | ||

