Template:CharacterInfobox: Difference between revisions
From Cassette Beasts
Created template |
Add title parameter |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
<div class="infobox-head"> | <div class="infobox-head"> | ||
<div class="infobox-title">{{{name}}}</div> | <div class="infobox-title">{{{name}}}</div> | ||
<div class="infobox-subtitle"> </div> | <div class="infobox-subtitle">{{#if:{{{title|}}}| {{{title}}} | }}</div> | ||
</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 | ||
| title = Neighbourhood Ranger | |||
| image = Kayleigh.png | | image = Kayleigh.png | ||
| 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 | |||
| title = Man's Best Friend | |||
| image = Barkley.png | |||
| pronouns = he/him | |||
}} | }} | ||
</noinclude> | </noinclude> | ||

