Difference between revisions of "Template:Infobox character"

From Summertime Saga Wiki
Jump to: navigation, search
m (1 revision imported)
Line 1: Line 1:
<infobox>
+
{{Infobox
<title source="name">
+
|bodystyle    = border-spacing: 2px 5px;
    <default>{{PAGENAME}}</default>
 
</title>
 
<image source="image">
 
    <caption source="imagecaption" />
 
</image>
 
<group>
 
    <data source="relatives"><label>Relatives</label><default>''Unknown''</default></data>
 
</group>
 
    <group> 
 
        <header>Information</header>
 
        <data source="gender"><label>Gender</label><default>''Unknown''</default></data>
 
        <data source="eyes"><label>Eye color</label><default>''Unknown''</default></data>
 
        <data source="marital"><label>Marital status</label><default>''Unknown''</default></data>
 
    </group>
 
    <group>
 
        <header>Location</header>
 
        <data source="Day"><label>Day</label><default>''Unknown''</default></data>
 
        <data source="Night"><label>Night</label><default>''Unknown''</default></data>
 
    </group>
 
   
 
</infobox>
 
  
<noinclude>
+
|above        = {{ifempty|{{{name|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
{{documentation}}
+
|abovestyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
 +
 
 +
|subheader    = {{#if:{{{series|}}}|''{{{series}}}'' character{{#if:{{{multiple|}}}|s}}}}
 +
 
 +
|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|}}}
 +
 
 +
|label1  = First appearance
 +
|data1    = {{{first|}}}
 +
 
 +
|label2  = Last appearance
 +
|data2    = {{{last|}}}
 +
 
 +
|label4  = Created by
 +
|data4    = {{{creator|}}}
 +
 
 +
|label5  = Portrayed by
 +
|data5    = {{{portrayer|}}}
 +
 
 +
|label6  = [[Voice acting|Voiced by]]
 +
|data6    = {{{voice|}}}
 +
 
 +
|label7  = {{{lbl1|}}}
 +
|data7    = {{{data1|}}}
 +
 
 +
|label8  = {{{lbl2|}}}
 +
|data8    = {{{data2|}}}
 +
 
 +
|label9  = {{{lbl3|}}}
 +
|data9    = {{{data3|}}}
 +
 
 +
|label10  = {{{lbl4|}}}
 +
|data10  = {{{data4|}}}
 +
 
 +
|label11  = {{{lbl5|}}}
 +
|data11  = {{{data5|}}}
 +
 
 +
|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}} }} }}
 +
 
 +
|label13  = Full name
 +
|data13  = {{{fullname|}}}
 +
 
 +
|label14  = {{nowrap|Nickname(s)}}
 +
|data14  = {{{nickname|}}}
 +
 
 +
|label15  = Aliases
 +
|data15  = {{{alias|}}}
 +
 
 +
|label16  = Species
 +
|data16  = {{{species|}}}
 +
 
 +
|label17  = Gender
 +
|data17  = {{{gender|}}}
 +
 
 +
|label18  = Occupation
 +
|data18  = {{{occupation|}}}
 +
 
 +
|label19  = Affiliation
 +
|data19  = {{{affiliation|}}}
 +
 
 +
|label20  = Title
 +
|data20  = {{{title|}}}
 +
 
 +
|label21  = Family
 +
|data21  = {{{family|}}}
 +
 
 +
|label22  = {{nowrap|Spouse(s)}}
 +
|data22  = {{{spouse|}}}
 +
 
 +
|label23  = [[Significant other|Significant {{nowrap|other(s)}}]]
 +
|data23  = {{{significantother|}}}
 +
 
 +
|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>
 
</noinclude>

Revision as of 22:04, 2 February 2017