Difference between revisions of "Template:Infobox character"

From Summertime Saga Wiki
Jump to: navigation, search
 
(59 intermediate revisions by 7 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:large; background:#3F4562; border:thin solid #8B94AA; padding:3px 0; line-height:1.4em;">{{#if:{{{color|}}}|{{font color|{{{color}}}|{{{name|Character full name}}}}}|{{{name|Character full name}}}}}
|above        = {{ifempty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
+
{{#if:{{{alias|}}}|
|abovestyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
+
<div style="text-align:center; font-size:x-small; color:{{{color|white}}}; padding:0 0 5px 0; line-height:1em;">{{{alias}}}
 
+
</div>
|subheader    = {{#if:{{{series|}}}|''{{{series}}}''_character{{#if:{{{multiple|}}}|s}}}}
+
}}
 
+
</tr>
|image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
+
{{#if:{{{image|}}}|
|caption      = {{{caption|}}}
+
<tr>
 
+
<td colspan="2" style="text-align:center;">[[File:{{{image}}}|200px|alt="{{PAGENAME}} illustration"]]</td>
|headerstyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
+
</tr>
|labelstyle  = {{{lbl-style|}}}
+
}}
|datastyle    = {{{data-style|}}}
+
{{#if:{{{species|}}}{{{nationality|}}}{{{gender|}}}{{{age|}}}{{{height|}}}{{{weight|}}}{{{bust|}}}{{{hair|}}}{{{eyes|}}}{{{orientation|}}}|
 
+
<tr>
|label1  = First appearance
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Appearance</th>
|data1    = {{{first|}}}
+
</tr>
 
+
{{#if:{{{species|}}}|
|label2  = Last appearance
+
<tr>
|data2    = {{{last|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Species</th>
 
+
<td>{{{species}}}</td>
|label4  = Created by
+
</tr>
|data4    = {{{creator|}}}
+
}}
 
+
{{#if:{{{nationality|}}}|
|label5  = Portrayed by
+
<tr>
|data5    = {{{portrayer|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Nationality</th>
 
+
<td>{{{nationality}}}</td>
|label6  = [[Voice acting|Voiced by]]
+
</tr>
|data6    = {{{voice|}}}
+
}}
 
+
{{#if:{{{gender|}}}|
|label7  = {{{lbl1|}}}
+
<tr>
|data7    = {{{data1|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Gender</th>
 
+
<td>{{{gender}}}</td>
|label8  = {{{lbl2|}}}
+
</tr>
|data8    = {{{data2|}}}
+
}}
 
+
{{#if:{{{age|}}}|
|label9  = {{{lbl3|}}}
+
<tr>
|data9    = {{{data3|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Age</th>
 
+
<td>{{{age}}}</td>
|label10  = {{{lbl4|}}}
+
</tr>
|data10  = {{{data4|}}}
+
}}
 
+
{{#if:{{{height|}}}|
|label11  = {{{lbl5|}}}
+
<tr>
|data11  = {{{data5|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Height</th>
 
+
<td>{{{height}}}</td>
|header12 = {{ #if: {{{noinfo|}}} || {{ #if: {{{nickname|}}} {{{alias|}}} {{{species|}}} {{{gender|}}} {{{occupation|}}} {{{title|}}}  {{{family|}}} {{{spouse|}}} {{{significantother|}}} {{{children|}}} {{{relatives|}}} {{{religion|}}} {{{nationality|}}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{ifempty|{{{info-hdr|}}}|Information}} }} }}
+
</tr>
 
+
}}
|label13  = Full name
+
{{#if:{{{weight|}}}|
|data13  = {{{fullname|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Weight</th>
|label14  = {{nowrap|Nickname(s)}}
+
<td>{{{weight}}}</td>
|data14  = {{{nickname|}}}
+
</tr>
 
+
}}
|label15  = Aliases
+
{{#if:{{{bust|}}}|
|data15  = {{{alias|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Bust size</th>
|label16  = Species
+
<td>{{{bust}}}</td>
|data16  = {{{species|}}}
+
</tr>
 
+
}}
|label165  = Night
+
{{#if:{{{hair|}}}|
|data16  = {{{Night|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Hair color</th>
|label17  = Gender
+
<td>{{{hair}}}</td>
|data17  = {{{gender|}}}
+
</tr>
 
+
}}
|label18  = Occupation
+
{{#if:{{{eyes|}}}|
|data18  = {{{occupation|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Eye color</th>
|label19  = Affiliation
+
<td>{{{eyes}}}</td>
|data19  = {{{affiliation|}}}
+
</tr>
 
+
}}
|label20  = Title
+
{{#if:{{{orientation|}}}|
|data20  = {{{title|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Orientation</th>
|label21  = Family
+
<td>{{{orientation}}}</td>
|data21  = {{{family|}}}
+
</tr>
 
+
}}
|label22  = {{nowrap|Spouse(s)}}
+
}}
|data22  = {{{spouse|}}}
+
{{#if:{{{pregnancy|}}}{{{dating|}}}{{{relatives|}}}|
 
+
<tr>
|label23  = [[Significant other|Significant {{nowrap|other(s)}}]]
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Information</th>
|data23  = {{{significantother|}}}
+
</tr>
 
+
{{#if:{{{relatives|}}}|
|label24  = Children
+
<tr>
|data24  = {{{children|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Relatives</th>
 
+
<td>{{{relatives}}}</td>
|label25  = Relatives
+
</tr>
|data25  = {{{relatives|}}}
+
}}
 
+
{{#if:{{{dating|}}}|
|label26  = Day
+
<tr>
|data26  = {{{day|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Dating</th>
 
+
<td>{{{dating}}}</td>
|label27  = Nationality
+
</tr>
|data27  = {{{nationality|}}}
+
}}
 
+
{{#if:{{{pregnancy|}}}|
|label33  = {{{lbl21|}}}
+
<tr>
|data33  = {{{data21|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Pregnancy</th>
 
+
<td>{{{pregnancy}}}</td>
|label34  = {{{lbl22|}}}
+
</tr>
|data34  = {{{data22|}}}
+
}}
 
+
}}
|label35  = {{{lbl23|}}}
+
{{#if:{{{morning|}}}{{{afternoon|}}}{{{evening|}}}|
|data35  = {{{data23|}}}
+
<tr>
 
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Schedule</th>
|label36  = {{{lbl24|}}}
+
</tr>
|data36  = {{{data24|}}}
+
{{#if:{{{morning|}}}|
 
+
<tr>
|label37  = {{{lbl25|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Morning</th>
|data37  = {{{data25|}}}
+
<td>{{{morning}}}</td>
 
+
</tr>
|label38 = {{Night}}
+
}}
|data    = {{night|}}
+
{{#if:{{{afternoon|}}}|
 
+
<tr>
|header38 = {{ #if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }}
+
<th scope="row" style="width:69px; vertical-align:top;">Afternoon</th>
 
+
<td>{{{afternoon}}}</td>
|label39  = {{{lbl31|}}}
+
</tr>
|data39  = {{{data31|}}}
+
}}
 
+
{{#if:{{{evening|}}}|
|label40  = {{{lbl32|}}}
+
<tr>
|data40  = {{{data32|}}}
+
<th scope="row" style="width:69px; vertical-align:top;">Evening</th>
 
+
<td>{{{evening}}}</td>
|label41  = {{{lbl33|}}}
+
</tr>
|data41  = {{{data33|}}}
+
}}
 
+
}}
|label42  = {{{lbl34|}}}
+
</table></onlyinclude><noinclude>[[Category:Templates]]</noinclude>
|data42  = {{{data34|}}}
 
|label43  = {{{lbl35|}}}
 
|data43  = {{{data35|}}}
 
}}{{Main other|{{#if:{{{lbl35|}}}{{{data35|}}}{{{lbl25|}}}{{{data25|}}}{{{lbl5|}}}{{{data5|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|5{{PAGENAME}}]]
 
|{{#if:{{{lbl34|}}}{{{data34|}}}{{{lbl24|}}}{{{data24|}}}{{{lbl4|}}}{{{data4|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|4{{PAGENAME}}]]
 
|{{#if:{{{lbl33|}}}{{{data33|}}}{{{lbl23|}}}{{{data23|}}}{{{lbl3|}}}{{{data3|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|3{{PAGENAME}}]]
 
|{{#if:{{{lbl32|}}}{{{data32|}}}{{{lbl22|}}}{{{data22|}}}{{{lbl2|}}}{{{data2|}}}
 
|[[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]]
 
}} }} }} }}{{Ensure AAA contrast ratio|base={{If empty|{{{color|}}}|{{{colour|}}}}}|category=[[Category:Articles using Template:Infobox character with invalid colour combination]]}}}}<!-- Start tracking
 
-->{{main other|{{#ifeq:{{{sep|♠}}}|♠||[[Category:Infobox character articles using potentially unnecessary parameters|{{#ifeq:{{{sep|♠}}}|♠||S}}]]}}}}<!-- End tracking
 
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox_character]] with unknown parameter "_VALUE_"|ignoreblank=y|  affiliation  | alias | alt  | caption | children | color | colour | creator | data-style | data1 | data2 | data21 | data22 | data23 | data24 | data25 | data3 | data31 | data32 | data33 | data34 | data35 | data4 | data5 | extra-hdr | family | first | fullname | gender | image | image_size | image_upright | info-hdr | last | lbl-style | lbl1 | lbl2 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl3 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | lbl4 | lbl5 | multiple | name | day | nickname | noinfo | occupation | portrayer | relatives | religion | sep | series | significantother | species | spouse  | title | voice }}<noinclude>
 
{{Documentation}}
 
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 

Latest revision as of 17:32, 29 May 2025

Character full name