Template:InfoboxCharacter: Difference between revisions

No edit summary
No edit summary
Line 5: Line 5:
{{#if:{{{image|}}}{{{caption|}}}
{{#if:{{{image|}}}{{{caption|}}}
|
|
{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</td></tr>}}
{{#if:{{{image|}}}|<tr><th colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</td></tr>}}
{{#if:{{{caption|}}}|<tr><td colspan="2" class="infobox-caption">{{{caption}}}</td></tr>}}
{{#if:{{{caption|}}}|<tr><th colspan="2" class="infobox-caption">{{{caption}}}</td></tr>}}
}}
}}
{{#if:{{{titles|}}}{{{born|}}}{{{died|}}}
{{#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><td>'''Titles(s)'''</td><td>{{{titles}}}</td></tr>}}
{{#if:{{{titles|}}}|<tr><th class="infobox-label">Titles(s)</td><td>{{{titles}}}</td></tr>}}
{{#if:{{{born|}}}|<tr><td>'''Born'''</td><td>{{{born}}}</td></tr>}}
{{#if:{{{born|}}}|<tr><th class="infobox-label">Born</td><td>{{{born}}}</td></tr>}}
{{#if:{{{died|}}}|<tr><td>'''Died'''</td><td>{{{died}}}</td></tr>}}
{{#if:{{{died|}}}|<tr><th class="infobox-label">Died</td><td>{{{died}}}</td></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><td>'''Race'''</td><td>{{{race}}}</td></tr>}}
{{#if:{{{race|}}}|<tr><th class="infobox-label">Race</td><td>{{{race}}}</td></tr>}}
{{#if:{{{culture|}}}|<tr><td>'''Culture'''</td><td>{{{culture}}}</td></tr>}}
{{#if:{{{culture|}}}|<tr><th class="infobox-label">Culture</td><td>{{{culture}}}</td></tr>}}
{{#if:{{{gender|}}}|<tr><td>'''Gender'''</td><td>{{{gender}}}</td></tr>}}
{{#if:{{{gender|}}}|<tr><th class="infobox-label">Gender</td><td>{{{gender}}}</td></tr>}}
{{#if:{{{hairColor|}}}|<tr><td>'''Hair Color'''</td><td>{{{hairColor}}}</td></tr>}}
{{#if:{{{hairColor|}}}|<tr><th class="infobox-label">Hair Color</td><td>{{{hairColor}}}</td></tr>}}
{{#if:{{{eyeColor|}}}|<tr><td>'''Eye Color'''</td><td>{{{eyeColor}}}</td></tr>}}
{{#if:{{{eyeColor|}}}|<tr><th class="infobox-label">Eye Color</td><td>{{{eyeColor}}}</td></tr>}}
{{#if:{{{appearanceOther|}}}|<tr><td>'''Other'''</td><td>{{{appearanceOther}}}</td></tr>}}
{{#if:{{{appearanceOther|}}}|<tr><th class="infobox-label">Other</td><td>{{{appearanceOther}}}</td></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><td>'''Dynasty'''</td><td>{{{dynasty}}}</td></tr>}}
{{#if:{{{dynasty|}}}|<tr><th class="infobox-label">Dynasty</td><td>{{{dynasty}}}</td></tr>}}
{{#if:{{{house|}}}|<tr><td>'''House'''</td><td>{{{house}}}</td></tr>}}
{{#if:{{{house|}}}|<tr><th class="infobox-label">House</td><td>{{{house}}}</td></tr>}}
{{#if:{{{spouses|}}}|<tr><td>'''Spouse(s)'''</td><td>{{{spouses}}}</td></tr>}}
{{#if:{{{spouses|}}}|<tr><th class="infobox-label">Spouse(s)</td><td>{{{spouses}}}</td></tr>}}
{{#if:{{{children|}}}|<tr><td>'''Children'''</td><td>{{{children}}}</td></tr>}}
{{#if:{{{children|}}}|<tr><th class="infobox-label">Children</td><td>{{{children}}}</td></tr>}}
{{#if:{{{father|}}}|<tr><td>'''Father'''</td><td>{{{father}}}</td></tr>}}
{{#if:{{{father|}}}|<tr><th class="infobox-label">Father</td><td>{{{father}}}</td></tr>}}
{{#if:{{{mother|}}}|<tr><td>'''Mother'''</td><td>{{{mother}}}</td></tr>}}
{{#if:{{{mother|}}}|<tr><th class="infobox-label">Mother</td><td>{{{mother}}}</td></tr>}}
}}
}}
</table>
</table>