Anonymous

Template:Character infobox: Difference between revisions

From Pixar Cars Wiki
no edit summary
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{merch|}}}| {{#titleicon_file:Mattel logo.png|Vehicle:{{#if:{{{vehicle_name|}}}|{{{vehicle_name|}}}|{{PAGENAME}}}} }} |}}
<noinclude>{{#cargo_declare:_table=Characters
{{Infobox|start|id=character|cellspacing=0}}
|Name=Wikitext
{{Infobox|title|id=infobox-title|colspan=2|other={{#if: {{{boxcolor|}}} |class="infobox-{{{boxcolor|}}}"|}}|text={{{name|{{PAGENAME}}}}} }}
|Image=File
{{Infobox image|image={{{image|}}}|image_size={{{image_size|}}}|image_style={{{image_style}}}}}
}}</noinclude><includeonly>{{#cargo_store:_table=Characters
|Name='''[[{{{name|{{PAGENAME}}}}}]]'''<br/>{{{first_appearance|}}}
|Image={{{image|}}}
}}</includeonly>{{#if:{{{merch|}}}| {{Title icon|Vehicle|vehicle_name={{{vehicle_name|}}}}} |}}
{{Infobox|start|id=character|cellspacing=0|outer_style=border: 6px solid black;border-radius: 1.7em;|inner_style=border: 3px solid #d3d3ff;border-radius:1.2em;}}
{{Infobox|title|colspan=2|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|text={{{name|{{PAGENAME}}}}} }}
{{Infobox|image|style=background: linear-gradient(to bottom, #cac8c9 0, white 50%, #cac8c9 100%)|image={{{image|}}}|image_size={{{image_size|}}}|image_style={{{image_style}}}|cell_style={{{cell_style|}}}}}
|-
|-
{{#if: {{{image_tabs|}}} | {{!}} class="infobox-image-cell" colspan="2" style="padding:2px 0;" {{!}} {{{image_tabs|}}}
{{#if: {{{image_tabs|}}} | {{!}} class="infobox-image-cell" colspan="2" style="padding:2px 0; background: linear-gradient(to bottom, #cac8c9 0, white 50%, #cac8c9 100%)" {{!}} {{{image_tabs|}}}
{{!}}-|}}
{{!}}-|}}
|-
|-
{{#if: {{{variants|}}} | {{!}} colspan="2" class="var-parent-cell" style="padding:2px 0;" {{!}} {{{variants|}}}
{{#if: {{{variants|}}} | {{!}} colspan="2" class="var-parent-cell" style="padding:2px 0;" {{!}} {{{variants|}}}
{{!}}-|}}
|-
{{#if: {{{orthos|}}} | {{!}} colspan="2" class="var-parent-cell" style="padding:2px 0;" {{!}} {{{orthos|}}}
{{!}}-|}}
{{!}}-|}}
|-
|-
Line 13: Line 22:
{{Infobox|row|label=Color|data={{{color|}}}}}
{{Infobox|row|label=Color|data={{{color|}}}}}
{{Infobox|row|label=Occupation|data={{{occupation|}}}}}
{{Infobox|row|label=Occupation|data={{{occupation|}}}}}
{{Infobox|row|label=Main portrayer(s)|data={{{performer|}}}}}
{{Infobox|row|label=First appearance|data={{{first_appearance|}}}{{#if: {{{first_year|}}} | &nbsp;{{Smallnote|({{{first_year|}}})}} |}}}}
{{Infobox|row|label=Latest appearance|data={{{latest_appearance|}}}{{#if: {{{latest_year|}}} | &nbsp;{{Smallnote|({{{latest_year|}}})}} |}}}}
|-
|-
{{#if:{{{performer|}}}|
{{Infobox|section|id=charinfo-section|name=Character information|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries=
{{!}} '''Main portrayer(s)'''
{{Infobox|row|label=Full name|data={{{full name|}}}}}
{{!}} {{{performer}}}
{{Infobox|row|label=Nickname(s)|data={{{nicknames|}}}}}
}}
{{Infobox|row|label=Alias(es)|data={{{aliases|}}}}}
|-
{{Infobox|row|label=Gender|data={{{gender|}}}}}
{{#if:{{{first_appearance|}}}|
{{Infobox|row|label=Title|data={{{title|}}}}}
{{!}} '''First appearance'''
{{Infobox|row|label=Affiliation|data={{{affiliation|}}}}}
{{!}} {{{first_appearance}}}{{#if: {{{first_year|}}} | &nbsp;{{Smallnote|({{{first_year|}}})}} |}}
{{Infobox|row|label=Family|data={{{family|}}}}}
}}
{{Infobox|row|label=Relatives|data={{{relatives|}}}}}
|-
{{Infobox|row|label=Spouse|data={{{spouse|}}}}}
{{#if:{{{latest_appearance|}}}|
{{Infobox|row|label=Significant other|data={{{significant_other|}}}}}
{{!}} '''Latest appearance'''
{{Infobox|row|label=Home|data={{{home|}}}}}
{{!}} {{{latest_appearance}}}{{#if: {{{latest_year|}}} | &nbsp;{{Smallnote|({{{latest_year|}}})}} |}}
{{Infobox|row|label=Nationality|data={{{nationality|}}}}}
}}
{{Infobox|row|label=Birthday|data={{{birthday|}}}}}
|- class="infobox-section" id="charinfo-section"
{{Infobox|row|label=License plate|data={{{license_plate|}}}}}
| colspan="2" style="padding:0 !important" |
{| class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0"
! colspan="2" {{#if: {{{boxcolor|}}}|class="infobox-{{{boxcolor|}}}" |}} style="text-align: center;line-height: 1.5;padding: 5px;" {{!}} Character information
|-
{{#if:{{{full name|}}}|
{{!}} '''Full name'''
{{!}} {{{full name}}}
}}
|-
{{#if:{{{nicknames|}}}|
{{!}} '''Nicknames'''
{{!}} {{{nicknames}}}
}}
|-
{{#if:{{{aliases|}}}|
{{!}} '''Aliases'''
{{!}} {{{aliases}}}
}}
|-
{{#if:{{{gender|}}}|
{{!}} '''Gender'''
{{!}} {{{gender}}}
}}
}}
|-
|-
{{#if:{{{title|}}}|
{{Infobox|section|id=technicals|name=Technical details|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries=
{{!}} '''Title'''
{{Infobox|row|label=Body|data={{{body|}}}}}
{{!}} {{{title}}}
{{Infobox|row|label=Chassis|data={{{chassis|}}}}}
{{Infobox|row|label=Top speed|data={{{top_speed|}}}}}
{{Infobox|row|label=Start time|data={{{start_time|}}}}}
{{Infobox|row|label=Engine|data={{{engine|}}}}}
{{Infobox|row|label=Horsepower|data={{{horsepower|}}}}}
}}
}}
|-
{{Infobox|section|id=racer|style=background-color:#0d408a|name=[[File:Piston Cup Red.png|22px]] [[Piston Cup Racing Series|<span style="color:#fad047">Piston Cup Series</span>]] career|entries=
{{#if:{{{affiliation|}}}|
{{Infobox|row|label={{{Total_Cup_Races|}}} races won over {{{Years_In_Cup|}}} years|data={{{Total_Cup_Races|}}}}}
{{!}} '''Affiliation'''
{{Infobox|row|label=Best Cup position|data={{{Best_Cup_Pos|}}}}}
{{!}} {{{affiliation}}}
{{Infobox|row|label=First race|data={{{First_Cup_Race|}}}}}
{{Infobox|row|label=Last race|data={{{Last_Cup_Race|}}}}}
{{Infobox|row|label=First win|data={{{First_Cup_Win|}}}}}
{{Infobox|row|label=Last win|data={{{Last_Cup_Win|}}}}}
{{Infobox|row|label=Known wins|data={{{Known_Wins|}}}}}
{{Infobox|row|label=Known top tens|data={{{Known_Top_Tens|}}}}}
}}
}}
|-
|-
{{#if:{{{family|}}}|
{{!}} '''Family'''
{{!}} {{{family}}}
}}
|-
{{#if:{{{relatives|}}}|
{{!}} '''Relatives'''
{{!}} {{{relatives}}}
}}
|-
{{#if:{{{spouse|}}}|
{{!}} '''Spouse'''
{{!}} {{{spouse}}}
}}
|-
{{#if:{{{significant_other|}}}|
{{!}} '''Significant other'''
{{!}} {{{significant_other}}}
}}
|-
{{#if:{{{home|}}}|
{{!}} '''Home'''
{{!}} {{{home}}}
}}
|-
{{#if:{{{nationality|}}}|
{{!}} '''Nationality'''
{{!}} {{{nationality}}}
}}
|-
{{#if:{{{birthday|}}}|
{{!}} '''Birthday'''
{{!}} {{{birthday}}}
}}
|-
{{#if:{{{license_plate|}}}|
{{!}} '''License plate'''
{{!}} {{{license_plate}}}
}}
|}
|- class="infobox-section"
| colspan="2" style="padding:0 !important" |
{| class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0"
! colspan="2" {{#if: {{{boxcolor|}}}|class="infobox-{{{boxcolor|}}}" |}} style="text-align: center;line-height: 1.5;padding: 5px;" {{!}} Technical details
|- id="technicals"
{{#if:{{{body|}}}|
{{!}} '''Body'''
{{!}} {{{body}}}
}}
|-
{{#if:{{{chassis|}}}|
{{!}} '''Chassis'''
{{!}} {{{chassis}}}
}}
|-
{{#if:{{{top_speed|}}}|
{{!}} '''Top speed'''
{{!}} {{{top_speed}}}
}}
|-
{{#if:{{{start_time|}}}|
{{!}} '''Start time'''
{{!}} {{{start_time}}}
}}
|-
{{#if:{{{engine|}}}|
{{!}} '''Engine'''
{{!}} {{{engine}}}
}}
|-
{{#if:{{{horsepower|}}}|
{{!}} '''Horsepower'''
{{!}} {{{horsepower}}}
}}
|}
|- class="infobox-section" id="racer-section"
| colspan="2" style="padding:0 !important" |
{| class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0"
! colspan="2" {{#if: {{{boxcolor|}}}|class="infobox-{{{boxcolor|}}}" |}} style="background-color:#0d408a;text-align: center;line-height: 1.5;padding: 5px;" {{!}} [[File:Piston Cup Red.png|22px]] [[Piston Cup Racing Series|<span style="color:#fad047">Piston Cup Series</span>]] career
|-
{{#if:{{{Total_Cup_Races|}}}|
{{!}} '''{{{Total_Cup_Races|}}} races won over {{{Years_In_Cup|}}} years '''
{{!}} {{{Total_Cup_Races}}}
}}
|-
{{#if:{{{Best_Cup_Pos|}}}|
{{!}} '''Best Cup position'''
{{!}} {{{Best_Cup_Pos}}}
}}
|-
{{#if:{{{First_Cup_Race|}}}|
{{!}} '''First race'''
{{!}} {{{First_Cup_Race}}}
}}
|-
{{#if:{{{Last_Cup_Race|}}}|
{{!}} '''Last race'''
{{!}} {{{Last_Cup_Race}}}
}}
|-
{{#if:{{{First_Cup_Win|}}}|
{{!}} '''First win'''
{{!}} {{{First_Cup_Win}}}
}}
|-
{{#if:{{{Last_Cup_Win|}}}|
{{!}} '''Last win'''
{{!}} {{{Last_Cup_Win}}}
}}
|-
{{#if:{{{Known Wins|}}}|
{{!}} '''Known wins'''
{{!}} {{{Known Wins|}}}
}}
|-
{{#if:{{{Known_Top_Tens|}}}|
{{!}} '''Known top tens'''
{{!}} {{{Known_Top_Tens|}}}
}}
|}
{{#if:{{{turntable|}}}|{{!}}- id="turntable" class="infobox-section"
{{#if:{{{turntable|}}}|{{!}}- id="turntable" class="infobox-section"
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0"
{{{!}} class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0"
! colspan="2" {{#if: {{{boxcolor|}}}|class="infobox-{{{boxcolor|}}}" |}}style="text-align: center;line-height: 1.5;padding: 5px;" {{!}} Turntable
! colspan="2" style="text-align: center;line-height: 1.5;padding: 5px;{{#if:{{{title_color|}}}|background-color:{{{title_color|}}}; color:{{{text_color|}}}|}}{{!}} Turntable
{{!}}-
{{!}}-
{{!}}colspan="2" style="background: linear-gradient(to bottom,#717776 0,#717372 50%,#626463 96%,#333 100%);"{{!}} {{{turntable|}}}
{{!}}colspan="2" style="background: linear-gradient(to bottom,#717776 0,#717372 50%,#626463 96%,#333 100%);"{{!}} {{{turntable|}}}
Line 195: Line 74:
==Usage==
==Usage==
In addition to the basic parameters under the title section, there are three additional "groups" of values, organized into collapsible sections. Each header will ''not'' appear unless one or more of its respective parameters are defined. (In other words, they will automatically appear when you need them, and vice versa).
In addition to the basic parameters under the title section, there are three additional "groups" of values, organized into collapsible sections. Each header will ''not'' appear unless one or more of its respective parameters are defined. (In other words, they will automatically appear when you need them, and vice versa).
<div class="syntax">
{{Syntax table|style="width:70%"|header_style="background-color:#10747D; color:white"}}
{{Syntax table|style="width:70%"|header_style="background-color:#10747D; color:white"}}
|-
|-
Line 334: Line 215:
|Last_Cup_Win=
|Last_Cup_Win=
}}
}}
</pre>
</pre></div>
{{Br}}<references />
{{Br}}<references />
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>