Difference between revisions of "Template:Infobox F1 race"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
m (File: using AWB (9268))
imported>Frietjes
(use infobox)
Line 1: Line 1:
{| class="infobox" style="width:25em; font-size:85%; text-align:left"
+
{{infobox
|+ {{#if:{{{Flag<includeonly>|</includeonly>}}}|[[File:{{{Flag}}}|20px|border]]}} '''{{{Name}}}'''
+
| bodystyle = width:25em; font-size:85%; text-align:left
|-
+
| title = {{#if:{{{flag|{{{Flag|}}}}}}|[[File:{{{flag|{{{Flag}}}}}}|20px|border]]}} {{{name|{{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}
|colspan="2" style="text-align:center"| {{{Circuit}}}
+
| subheader = {{{circuit|{{{Circuit|}}}}}}
|-
+
 
{{#if:{{{Circuit_image<includeonly>|</includeonly>}}} |
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Circuit_image|}}}}}}|size={{{image_size|{{{Image_size|}}}}}}|sizedefault=200px}}
{{!}}colspan="2" style="text-align:center"{{!}} [[File:{{{Circuit_image}}}|{{#if:{{{Image_size<includeonly>|</includeonly>}}}|{{{Image_size}}}|200px}}|]]
+
 
}}
+
| headerstyle = background-color:#99ccff
|-
+
 
|colspan="2" style="text-align:center; background-color:#99ccff"| '''Race information'''
+
| header1 = {{#if:{{{laps|{{{Laps|}}}}}}{{{circuit_length_km|{{{Circuit_length_km|}}}}}}{{{circuit_length_mi|{{{Circuit_length_mi|}}}}}}{{{race_length_km|{{{Race_length_km|}}}}}}{{{race_length_mi|{{{Race_length_mi|}}}}}}{{{times_held|{{{Times_held|}}}}}}{{{first_held|{{{First_held|}}}}}}{{{last_held|{{{Last_held|}}}}}}{{{most_wins_driver|{{{Most_wins_driver|}}}}}}{{{most_wins_constructor|{{{Most_wins_constructor|}}}}}}|Race information}}
|-
+
 
{{#if:{{{Laps<includeonly>|</includeonly>}}} |
+
| label2  =  Laps
!style="text-align:left" {{!}} Laps
+
| data2  = {{{laps|{{{Laps|}}}}}}
{{!}} {{{Laps}}}
+
 
}}
+
| label3  =  Circuit length
|-
+
| data3  = {{#if:{{{circuit_length_km|{{{Circuit_length_km|}}}}}}
!style="text-align:left" {{!}} Circuit length
+
  | {{{circuit_length_km|{{{Circuit_length_km}}}}}} km {{#if:{{{circuit_length_mi|{{{Circuit_length_mi|}}}}}}|({{{circuit_length_mi|{{{Circuit_length_mi}}}}}} mi)}}
| {{{Circuit_length_km}}} km ({{{Circuit_length_mi}}} mi)
+
  | {{#if:{{{circuit_length_mi|{{{Circuit_length_mi|}}}}}}|{{{circuit_length_mi|{{{Circuit_length_mi}}}}}} mi}}
|-
+
  }}
!style="text-align:left" {{!}} Race length
+
 
| {{{Race_length_km}}} km ({{{Race_length_mi}}} mi)
+
| label4  =  Race length
|-
+
| data4  = {{#if:{{{race_length_km|{{{Race_length_km|}}}}}}
{{#if:{{{Times_held<includeonly>|</includeonly>}}} |
+
  | {{{race_length_km|{{{Race_length_km}}}}}} km {{#if:{{{race_length_mi|{{{Race_length_mi|}}}}}} |({{{race_length_mi|{{{Race_length_mi}}}}}} mi)}}
!style="text-align:left" {{!}} Number of times held
+
  | {{#if:{{{race_length_mi|{{{Race_length_mi|}}}}}} | {{{race_length_mi|{{{Race_length_mi}}}}}} mi }}
{{!}} {{{Times_held}}}
+
  }}
}}
+
| label5  =  Number of times held
|-
+
| data5  = {{{times_held|{{{Times_held|}}}}}}
{{#if:{{{First_held<includeonly>|</includeonly>}}} |
+
 
!style="text-align:left" {{!}} First held
+
| label6  =  First held
{{!}}[[{{{First_held}}} {{{First_race|{{PAGENAME}}}}}|{{{First_held}}}]]
+
| data6  = {{#if:{{{first_held|{{{First_held|}}}}}}|[[{{{first_held|{{{First_held}}}}}} {{{first_race|{{{First_race|{{PAGENAME}}}}}}}}|{{{first_held|{{{First_held}}}}}}]]}}
}}
+
 
|-
+
| label7  =  Last held
{{#if:{{{Last_held<includeonly>|</includeonly>}}} |
+
| data7  = {{#if:{{{last_held|{{{Last_held|}}}}}} |[[{{{last_held|{{{Last_held}}}}}} {{{last_race|{{{Last_race|{{PAGENAME}}}}}}}}|{{{last_held|{{{Last_held}}}}}}]]}}
!style="text-align:left" {{!}} Last held
+
 
{{!}}[[{{{Last_held}}} {{PAGENAME}}|{{{Last_held}}}]]
+
| label8  = Most wins (drivers)
}}
+
| data8  = {{{most_wins_driver|{{{Most_wins_driver|}}}}}}
|-
+
 
{{#if:{{{Most_wins_driver<includeonly>|</includeonly>}}} |
+
| label9  = Most wins (constructors)
!style="text-align:left" {{!}} Most wins (drivers)
+
| data9  = {{{most_wins_constructor|{{{Most_wins_constructor|}}}}}}
{{!}} {{{Most_wins_driver}}}
+
 
}}
+
| header10 = {{#if:{{{current_year|{{{Current_year|}}}}}}|Last race ([[{{{current_year|{{{Current_year}}}}}} {{PAGENAME}}|{{{current_year|{{{Current_year}}}}}}]]):}}
|-
+
 
{{#if:{{{Most_wins_constructor<includeonly>|</includeonly>}}} |
+
| label11  =  Pole position
!style="text-align:left" {{!}} Most wins (constructors)
+
| data11  = {{#if:{{{current_year|{{{Current_year|}}}}}}| {{br separated entries
{{!}} {{{Most_wins_constructor}}}
+
| 1 = {{{pole_driver|{{{Pole_driver|}}}}}}
}}
+
| 2 = {{{pole_team|{{{Pole_team|}}}}}}
|-
+
| 3 = {{{pole_time|{{{Pole_time|}}}}}}
{{#if:{{{Current_year<includeonly>|</includeonly>}}} |
+
}} }}
{{!}}colspan="2" style="text-align:center; background-color:#99ccff"{{!}}'''Last race ([[{{{Current_year}}} {{PAGENAME}}|{{{Current_year}}}]]):'''
+
 
{{!}}-
+
| label12  =  Podium
!style="text-align:left" {{!}} Pole position
+
| data12  = {{#if:{{{current_year|{{{Current_year|}}}}}}| {{unbulleted list
{{!}} {{{Pole_driver}}} <br> {{{Pole_team}}} <br> {{{Pole_time}}}
+
  | 1 = {{#if:{{{winner|{{{Winner|}}}}}}| {{br separated entries
{{!}}-
+
    | 1 = '''1.''' {{{winner|{{{Winner}}}}}}
!style="text-align:left" {{!}} Podium
+
    | 2 = {{{winning_team|{{{Winning_team|}}}}}}
{{!}} '''1.''' {{{Winner}}} <br> {{{Winning_team}}} <br> {{{Winning_time}}} {{#if:{{{Second|}}}|<br> '''2.''' {{{Second}}} <br> {{{Second_team}}} <br> {{{Second_time}}} }} {{#if:{{{Third|}}}|<br> '''3.''' {{{Third}}} <br> {{{Third_team}}} <br> {{{Third_time}}} }}
+
    | 3 = {{{winning_time|{{{Winning_time|}}}}}}
{{!}}-
+
    }} }}
!style="text-align:left" {{!}} Fastest lap
+
  | 2 = {{#if:{{{second|{{{Second|}}}}}}| {{br separated entries
{{!}} {{{Fastest_lap_driver}}} <br> {{{Fastest_lap_team}}} <br> {{{Fastest_lap}}}
+
    | 1 = '''2.''' {{{second|{{{Second}}}}}}
}}
+
    | 2 = {{{second_team|{{{Second_team|}}}}}}
|}<noinclude>
+
    | 3 = {{{second_time|{{{Second_time|}}}}}}  
[[Category:Formula One infobox templates|F1 race]]
+
    }} }}
[[es:Plantilla:Ficha de carrera de Fórmula 1]]
+
  | 3 = {{#if:{{{third|{{{Third|}}}}}}| {{br separated entries
 +
    | 1 = '''3.''' {{{third|{{{Third}}}}}}
 +
    | 2 = {{{third_team|{{{Third_team|}}}}}}
 +
    | 3 = {{{third_time|{{{Third_time|}}}}}}
 +
    }} }}
 +
  }}
 +
  }}
 +
 
 +
| label13  = Fastest lap
 +
| data13  = {{#if:{{{current_year|{{{Current_year|}}}}}}| {{br separated entries
 +
  | 1 = {{{fastest_lap_driver|{{{Fastest_lap_driver|}}}}}}
 +
  | 2 = {{{fastest_lap_team|{{{Fastest_lap_team|}}}}}}
 +
  | 3 = {{{fastest_lap|{{{Fastest_lap|}}}}}}
 +
  }} }}
 +
 
 +
}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 18:15, 16 June 2013

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

Usage

[[File:{{{flag}}}|20px|border]] {{{name}}}
{{{circuit}}}
[[File:{{{image}}}|{{{image_size}}}]]
Race information
Laps{{{laps}}}
Circuit length{{{circuit_length_km}}} km ({{{circuit_length_mi}}} mi)
Race length{{{race_length_km}}} km ({{{race_length_mi}}} mi)
Number of times held{{{times_held}}}
First held[[{{{first_held}}} {{{first_race}}}|{{{first_held}}}]]
Last held[[{{{last_held}}} {{{last_race}}}|{{{last_held}}}]]
Most wins (drivers){{{most_wins_driver}}}
Most wins (constructors){{{most_wins_constructor}}}
Last race ([[{{{current_year}}} Infobox F1 race|{{{current_year}}}]]):
Pole position{{{pole_driver}}}
{{{pole_team}}}
{{{pole_time}}}
Podium
  • 1. {{{winner}}}
    {{{winning_team}}}
    {{{winning_time}}}
  • 2. {{{second}}}
    {{{second_team}}}
    {{{second_time}}}
  • 3. {{{third}}}
    {{{third_team}}}
    {{{third_time}}}
Fastest lap{{{fastest_lap_driver}}}
{{{fastest_lap_team}}}
{{{fastest_lap}}}
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox F1 race
| name =
| flag =
| circuit =
| image = <!-- Circuit image -->
| image_size = <!-- default is 200px -->
| laps =
| circuit_length_km =
| circuit_length_mi =
| race_length_km =
| race_length_mi =
| times_held =
| first_held = <!-- use | first_race = to override linking -->
| last_held = <!-- use | last_race = to override linking -->
| most_wins_driver =
| most_wins_constructor =
<!-- Current season information -->
| current_year = <!-- use | current_race = to override linking -->
| pole_driver =
| pole_team =
| pole_time =
| winner =
| winning_team =
| winning_time =
| second =
| second_team =
| second_time =
| third =
| third_team =
| third_time =
| fastest_lap_driver =
| fastest_lap_team =
| fastest_lap =
}}

See also