Template:Character infobox: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
 
(43 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}}}} }} |}}<div class="infobox-wrapper"><div class="infobox-inner-wrapper">
<noinclude>{{#cargo_declare:_table=Characters
{| class="infobox" id="character" cellspacing="0"
|Name=Wikitext
! id="infobox-title" colspan="2" {{#if: {{{boxcolor|}}} |class="infobox-{{{boxcolor|}}}"|}}| {{{name|{{PAGENAME}}}}}
|Image=File
{{Infobox image|image={{{image|}}}|image_size={{{image_size|}}}|image_style={{{image_style}}}|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|}}}
{{!}}-|}}
{{!}}-|}}
|-
|-
Line 10: Line 16:
{{!}}-|}}
{{!}}-|}}
|-
|-
{{#if:{{{make|}}}|
{{#if: {{{orthos|}}} | {{!}} colspan="2" class="var-parent-cell" style="padding:2px 0;" {{!}} {{{orthos|}}}
{{!}} '''Vehicle type'''
{{!}}-|}}
{{!}} {{{make}}}
}}
|-
{{#if:{{{color|}}}|
{{!}} '''Color'''
{{!}} {{{color}}}
}}
|-
{{#if:{{{occupation|}}}|
{{!}} '''Occupation'''
{{!}} {{{occupation}}}
}}
|-
{{#if:{{{performer|}}}|
{{!}} '''Main portrayer(s)'''
{{!}} {{{performer}}}
}}
|-
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}{{#if: {{{first_year|}}} | &nbsp;{{Smallnote|({{{first_year|}}})}} |}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}{{#if: {{{latest_year|}}} | &nbsp;{{Smallnote|({{{latest_year|}}})}} |}}
}}
|- class="infobox-section" id="charinfo-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;" {{!}} Character information
|-
{{#if:{{{full name|}}}|
{{!}} '''Full name'''
{{!}} {{{full name}}}
}}
|-
{{#if:{{{nicknames|}}}|
{{!}} '''Nicknames'''
{{!}} {{{nicknames}}}
}}
|-
{{#if:{{{aliases|}}}|
{{!}} '''Aliases'''
{{!}} {{{aliases}}}
}}
|-
{{#if:{{{gender|}}}|
{{!}} '''Gender'''
{{!}} {{{gender}}}
}}
|-
{{#if:{{{title|}}}|
{{!}} '''Title'''
{{!}} {{{title}}}
}}
|-
{{#if:{{{affiliation|}}}|
{{!}} '''Affiliation'''
{{!}} {{{affiliation}}}
}}
|-
{{#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|}}}|
{{Infobox|row|label=Vehicle type|data={{{make|}}}}}
{{!}} '''Last race'''
{{Infobox|row|label=Color|data={{{color|}}}}}
{{!}} {{{Last_Cup_Race}}}
{{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:{{{First_Cup_Win|}}}|
{{Infobox|section|id=charinfo-section|name=Character information|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries=
{{!}} '''First win'''
{{Infobox|row|label=Full name|data={{{full name|}}}}}
{{!}} {{{First_Cup_Win}}}
{{Infobox|row|label=Nickname(s)|data={{{nicknames|}}}}}
{{Infobox|row|label=Alias(es)|data={{{aliases|}}}}}
{{Infobox|row|label=Gender|data={{{gender|}}}}}
{{Infobox|row|label=Title|data={{{title|}}}}}
{{Infobox|row|label=Affiliation|data={{{affiliation|}}}}}
{{Infobox|row|label=Family|data={{{family|}}}}}
{{Infobox|row|label=Relatives|data={{{relatives|}}}}}
{{Infobox|row|label=Spouse|data={{{spouse|}}}}}
{{Infobox|row|label=Significant other|data={{{significant_other|}}}}}
{{Infobox|row|label=Home|data={{{home|}}}}}
{{Infobox|row|label=Nationality|data={{{nationality|}}}}}
{{Infobox|row|label=Birthday|data={{{birthday|}}}}}
{{Infobox|row|label=License plate|data={{{license_plate|}}}}}
}}
}}
|-
|-
{{#if:{{{Last_Cup_Win|}}}|
{{Infobox|section|id=technicals|name=Technical details|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries=
{{!}} '''Last win'''
{{Infobox|row|label=Body|data={{{body|}}}}}
{{!}} {{{Last_Cup_Win}}}
{{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:{{{Known Wins|}}}|
{{Infobox|row|label={{{Total_Cup_Races|}}} races won over {{{Years_In_Cup|}}} years|data={{{Total_Cup_Races|}}}}}
{{!}} '''Known wins'''
{{Infobox|row|label=Best Cup position|data={{{Best_Cup_Pos|}}}}}
{{!}} {{{Known Wins|}}}
{{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:{{{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|}}}
{{!}}}|}}
{{!}}}|}}
|}</div></div><noinclude>{{Br}}
{{Infobox|end}}<noinclude>{{Br}}
A '''character infobox''' is used at the top of [[:Category:Characters|character articles]] to display quick, overview-esque information about a character. By nature, this is one of the most popular and frequently-used templates on the wiki: Please read the guidelines below for instructions and policies for using this template.
A '''character infobox''' is used at the top of [[:Category:Characters|character articles]] to display quick, overview-esque information about a character. By nature, this is one of the most popular and frequently-used templates on the wiki: Please read the guidelines below for instructions and policies for using this template.


==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 345: Line 215:
|Last_Cup_Win=
|Last_Cup_Win=
}}
}}
</pre>
</pre></div>
{{Br}}<references />
{{Br}}<references />
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 03:59, 6 July 2024

