Jump to content

Template:Infobox NASCAR race report and Template:Infobox NASCAR race report/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
>Cs-wolves
Option for multiple teams for most laps led.
 
>Frietjes
No edit summary
 
Line 1: Line 1:
{{infobox3cols
{| class="infobox vevent" style="width: 27em; font-size: 88%; line-height: 1.5em"
| bodyclass = vevent
|+ style="font-size: 125%; font-weight: bold" | <span class="summary">{{{Year|{{{year}}}}}} {{{Race Name}}} </span>
| bodystyle = width: 28em; line-height: 1.5em;
|-
| titlestyle = font-size: 125%;
!colspan="3" style="background-color:#efefef;text-align:center;"| Race details{{#if:{{{Details ref|}}} | {{{Details ref}}} }}
| title = <includeonly><span class="summary">{{{Year|{{{year}}}}}} {{{Race_Name|{{{Race Name}}}}}} </span></includeonly>
|-
| abovestyle = font-size:100%; background-color:#efefef;color:inherit;
|colspan="3" style="text-align:center;"| <!--
| above = <includeonly>Race details{{{Details_ref|{{{Details ref|}}}}}}</includeonly>
| subheader = <!--
  -->{{#switch:{{{Type}}}
  -->{{#switch:{{{Type}}}
  |NASCS = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Cup Series]]
  |NAS = <small class="description">Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Sprint Cup Series]] season</small>
|NAS = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Sprint Cup Series]]
  |NASNEX = <small class="description">Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Nextel Cup Series]] season</small>
  |NASNEX = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Nextel Cup Series]]
  |NASWINSTON = <small class="description">Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Winston Cup Series]] season</small>
  |NASWINSTON = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Winston Cup Series]]
  |CUST = <small class="description">{{{Description}}}</small>
  |NASME = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} Monster Energy NASCAR Cup Series]]
