Difference between revisions of "Template:Infobox F1 constructor"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(typos, but better to convert this to use template:infobox)
imported>Frietjes
(convert to infobox)
Line 1: Line 1:
{| class="infobox" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em"
+
{{infobox
|+ '''{{{Short_name}}}''' ''as a Formula One constructor''
+
| bodyclass = vcard
|-
+
 
{{#if:{{{Logo|}}}|
+
| title = <includeonly>{{ifempty|{{{name|}}}|{{{Short_name|}}}|{{PAGENAME}}}} ''as a Formula One constructor''</includeonly>
{{!}} colspan=2 style="text-align: center" {{!}} {{{Logo}}}
+
 
{{!}}-
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{Logo|}}}}}}|sizedefault=frameless}}
}}
+
 
{{#if:{{{Official_name|}}}|
+
| headerstyle = background-color: gainsboro;
!style="text-align: left" {{!}} Official name/s
+
 
{{!}} {{{Official_name}}}
+
| label1  = Official {{nowrap|name(s)}}
{{!}}-
+
| data1    = {{{official_name|{{{Official_name|}}}}}}
}}
+
| class1  = fn org
{{#if:{{{Base|}}}|
+
| label2  = Base
!style="text-align: left" {{!}} Base
+
| data2    = {{{base|{{{Base|}}}}}}
{{!}} {{{Base}}}
+
| class2  = label
{{!}}-
+
| label3  = {{nowrap|Founder(s)}}
}}
+
| data3    = {{{founders|{{{Founders|{{{Founder/s|}}}}}}}}}
{{#if:{{{Founder/s|}}}|
+
| class3  = agent
!style="text-align: left" {{!}} Founder/s
+
| label4  = Notable staff
{{!}} {{{Founder/s}}}
+
| data4    = {{{staff|{{{Staff|}}}}}}
{{!}}-
+
| class4  = agent
}}
+
 
{{#if:{{{Staff|}}}|
+
| header10 = {{#if:{{{engines|{{{Engines|}}}}}}{{{entrants|{{{Entrants|}}}}}}{{{debut|{{{Debut|}}}}}}{{{final_race|{{{Final_race|}}}}}}{{{races|{{{Races|}}}}}}{{{wins|{{{Wins|}}}}}}{{{cons_champ|{{{Cons_champ|}}}}}}{{{drivers_champ|{{{Drivers_champ|}}}}}}{{{poles|{{{Poles|}}}}}}{{{fastest_laps|{{{Fastest_laps|}}}}}}|[[Formula One]] World Championship career}}
!style="text-align: left" {{!}} Notable staff
+
 
{{!}} {{{Staff}}}
+
| label11  = Engines
{{!}}-
+
| data11  = {{{engines|{{{Engines|}}}}}}
}}
+
| label12  = Entrants
! colspan=2 style="text-align:center; background-color: gainsboro" | [[Formula One]] World Championship career
+
| data12  = {{{entrants|{{{Entrants|}}}}}}
|-
+
| label13  = Debut
{{#if:{{{Engines|}}}|
+
| data13  = {{{debut|{{{Debut|}}}}}}
!style="text-align: left" {{!}} Engines
+
| label14  = Final race
{{!}} {{{Engines}}}
+
| data14  = {{{final_race|{{{Final_race|}}}}}}
{{!}}-
+
| label15  = Races competed
}}
+
| data15  = {{{races|{{{Races|}}}}}}
!style="text-align: left" | Entrants
+
| label16  = Race victories
| {{{Entrants}}}
+
| data16  = {{{wins|{{{Wins|}}}}}}
|-
+
| label17  = [[List of Formula One World Constructors' Champions|Constructors' Championships]]
!style="text-align: left" | Debut
+
| data17  = {{{cons_champ|{{{Cons_champ|}}}}}}
| {{{Debut}}}
+
| label18  = [[List of Formula One World Drivers' Champions|Drivers'<br> Championships]]
|-
+
| data18  = {{{drivers_champ|{{{Drivers_champ|}}}}}}
!style="text-align: left" | Final race
+
| label19  = [[Pole position]]s
| {{{Final_race}}}
+
| data19  = {{{poles|{{{Poles|}}}}}}
|-
+
| label20  = [[Fastest lap]]s
!style="text-align: left" | Races competed
+
| data20  = {{{fastest_laps|{{{Fastest_laps|}}}}}}
| {{{Races}}}
+
}}<noinclude>
|-
+
{{documentation}}<!-- category links go on /doc -->
!style="text-align: left" | Race victories
+
</noinclude>
| {{{Wins}}}
 
|-
 
{{#if:{{{Cons_champ|}}}|
 
!style="text-align: left" {{!}} [[List of Formula One World Constructors' Champions|Constructors' Championships]]
 
{{!}} {{{Cons_champ}}}
 
{{!}}-
 
}}
 
{{#if:{{{Drivers_champ|}}}
 
!style="text-align: left" {{!}} [[List of Formula One World Drivers' Champions|Drivers'<br> Championships]]
 
{{!}} {{{Drivers_champ}}}
 
{{!}}-
 
}}
 
!style="text-align: left" | [[Pole position]]s
 
| {{{Poles}}}
 
|-
 
!style="text-align: left" | [[Fastest lap]]s
 
| {{{Fastest_laps}}}
 
|}<noinclude>{{doc}}<!-- category and interwiki links go on /doc --></noinclude>
 

Revision as of 14:10, 4 June 2014

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

This infobox is used:

Usage

Script error: No such module "If empty". as a Formula One constructor
[[File:{{{logo}}}|frameless]]
Official name(s){{{official_name}}}
Base{{{base}}}
Founder(s){{{founders}}}
Notable staff{{{staff}}}
Formula One World Championship career
Engines{{{engines}}}
Entrants{{{entrants}}}
Debut{{{debut}}}
Final race{{{final_race}}}
Races competed{{{races}}}
Race victories{{{wins}}}
Constructors' Championships{{{cons_champ}}}
Drivers'
Championships
{{{drivers_champ}}}
Pole positions{{{poles}}}
Fastest laps{{{fastest_laps}}}
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox F1 constructor
| name          =
| logo          =
| official_name =
| base          =
| founders      =
| staff         =
| engines       =
| entrants      =
| debut         = <!-- first race *entered* -->
| final_race    = <!-- last race *entered* -->
| races         = <!-- number of races *entered* -->
| wins          =
| cons_champ    =
| drivers_champ =
| points        =
| poles         =
| fastest_laps  =
}}

See also