This template defines the table "Characters". View table.

Character infobox

A character infobox is used at the top of character articles to display quick, overview-esque information about a character. By nature, this is one of the most popular and frequently-used templates on the wiki: Please read the guidelines below for instructions and policies for using this template.

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).

Syntax
name= Infobox title; defaults to pagename
image= Artwork, screenshot, or some other representation of the character. Generally preferable in that order of priority.
caption= Image caption, should describe the image's atttribution and/or relevance to the subject
make= The vehicle's make and model; if conflicts between sources, combine information and if conflicting, use common name principle to work out a priority. Contradictions should be stated (and cited) elsewhere on the article.
color= Should always be their primary/most common paint (or otherwise physically defining) color; Do not list temporary or secondary styles unless overwhelmingly significant to the character and/or series. (If this "changes frequently,"[1]per a character like Ramone, the value should be entered as such)
|occupation= Description of role or profession
|first_appearance= The character's first media appearance within the Cars franchise.
|latest_appearance The character's latest (most recent) media appearance within the Cars franchise.
Character information
full name= A longer or more complete version of the character's name, if not already displayed in the title due to common name practice. Nearly always requires a citation.
nicknames= Repeatedly-used and significant nicknames coined by other characters. Do not add insults or one-time jokes.
aliases= Assumed and/or additional names used or defined by the character. Nicknames, insults, or descriptive terms used by other characters are not aliases. Likewise, alternate in-universe names (or spellings of) provided by out-of-universe publications (i.e. official encyclopedias and reference materials) are not to be placed here either; These should be documented and described in writing (or another format) on the article itself.
gender= Use only if not immediately obvious (if the article makes use of pronoun's to describe a character)
title= Formal titles earned/given to the character
affiliation=
family=
relatives= Non-immediate family members
spouse=
|significant_other=
Choose which applies
home=
nationality= Country of origin
birthday= Rarely (almost never) used -- only when plainly, objectively stated (i.e. Mater's passport in Cars 2}}). A character's "vehicle type" year should not be placed here.
Technical information
|body=
|chassis=
|top_speed= Only official stats provided by Disney/Pixar are accepted, and must be cited accordingly. Do not add speculative values based on in- or out-of-universe explications.
|start_time=
|engine=
|horsepower=
Piston Cup Series career
|Years_In_Cup Known seasons competed (use "at least" etc., do not make assumptions)
|Best_Cup_Pos= Best known overall season (not individual race) placement
|First_Cup_Race= First ever cup race: Only put if this event is specifically stated as the character's first, not simply the earliest known one.
|Last_Cup_Race= Last ever cup race (see above entry)
|First_Cup_Win= First ever Cup/season win (see above entries)
|Last_Cup_Win= Last ever Cup/season win (see above entries)
{{Character infobox
|name=
|image=
|caption=
|make=
|color=
|occupation=
|performer=
|first_appearance=
|latest_appearance
|full name=
|nicknames=
|aliases=
|gender=
|title=
|affiliation=
|family=
|relatives=
|spouse=
|significant_other=
|home=
|nationality=
|birthday=
|body=
|chassis=
|top_speed=
|start_time=
|engine=
|horsepower=
|Total_Cup_Races=
|Years_In_Cup=
|Best_Cup_Pos=
|First_Cup_Race=
|Last-Cup_Race=
|First_Cup_Win=
|Last_Cup_Win=
}}