|NASXFIN = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Xfinity Series]]
|ARCAM = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} ARCA Menards Series]]
|ARCAME = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} ARCA Menards Series East]]
|ARCAMW = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} ARCA Menards Series West]]
|CUST = {{{Description}}}
  }}
  }}
{{#if:{{{Image|}}}|
{{!}}-
{{!}} colspan="3" style="text-align: center;" {{!}} [[Image:{{{Image|}}}{{!}}{{{image-size|180px}}}{{!}}{{{Caption|}}}{{#if:{{{image-alt|}}}|{{!}}alt={{{image-alt}}}|}}]]{{#if:{{{Caption|}}}|<br />{{{Caption|}}}}}
}}
{{#if:{{{Date|{{{date|}}}}}}|
{{!}}-
{{!}} style="width: 20%;" {{!}} '''Date'''
{{!}} {{#formatdate:{{{Date|{{{date|}}}}}} {{{Year|{{{year}}}}}}}}
}}
{{#if:{{{Fulldate|}}}|
{{!}}-
{{!}} style="width: 20%;" {{!}} '''Date'''
{{!}} {{{Fulldate}}}
}}
|-
| '''Location'''
|colspan=2 class="location"| {{{Location|{{{location}}}}}}
|-
| '''Course'''
|colspan=2| {{{Course|Permanent racing facility}}} <br> {{{Course_mi}}} mi ({{{Course_km}}} km)</td></tr>
|-
|'''Distance'''
|colspan="2"| {{{Distance_laps}}} laps, {{{Distance_mi}}} mi ({{{Distance_km}}} km)</td></tr>{{#if: {{{Scheduled_laps|}}} | <tr> <td>'''Scheduled Distance'''</td><td colspan="2">{{{Scheduled_laps}}} laps, {{{Scheduled_mi}}} mi ({{{Scheduled_km}}} km)</td></tr> |}}{{#if: {{{Weather|}}} | <tr> <td>'''Weather'''</td><td colspan="2">{{{Weather}}}</td></tr> |}}
|-
{{#if:{{{Avg|{{{avg|}}}}}}|
{{!}}-
{{!}} style="width: 20%;" {{!}} '''Avg Speed'''
{{!}} {{{Avg}}}
}}
|-
!{{#if: {{{Pole_Driver|}}}| colspan="3" style="background-color:#efefef;text-align: center;"{{!}} [[Pole position]]
{{!}}-
{{!}} '''{{#if: {{{Pole_Driver2|}}}|Drivers|Driver}}'''
{{!}} <span style="white-space:nowrap;">{{{Pole_Driver}}}</span>
{{!}}<small><span style="white-space:nowrap;">{{#if: {{{Pole_Team|}}}|{{{Pole_Team}}}}}</span></small>
{{!}}-
{{#if: {{{Pole_Driver2|}}}|
{{!}}
{{!}} <span style="white-space:nowrap;">{{{Pole_Driver2}}}</span>
{{!}}
{{!}}-
}}
{{!}}{{#if: {{{Pole_Time|}}}| '''Time'''
{{!}}colspan=2{{!}} {{{Pole_Time}}}|
colspan=3 style="text-align:center;"{{!}} {{#if: {{{Grid_from_heats|}}}|'''Grid positions set by heat results'''}}{{#if: {{{Grid_from_ballot|}}}|'''Grid positions set by ballot'''}}{{#if: {{{Grid_from_number|}}}|'''Grid positions set by car number'''}}
}}
}}
|-
!{{#if: {{{Most_Driver|}}}| colspan="3" style="background-color:#efefef;text-align:center;"{{!}} Most laps led
{{!}}-
{{!}} '''{{#if: {{{Most_Driver2|}}}|Drivers|Driver}}'''
{{!}} <span style="white-space:nowrap;">{{{Most_Driver}}}</span>
{{!}}<small><span style="white-space:nowrap;">{{{Most_Team}}}</span></small>
{{!}}
{{!}}-
}}
{{!}}{{#if: {{{Most_laps|}}}| '''Laps'''
{{!}} colspan=2 {{!}} {{{Most_laps}}}
{{!}}-
}}
|-
!{{#if: {{{Car|}}}| colspan="3" style="background-color:#efefef;text-align:center;"{{!}} Winner
{{!}}-
{{!}} <span style="white-space:nowrap;">{{{Car}}}</span><br />
{{!}} <span style="white-space:nowrap;">{{{First_Driver}}}</span><br />
{{!}} <small><span style="white-space:nowrap;">{{{First_Team}}}</span></small>
}}
|-
{{#if:{{{Network|}}}{{{Announcers|}}}{{{U.S. Ratings|}}}|!colspan="3" style="background-color:#efefef;text-align:center;"{{!}} Television }}
|-
{{#if:{{{Network|}}}|{{!}}'''Network'''
{{!}}colspan=2 class="Network"{{!}} {{{Network|}}} }}
|-
{{#if:{{{Announcers|}}}|{{!}}''' Announcers'''
{{!}}colspan=2 class="Announcers"{{!}} {{{Announcers|}}} }}
|-
{{#if:{{{U.S. Ratings|}}}|{{!}}'''U.S. Ratings'''
{{!}}colspan=2 class="U.S. Ratings"{{!}} {{{U.S. Ratings|}}} }}


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size={{{image_size|{{{image-size|}}}}}}|alt={{{image_alt|{{{image-alt|}}}}}}|title={{{Caption|}}}}}
|}<noinclude>
| caption = {{{Caption|}}}


| labelstyle = width:20%;
| headerstyle = background-color:#efefef;color:inherit;
| label1 = Date
| data1 = {{#if:{{{Date|{{{date|}}}}}}
  | {{#formatdate:{{{Date|{{{date|}}}}}} {{{Year|{{{year}}}}}}}}
  | {{{Fulldate|}}}
  }}
| label3 = Official name
| data3 = {{{Official_name|{{{Official name|}}}}}}
| label4 = Location
| class4 = location
| data4 = {{{Location|{{{location|}}}}}}
| label5 = Course
| data5  = {{#if:{{{course_km|{{{Course_km|}}}}}}{{{course_length|{{{Course_length|}}}}}}| {{{course|{{{Course|Permanent racing facility}}}}}} }}
| label6 = Course length
| data6 = {{#if:{{{course_km|{{{Course_km|}}}}}}
  |{{{course_km|{{{Course_km}}}}}} km ({{{course_mi|{{{Course_mi}}}}}} miles)
  |{{{course_length|{{{Course_length|}}}}}}
  }}
| label7 = Distance
| data7 = {{#if:{{{Distance_mi|}}}{{{Distance_laps|}}}
          | {{#if:{{{Distance_laps|}}}|{{{Distance_laps}}} laps,}} {{#if:{{{Distance_mi|}}}|{{{Distance_mi}}} mi ({{{Distance_km}}} km)}}
          }}
| label8 = Scheduled distance
| data8 = {{#if:{{{Scheduled_laps|}}}{{{Scheduled_mi|}}}
          |{{#if:{{{Scheduled_laps|200}}}|{{{Scheduled_laps|200}}} laps,}} {{#if:{{{Scheduled_mi|500}}}|{{{Scheduled_mi|500}}} mi ({{{Scheduled_km|804.672}}} km)}}
          }}
| label9 = Weather
| data9 = {{{Weather|}}}
| label10 = Average speed
| data10 ={{{Avg|}}}
| label11 = Attendance
| data11 = {{{Attendance|}}}
| header12 = {{#if: {{{Pole_Driver|}}}| [[Pole position]] }}
| label13 = {{#if: {{{Pole_Driver2|}}}|Drivers|Driver}}
| data13a = {{#if: {{{Pole_Driver|}}}| {{unbulleted list
| 1 = <span style="white-space: nowrap;">{{{Pole_Driver}}}</span>
| 2 = {{#if: {{{Pole_Driver2|}}}|<span style="white-space: nowrap;">{{{Pole_Driver2}}}</span>}}
}} }}
| data13b = {{#if: {{{Pole_Driver|}}}|{{#if: {{{Pole_Team|}}}|<span style="white-space: nowrap;">{{{Pole_Team}}}</span>}}}}
| label14 = Time
| data14 = {{#if: {{{Pole_Driver|}}}| {{{Pole_Time|}}} }}
| data15 = {{br separated entries
|1= {{#if: {{{Grid_from_heats|}}}|'''Grid positions set by heat results'''}}
|2= {{#if: {{{Grid_from_ballot|}}}|'''Grid positions set by ballot'''}}
|3= {{#if: {{{Grid_from_number|}}}|'''Grid positions set by car number'''}}
|4= {{#if: {{{Grid_from_inversion|}}}|'''Grid positions set by partial inversion<br/>of previous race's finishing order'''}}
|5= {{#if: {{{Grid_from_prev_perf|}}}|'''Grid positions set by competition-based formula'''}}}}
| header20 = {{#if: {{{Most_Driver|}}}{{{Most_laps|}}}| Most laps led }}
| label21 = {{#if: {{{Most_Driver2|{{{Most_Driver2|}}}}}}|Drivers|Driver}}
| data21a = {{#if: {{{Most_laps|{{{Most_laps|}}}}}}|{{#if: {{{Most_Driver|{{{Most_Driver|}}}}}} | {{{Most_Driver|{{{Most_Driver}}}}}}| {{#if: {{{Most_Driver2|{{{Most_Driver2|}}}}}} }} }} }}
| data21b = {{#if: {{{Most_laps|{{{Most_laps|}}}}}}|{{#if: {{{Most_Driver|{{{Most_Driver|}}}}}} | {{{Most_Team|{{{Most_Team}}}}}} }} }}
| label22 = <span style="display:none">Most laps led</span>
| data22a = {{#if: {{{Most_laps|{{{Most_laps|}}}}}}|{{#if: {{{Most_Driver2|{{{Most_Driver2|}}}}}}| {{{Most_Driver22|{{{Most_Driver2}}}}}} }} }}
| data22b = {{#if: {{{Most_laps|{{{Most_laps|}}}}}}|{{#if: {{{Most_Driver2|{{{Most_Driver2|}}}}}} | {{{Most_Team2|{{{Most_Team2}}}}}} }} }}
| label23 = Laps
| data23 = {{{Most_laps|}}}
| header24 = {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|[[Fastest lap]]}}
| label25 = {{#if: {{{fast_driver2|{{{Fast_Driver2|}}}}}}|Drivers|Driver}}
| data25a = {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|{{#if: {{{fast_driver|{{{Fast_Driver|}}}}}} | {{{fast_driver|{{{Fast_Driver}}}}}} {{#if: {{{fast_lap|{{{Fast_Lap|}}}}}}| {{#if: {{{fast_driver2|{{{Fast_Driver2|}}}}}}|(lap {{{fast_lap|{{{Fast_Lap}}}}}})}} }} }} }}
| data25b = {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|{{#if: {{{fast_driver|{{{Fast_Driver|}}}}}} | {{{fast_team|{{{Fast_Team}}}}}} }} }}
| label26 = <span style="display:none">Fastest lap</span>
| data26a = {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|{{#if: {{{fast_driver2|{{{Fast_Driver2|}}}}}}| {{{fast_driver2|{{{Fast_Driver2}}}}}} {{#if: {{{fast_lap2|{{{Fast_Lap2|}}}}}}| (lap {{{fast_lap2|{{{Fast_Lap2}}}}}})}} }} }}
| data26b = {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|{{#if: {{{fast_driver2|{{{Fast_Driver2|}}}}}} | {{{fast_team2|{{{Fast_Team2}}}}}} }} }}
| label27 = Time
| data27 =  {{#if: {{{fast_time|{{{Fast_Time|}}}}}}|{{{fast_time|{{{Fast_Time}}}}}} {{#if: {{{fast_driver2|{{{Fast_Driver2|}}}}}}| |{{#if: {{{fast_lap|{{{Fast_Lap|}}}}}}| on lap {{{fast_lap|{{{Fast_Lap}}}}}} }} }} }}
| header28 = {{#if:{{{Car|}}}{{{First_Driver|}}}{{{First_Team|}}}| Winner }}
| label29 = {{#if:{{{Car|}}}|<span style="font-weight:normal;white-space:nowrap;">No. {{{Car}}}</span>|<nowiki />}}
| data29a = {{#if:{{{First_Driver|}}}|<span style="white-space:nowrap;">{{{First_Driver}}}</span>}}
| data29b = {{#if:{{{First_Team|}}}|<span style="white-space:nowrap;">{{{First_Team}}}</span>}}
| header30 = {{#if:{{{Network|}}}{{{Announcers|}}}{{{Ratings|}}}| Television in the United States }}
| label31 = [[Television network|Network]]
| data31 = {{{Network|}}}
| label32 = Announcers
| data32 = {{{Announcers|}}}
| label33 = [[Nielsen ratings]]
| data33 = {{{Ratings|}}}
| header34 = {{#if:{{{Radio|}}}{{{Booth_Ann|}}}{{{Turn_Ann|}}}| Radio in the United States }}
| label35 = Radio
| data35 = {{{Radio|}}}
| label36 = Booth announcers
| data36 = {{{Booth_Ann|}}}
| label37 = Turn announcers
| data37 = {{{Turn_Ann|}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox NASCAR race report with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox NASCAR race report]] with unknown parameter "_VALUE_"|ignoreblank=y| Announcers | Attendance | Avg | Booth_Ann | Caption | Car | Course | Course_km | Course_mi | date | Date | Description | Details ref | Details_ref | Distance_km | Distance_laps | Distance_mi | Fast_Driver | fast_driver | Fast_Driver2 | fast_driver2 | | Fast_Lap | fast_lap | Fast_Lap2 | fast_lap2 | Fast_Team | fast_team | Fast_Team2 | fast_team2 | Fast_Time | fast_time | First_Driver | First_Team | Fulldate | Grid_from_ballot | Grid_from_heats | Grid_from_inversion | Grid_from_number | Grid_from_prev_perf | Image | image_alt | image_size | image-alt | image-size | location | Location | Most_Driver | Most_Driver2 | Most_laps | Most_Team | Most_Team2 | Network | Official name | Official_name | Pole_Driver | Pole_Driver2 | Pole_Team | Pole_Time | Race Name | Race_Name | Race_No | Radio | Ratings | Scheduled_km | Scheduled_laps | Scheduled_mi | Season_No | Turn_Ann | Type | Weather | year | Year
}}{{#if:<!--
-->{{#ifeq:{{{Year|{{{year|}}}}}}|{{{Year|}}}{{{year|}}}||1}}{{#if:{{both|{{{Year|}}}|{{{year|}}}}}|1}}{{#ifeq:{{{Location|{{{location|}}}}}}|{{{Location|}}}{{{location|}}}||1}}{{#if:{{both|{{{Location|}}}|{{{location|}}}}}|1}}<!--
-->|{{main other|[[Category:Pages using infobox NASCAR race report with unknown parameters|δ{{PAGENAME}}]]}}
}}{{#switch:{{{Type|}}}|NASCS|NAS|NASNEX|NASWINSTON|NASME|NASXFIN|ARCAM|ARCAME|ARCAMW|CUST=|=|#default={{main other|[[Category:Pages using infobox NASCAR race report with unknown parameters|τ{{PAGENAME}}]]}}
}}<includeonly>{{short description|Motor car race|2=noreplace}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>