Difference between revisions of "Template:Infobox character"

From Summertime Saga Wiki
Jump to: navigation, search
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Infobox
+
<onlyinclude><table style="float:right; clear:right; margin:0.5em 0 1.3em 1.4em; border-spacing:4px; background:#3F4454; color:white; text-align:left; font-size:small; line-height:1.4em; width:200px;">
| bodystyle    = border-spacing: 2px 5px;
+
<tr>
 
+
<th colspan="2" style="text-align:center; font-size:x-large; background:#3F4562; border:thin solid #8B94AA; padding:3px 2px; line-height:1.4em;">{{#if:{{{color|}}}|{{font color|{{{color}}}|{{{name|Character full name}}}}}|{{{name|Character full name}}}}}</th>
| above        = {{ifempty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
+
</tr>
| abovestyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
+
{{#if:{{{image|}}}|
 
+
<tr>
| subheader    = {{#if:{{{series|}}}|''{{{series}}}''_character{{#if:{{{multiple|}}}|s}}}}
+
<td colspan="2" style="text-align:center;">[[File:{{{image}}}|200px|alt="{{PAGENAME}} illustration"]]</td>
 
+
</tr>
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
 
| caption      = {{{caption|}}}
 
 
 
| headerstyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
 
| labelstyle  = {{{lbl-style|}}}
 
| datastyle    = {{{data-style|}}}
 
 
 
| header1      = {{ #if: {{{noinfo|}}} || {{ #if: {{{aliases|}}} {{{relatives|}}} {{{gender|}}} {{{eyes|}}} {{{marital|}}} | {{ifempty|{{{info-hdr|}}}|Information}} }} }}
 
| label2      = Aliases
 
| data2        = {{{aliases|}}}
 
| label3      = Relatives
 
| data3        = {{{relatives|}}}
 
| label4      = Gender
 
| data4        = {{{gender|}}}
 
| label5      = Eye Color
 
| data5        = {{{eyes|}}}
 
| label6      = Marital Status
 
| data6        = {{{marital|}}}
 
 
 
| header7      = {{ #if: {{{noinfo|}}} || {{ #if: {{{day|}}} {{{night|}}} | {{ifempty|{{{info-hdr|}}}|Location}} }} }}
 
| label8      = Day
 
| data8        = {{{day|}}}
 
| label9      = Night
 
| data9        = {{{night|}}}
 
 
 
 
}}
 
}}
 +
{{#if:{{{gender|}}}{{{hair|}}}{{{eyes|}}}|
 +
<tr>
 +
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Appearance</th>
 +
</tr>
 +
{{#if:{{{gender|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Gender</th>
 +
<td>{{{gender}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{hair|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Hair color</th>
 +
<td>{{{hair}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{eyes|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Eye color</th>
 +
<td>{{{eyes}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
{{#if:{{{pregnancy|}}}{{{dating|}}}{{{relatives|}}}|
 +
<tr>
 +
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Information</th>
 +
</tr>
 +
{{#if:{{{relatives|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Relatives</th>
 +
<td>{{{relatives}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{dating|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Dating</th>
 +
<td>{{{dating}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{pregnancy|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Pregnancy</th>
 +
<td>{{{pregnancy}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
{{#if:{{{morning|}}}{{{afternoon|}}}{{{evening|}}}|
 +
<tr>
 +
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Schedule</th>
 +
</tr>
 +
{{#if:{{{morning|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Morning</th>
 +
<td>{{{morning}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{afternoon|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Afternoon</th>
 +
<td>{{{afternoon}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{evening|}}}|
 +
<tr>
 +
<th scope="row" style="width:69px; vertical-align:top;">Evening</th>
 +
<td>{{{evening}}}</td>
 +
</tr>
 +
}}
 +
}}
 +
</table></onlyinclude><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 21:25, 12 September 2023

Character full name