Difference between revisions of "Template:Infobox character"

From Summertime Saga Wiki
Jump to: navigation, search
 
(42 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|}}}
+
{{#if:{{{gender|}}}{{{hair|}}}{{{eyes|}}}|
 
+
<tr>
|headerstyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Appearance</th>
|labelstyle  = {{{lbl-style|}}}
+
</tr>
|datastyle    = {{{data-style|}}}
+
{{#if:{{{gender|}}}|
 
+
<tr>
|label1  = First appearance
+
<th scope="row" style="width:69px; vertical-align:top;">Gender</th>
|data1    = {{{first|}}}
+
<td>{{{gender}}}</td>
 
+
</tr>
|label2  = Last appearance
+
}}
|data2    = {{{last|}}}
+
{{#if:{{{hair|}}}|
 
+
<tr>
|label4  = Created by
+
<th scope="row" style="width:69px; vertical-align:top;">Hair color</th>
|data4    = {{{creator|}}}
+
<td>{{{hair}}}</td>
 
+
</tr>
|label5  = Portrayed by
+
}}
|data5    = {{{portrayer|}}}
+
{{#if:{{{eyes|}}}|
 
+
<tr>
|label6  = [[Voice acting|Voiced by]]
+
<th scope="row" style="width:69px; vertical-align:top;">Eye color</th>
|data6    = {{{voice|}}}
+
<td>{{{eyes}}}</td>
 
+
</tr>
|label7  = {{{lbl1|}}}
+
}}
|data7    = {{{data1|}}}
+
}}
 
+
{{#if:{{{pregnancy|}}}{{{dating|}}}{{{relatives|}}}|
|label8  = {{{lbl2|}}}
+
<tr>
|data8    = {{{data2|}}}
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Information</th>
 
+
</tr>
|label9  = {{{lbl3|}}}
+
{{#if:{{{relatives|}}}|
|data9    = {{{data3|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Relatives</th>
|label10  = {{{lbl4|}}}
+
<td>{{{relatives}}}</td>
|data10  = {{{data4|}}}
+
</tr>
 
+
}}
|label11  = {{{lbl5|}}}
+
{{#if:{{{dating|}}}|
|data11  = {{{data5|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Dating</th>
|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}} }} }}
+
<td>{{{dating}}}</td>
 
+
</tr>
|label13  = Full name
+
}}
|data13  = {{{fullname|}}}
+
{{#if:{{{pregnancy|}}}|
 
+
<tr>
|label14  = {{nowrap|Nickname(s)}}
+
<th scope="row" style="width:69px; vertical-align:top;">Pregnancy</th>
|data14  = {{{nickname|}}}
+
<td>{{{pregnancy}}}</td>
 
+
</tr>
|label15  = Aliases
+
}}
|data15  = {{{alias|}}}
+
}}
 
+
{{#if:{{{morning|}}}{{{afternoon|}}}{{{evening|}}}|
|label16  = Species
+
<tr>
|data16  = {{{species|}}}
+
<th colspan="2" style="text-align:center; border-top:thin solid #8B94AA; border-bottom:thin solid #8B94AA; padding:0.2em 0;">Schedule</th>
 
+
</tr>
|label17  = Gender
+
{{#if:{{{morning|}}}|
|data17  = {{{gender|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Morning</th>
|label18  = Occupation
+
<td>{{{morning}}}</td>
|data18  = {{{occupation|}}}
+
</tr>
 
+
}}
|label19  = Affiliation
+
{{#if:{{{afternoon|}}}|
|data19  = {{{affiliation|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Afternoon</th>
|label20  = Title
+
<td>{{{afternoon}}}</td>
|data20  = {{{title|}}}
+
</tr>
 
+
}}
|label21  = Family
+
{{#if:{{{evening|}}}|
|data21  = {{{family|}}}
+
<tr>
 
+
<th scope="row" style="width:69px; vertical-align:top;">Evening</th>
|label22  = {{nowrap|Spouse(s)}}
+
<td>{{{evening}}}</td>
|data22  = {{{spouse|}}}
+
</tr>
 
+
}}
|label23  = [[Significant other|Significant {{nowrap|other(s)}}]]
+
}}
|data23  = {{{significantother|}}}
+
</table></onlyinclude><noinclude>[[Category:Templates]]</noinclude>
 
 
|label24  = Children
 
|data24  = {{{children|}}}
 
 
 
|label25  = Relatives
 
|data25  = {{{relatives|}}}
 
 
 
|label26  = Religion
 
|data26  = {{{religion|}}}
 
 
 
|label27  = Nationality
 
|data27  = {{{nationality|}}}
 
 
 
|label33  = {{{lbl21|}}}
 
|data33  = {{{data21|}}}
 
 
 
|label34  = {{{lbl22|}}}
 
|data34  = {{{data22|}}}
 
 
 
|label35  = {{{lbl23|}}}
 
|data35  = {{{data23|}}}
 
 
 
|label36  = {{{lbl24|}}}
 
|data36  = {{{data24|}}}
 
 
 
|label37  = {{{lbl25|}}}
 
|data37  = {{{data25|}}}  
 
 
 
|header38 = {{ #if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }}
 
 
 
|label39  = {{{lbl31|}}}
 
|data39  = {{{data31|}}}
 
 
 
|label40  = {{{lbl32|}}}
 
|data40  = {{{data32|}}}
 
 
 
|label41  = {{{lbl33|}}}
 
|data41  = {{{data33|}}}
 
 
 
|label42  = {{{lbl34|}}}
 
|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 | nationality | 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 21:25, 12 September 2023

Character full name