Template:Character infobox: Difference between revisions
Jump to navigation
Jump to search
no edit summary
![]() RodRedlineM1 (talk | contribs) |
![]() RodRedlineM1 (talk | contribs) |
||
(44 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{# | <noinclude>{{#cargo_declare:_table=Characters | ||
{| | |Name=Wikitext | ||
|Image=File | |||
{{Infobox image|image={{{image|}}}}} | }}</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:{{{ | {{#if: {{{orthos|}}} | {{!}} colspan="2" class="var-parent-cell" style="padding:2px 0;" {{!}} {{{orthos|}}} | ||
{{!}}-|}} | |||
{{!}} | |||
{{!}} | |||
{{!}} | |||
}} | |||
|- | |- | ||
{{#if:{{{ | {{Infobox|row|label=Vehicle type|data={{{make|}}}}} | ||
{{ | {{Infobox|row|label=Color|data={{{color|}}}}} | ||
{{ | {{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|}}} | {{Smallnote|({{{first_year|}}})}} |}}}} | |||
{{Infobox|row|label=Latest appearance|data={{{latest_appearance|}}}{{#if: {{{latest_year|}}} | {{Smallnote|({{{latest_year|}}})}} |}}}} | |||
|- | |- | ||
{{#if:{{{ | {{Infobox|section|id=charinfo-section|name=Character information|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries= | ||
{{ | {{Infobox|row|label=Full name|data={{{full name|}}}}} | ||
{{ | {{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:{{{ | {{Infobox|section|id=technicals|name=Technical details|other={{#if: {{{title_color|}}} |style=background-color:{{{title_color|#000}}};color:{{{text_color|#fff}}}|}}|entries= | ||
{{ | {{Infobox|row|label=Body|data={{{body|}}}}} | ||
{{ | {{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= | ||
{{ | {{Infobox|row|label={{{Total_Cup_Races|}}} races won over {{{Years_In_Cup|}}} years|data={{{Total_Cup_Races|}}}}} | ||
{{ | {{Infobox|row|label=Best Cup position|data={{{Best_Cup_Pos|}}}}} | ||
{{ | {{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:{{{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: {{{ | ! 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|}}} | ||
{{!}}}|}} | {{!}}}|}} | ||
|} | {{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> |