Template:InfoboxCharacter: Difference between revisions

Created page with "<templatestyles src="Template:InfoboxCharacter/styles.css" /> <table class="infobox"> {{#if: {{{born|}}}{{{died|}}}{{{titles|}}} | <tr><td colspan="2" class="infobox-title">{{{name|Character}}}</td></tr> {{#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>}} <tr><th colspan="2" class="infobox-header">General</th></t..."
 
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<templatestyles src="Template:InfoboxCharacter/styles.css" />
<templatestyles src="Template:InfoboxCharacter/styles.css" />
<table class="infobox">
<tr><th colspan="2" class="infobox-title">{{{name|Character}}}</th></tr><!--


<table class="infobox">
-->{{#if:{{{image|}}}|<tr><th colspan="2" class="infobox-image">[[File:{{{image}}}|250px|center|]]</th></tr>}}<!--
-->{{#if:{{{caption|}}}|<tr><th colspan="2" class="infobox-caption">{{{caption}}}</tr></tr>}}<!--


{{#if: {{{born|}}}{{{died|}}}{{{titles|}}}
-->{{#if:{{{titles|}}}{{{born|}}}{{{died|}}}|<tr><th colspan="2" class="infobox-header">General</th></tr><!--
|
-->{{#if:{{{titles|}}}|<tr><th class="infobox-label">Titles(s)</th><td>{{{titles}}}</td></tr>}}<!--
<tr><td colspan="2" class="infobox-title">{{{name|Character}}}</td></tr>
-->{{#if:{{{born|}}}|<tr><th class="infobox-label">Born</th><td>{{{born}}}</td></tr>}}<!--
{{#if:{{{image|}}}|<tr>
-->{{#if:{{{died|}}}|<tr><th class="infobox-label">Died</th><td>{{{died}}}</td></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>}}
<tr><th colspan="2" class="infobox-header">General</th></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>}}
}}


-->{{#if:{{{race|}}}{{{culture|}}}{{{gender|}}}{{{hairColor|}}}{{{eyeColor|}}}{{{appearanceOther|}}}|<tr><th colspan="2" class="infobox-header">Appearance</th></tr><!--
-->{{#if:{{{race|}}}|<tr><th class="infobox-label">Race</th><td>{{{race}}}</td></tr>}}<!--
-->{{#if:{{{culture|}}}|<tr><th class="infobox-label">Culture</th><td>{{{culture}}}</td></tr>}}<!--
-->{{#if:{{{gender|}}}|<tr><th class="infobox-label">Gender</th><td>{{{gender}}}</td></tr>}}<!--
-->{{#if:{{{hairColor|}}}|<tr><th class="infobox-label">Hair Color</th><td>{{{hairColor}}}</td></tr>}}<!--
-->{{#if:{{{eyeColor|}}}|<tr><th class="infobox-label">Eye Color</th><td>{{{eyeColor}}}</td></tr>}}<!--
-->{{#if:{{{appearanceOther|}}}|<tr><th class="infobox-label">Other</th><td>{{{appearanceOther}}}</td></tr>}}
}}<!--


{{#if: {{{race|}}}{{{culture|}}}{{{gender|}}}{{{hairColor|}}}{{{eyeColor|}}}{{{appearanceOther|}}}
-->{{#if:{{{dynasty|}}}{{{house|}}}{{{spouses|}}}{{{children|}}}{{{father|}}}{{{mother|}}}|<tr><th colspan="2" class="infobox-header">Family</th></tr><!--
|
-->{{#if:{{{dynasty|}}}|<tr><th class="infobox-label">Dynasty</th><td>{{{dynasty}}}</td></tr>}}<!--
<tr><th colspan="2" class="infobox-header">Appearance</th></tr>
-->{{#if:{{{house|}}}|<tr><th class="infobox-label">House</th><td>{{{house}}}</td></tr>}}<!--
{{#if:{{{race|}}}|<tr>
-->{{#if:{{{spouses|}}}|<tr><th class="infobox-label">Spouse(s)</th><td>{{{spouses}}}</td></tr>}}<!--
    <td>'''Race'''</td>
-->{{#if:{{{children|}}}|<tr><th class="infobox-label">Children</th><td>{{{children}}}</td></tr>}}<!--
    <td>{{{race}}}</td>
-->{{#if:{{{father|}}}|<tr><th class="infobox-label">Father</th><td>{{{father}}}</td></tr>}}<!--
</tr>}}
-->{{#if:{{{mother|}}}|<tr><th class="infobox-label">Mother</th><td>{{{mother}}}</td></tr>}}
{{#if:{{{culture|}}}|<tr>
    <td>'''Culture'''</td>
    <td>{{{culture}}}</td>
</tr>}}
{{#if:{{{gender|}}}|<tr>
    <td>'''Gender'''</td>
    <td>{{{gender}}}</td>
</tr>}}
{{#if:{{{hairColor|}}}|<tr>
    <td>'''Hair Color'''</td>
    <td>{{{hairColor}}}</td>
</tr>}}
{{#if:{{{eyeColor|}}}|<tr>
    <td>'''Eye Color'''</td>
    <td>{{{eyeColor}}}</td>
</tr>}}
{{#if:{{{appearanceOther|}}}|<tr>
    <td>'''Other'''</td>
    <td>{{{appearanceOther}}}</td>
</tr>}}
}}
}}
</table>
</includeonly><noinclude>{{InfoboxCharacter
| name  = Name
| image =
| caption =
| titles = King/Queen/etc.
| born = Date of birth
| died = Date of death
| race = Race
| culture = Culture
| gender = Gender
| hairColor = Hair Color
| eyeColor = Eye Color
| appearanceOther = Other information about the appearance
| dynasty = Dynasty
| house = House
| spouses = Spouse(s)
| children = Children
| father = Father
| mother = Mother
}}
Use this template at the top of a page to insert a character infobox.


{{#if: {{{dynasty|}}}{{{house|}}}{{{spouses|}}}{{{children|}}}{{{father|}}}{{{mother|}}}
TemplateStyles CSS: [[Template:{{PAGENAME}}/styles.css]]
|
<tr><th colspan="2" class="infobox-header">Family</th></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>}}
{{#if:{{{children|}}}|<tr>
    <td>'''Children'''</td>
    <td>{{{children}}}</td>
</tr>}}
{{#if:{{{father|}}}|<tr>
    <td>'''Father'''</td>
    <td>{{{father}}}</td>
</tr>}}
{{#if:{{{mother|}}}|<tr>
    <td>'''Mother'''</td>
    <td>{{{mother}}}</td>
</tr>}}
}}


</table>
== Copy/Paste This ==
<pre>{{InfoboxCharacter
| name  =
| image = Filename.png
| caption =
| titles =
| born =
| died =
| race =
| culture =
| gender =
| hairColor =
| eyeColor =
| appearanceOther =
| dynasty =
| house =
| spouses =
| children =
| father =
| mother =
}}</pre></noinclude>