Difference between revisions of "Template:Tracks infobox"

From GPVWC Wiki
Jump to: navigation, search
(try different style)
Line 1: Line 1:
{| class="toccolours" cellspacing=1 style="float:right; margin:7px; width:300px; font-size:90%; text-align:left;"
+
{| class="infobox" style="width:25em; font-size:85%; text-align:left"
|+ style="font-size:larger;"|{{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
+
|+ {{#if:{{{Flag<includeonly>|</includeonly>}}}|[[Image:{{{Flag}}}|20px|border]]}} '''{{{Name}}}'''
 
|-
 
|-
!width="85px"|Location
+
|colspan="2" style="text-align:center"| {{{Circuit}}}
| {{{Location}}}
+
 
|-
 
|-
| colspan=2 align="center" | {{{Image}}}
+
{{#if:{{{Circuit_image<includeonly>|</includeonly>}}} |
 +
{{!}}colspan="2" style="text-align:center"{{!}} [[Image:{{{Circuit_image}}}|{{#if:{{{Image_size<includeonly>|</includeonly>}}}|{{{Image_size}}}|200px}}|]]
 +
}}
 
|-
 
|-
! Time Zone
+
|colspan="2" style="text-align:center; background-color:#99ccff"| '''Race information'''
| {{{Time}}}
+
|-
 +
{{#if:{{{Laps<includeonly>|</includeonly>}}} |
 +
! Laps
 +
{{!}} {{{Laps}}}
 +
}}
 
|-
 
|-
 
! Circuit length
 
! Circuit length
| {{{Length_mi}}} miles {{{Length_km}}} km  
+
| {{{Circuit_length_km}}} km ({{{Circuit_length_mi}}} mi)
 +
|-
 +
! Race length
 +
| {{{Race_length_km}}} km ({{{Race_length_mi}}} mi)
 +
|-
 +
{{#if:{{{Times_held<includeonly>|</includeonly>}}} |
 +
! Number of times held
 +
{{!}} {{{Times_held}}}
 +
}}
 +
|-
 +
{{#if:{{{First_held<includeonly>|</includeonly>}}} |
 +
! First held
 +
{{!}}[[{{{First_held}}} {{{First_race|{{PAGENAME}}}}}|{{{First_held}}}]]
 +
}}
 
|-
 
|-
! Type
+
{{#if:{{{Last_held<includeonly>|</includeonly>}}} |
| {{{Type}}}
+
! Last held
 +
{{!}}[[{{{Last_held}}} {{PAGENAME}}|{{{Last_held}}}]]
 +
}}
 
|-
 
|-
! Surface
+
{{#if:{{{Most_wins_driver<includeonly>|</includeonly>}}} |
| {{{Surface}}}
+
! Most wins (drivers)
 +
{{!}} {{{Most_wins_driver}}}
 +
}}
 
|-
 
|-
! Turns
+
{{#if:{{{Most_wins_constructor<includeonly>|</includeonly>}}} |
| {{{Turns}}}
+
! Most wins (constructors)
 +
{{!}} {{{Most_wins_constructor}}}
 +
}}
 
|-
 
|-
! Lap record
+
{{#if:{{{Current_year<includeonly>|</includeonly>}}} |
| {{{Record_time}}}<br>{{{Record_driver}}},<br> {{{Record_team}}}, {{{Record_year}}}
+
{{!}}colspan="2" style="text-align:center; background-color:#99ccff"{{!}}'''Last race ([[{{{Current_year}}} {{PAGENAME}}|{{{Current_year}}}]]):'''
 +
{{!}}-
 +
! Pole position
 +
{{!}} {{{Pole_driver}}} <br> {{{Pole_team}}} <br> {{{Pole_time}}}
 +
{{!}}-
 +
! Podium
 +
{{!}} '''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}}} }}
 +
{{!}}-
 +
! Fastest lap
 +
{{!}} {{{Fastest_lap_driver}}} <br> {{{Fastest_lap_team}}} <br> {{{Fastest_lap}}}
 +
}}
 
|}
 
|}
<noinclude>
 
[[Category:Infoboxes|{{PAGENAME}}]]
 
</noinclude>
 

Revision as of 02:15, 27 May 2011

{{#if:{{{Circuit_image}}} | {{#if:{{{Laps}}} | {{#if:{{{Times_held}}} | {{#if:{{{First_held}}} | {{#if:{{{Last_held}}} | {{#if:{{{Most_wins_driver}}} | {{#if:{{{Most_wins_constructor}}} | {{#if:{{{Current_year}}} |
[[Image:{{{Flag}}}|20px|border]]}} {{{Name}}}
{{{Circuit}}}
[[Image:{{{Circuit_image}}}|{{#if:{{{Image_size}}}|{{{Image_size}}}|200px}}|]]

}}

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}}} Tracks infobox|{{{First_held}}}]]

}}

Last held [[{{{Last_held}}} Tracks infobox|{{{Last_held}}}]]

}}

Most wins (drivers) {{{Most_wins_driver}}}

}}

Most wins (constructors) {{{Most_wins_constructor}}}

}}

Last race ([[{{{Current_year}}} Tracks infobox|{{{Current_year}}}]]):
Pole position {{{Pole_driver}}}
{{{Pole_team}}}
{{{Pole_time}}}
Podium
2. {{{Second}}}
{{{Second_team}}}
{{{Second_time}}} }} {{#if:|
3. {{{Third}}}
{{{Third_team}}}
{{{Third_time}}} }}
Fastest lap {{{Fastest_lap_driver}}}
{{{Fastest_lap_team}}}
{{{Fastest_lap}}}

}}