Template:InfoboxCharacter: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<templatestyles src="Template:InfoboxCharacter/styles.css" /> | <templatestyles src="Template:InfoboxCharacter/styles.css" /> | ||
<table class="infobox"> | <table class="infobox"> | ||
{{#if: {{{titles|}}}{{{born|}}}{{{died|}}} | <tr><th colspan="2" class="infobox-title">{{{name|Character}}}</th></tr> | ||
{{#if:{{{image|}}}{{{caption|}}} | |||
| | |||
{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</td></tr>}} | |||
{{#if:{{{caption|}}}|<tr><td colspan="2" class="infobox-caption">{{{caption}}}</td></tr>}} | |||
}} | |||
{{#if:{{{titles|}}}{{{born|}}}{{{died|}}} | |||
| | | | ||
<tr><th colspan="2" class="infobox-header">General</th></tr> | <tr><th colspan="2" class="infobox-header">General</th></tr> | ||
{{#if:{{{titles|}}}|<tr> | {{#if:{{{titles|}}}|<tr><td>'''Titles(s)'''</td><td>{{{titles}}}</td></tr>}} | ||
{{#if:{{{born|}}}|<tr><td>'''Born'''</td><td>{{{born}}}</td></tr>}} | |||
{{#if:{{{died|}}}|<tr><td>'''Died'''</td><td>{{{died}}}</td></tr>}} | |||
</tr>}} | |||
{{#if:{{{born|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{died|}}}|<tr> | |||
</tr>}} | |||
}} | }} | ||
{{#if:{{{race|}}}{{{culture|}}}{{{gender|}}}{{{hairColor|}}}{{{eyeColor|}}}{{{appearanceOther|}}} | |||
{{#if: {{{race|}}}{{{culture|}}}{{{gender|}}}{{{hairColor|}}}{{{eyeColor|}}}{{{appearanceOther|}}} | |||
| | | | ||
<tr><th colspan="2" class="infobox-header">Appearance</th></tr> | <tr><th colspan="2" class="infobox-header">Appearance</th></tr> | ||
{{#if:{{{race|}}}|<tr> | {{#if:{{{race|}}}|<tr><td>'''Race'''</td><td>{{{race}}}</td></tr>}} | ||
{{#if:{{{culture|}}}|<tr><td>'''Culture'''</td><td>{{{culture}}}</td></tr>}} | |||
{{#if:{{{gender|}}}|<tr><td>'''Gender'''</td><td>{{{gender}}}</td></tr>}} | |||
</tr>}} | {{#if:{{{hairColor|}}}|<tr><td>'''Hair Color'''</td><td>{{{hairColor}}}</td></tr>}} | ||
{{#if:{{{culture|}}}|<tr> | {{#if:{{{eyeColor|}}}|<tr><td>'''Eye Color'''</td><td>{{{eyeColor}}}</td></tr>}} | ||
{{#if:{{{appearanceOther|}}}|<tr><td>'''Other'''</td><td>{{{appearanceOther}}}</td></tr>}} | |||
</tr>}} | |||
{{#if:{{{gender|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{hairColor|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{eyeColor|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{appearanceOther|}}}|<tr> | |||
</tr>}} | |||
}} | }} | ||
{{#if:{{{dynasty|}}}{{{house|}}}{{{spouses|}}}{{{children|}}}{{{father|}}}{{{mother|}}} | |||
{{#if: {{{dynasty|}}}{{{house|}}}{{{spouses|}}}{{{children|}}}{{{father|}}}{{{mother|}}} | |||
| | | | ||
<tr><th colspan="2" class="infobox-header">Family</th></tr> | <tr><th colspan="2" class="infobox-header">Family</th></tr> | ||
{{#if:{{{dynasty|}}}|<tr> | {{#if:{{{dynasty|}}}|<tr><td>'''Dynasty'''</td><td>{{{dynasty}}}</td></tr>}} | ||
{{#if:{{{house|}}}|<tr><td>'''House'''</td><td>{{{house}}}</td></tr>}} | |||
{{#if:{{{spouses|}}}|<tr><td>'''Spouse(s)'''</td><td>{{{spouses}}}</td></tr>}} | |||
</tr>}} | {{#if:{{{children|}}}|<tr><td>'''Children'''</td><td>{{{children}}}</td></tr>}} | ||
{{#if:{{{house|}}}|<tr> | {{#if:{{{father|}}}|<tr><td>'''Father'''</td><td>{{{father}}}</td></tr>}} | ||
{{#if:{{{mother|}}}|<tr><td>'''Mother'''</td><td>{{{mother}}}</td></tr>}} | |||
</tr>}} | |||
{{#if:{{{spouses|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{children|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{father|}}}|<tr> | |||
</tr>}} | |||
{{#if:{{{mother|}}}|<tr> | |||
</tr>}} | |||
}} | }} | ||
</table> | </table> | ||