Template:Infobox WTCC race/sandbox

{{Infobox

| bodystyle = width:25em; font-size:85%; text-align:left

| title = {{#if:{{{flag|{{{Flag|}}}}}}|{{flagicon image|{{{flag|{{{Flag}}}}}} }}}} {{{name|{{{Name|{{PAGENAMEBASE}}}}}}}}

| subheader = {{{circuit|{{{Circuit|}}}}}}

| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Circuit_image|}}}}}}|size={{{image_size|{{{Image_size|}}}}}}|sizedefault=frameless}}

| headerstyle = background-color:#99ccff

| header1 = {{#if:{{{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}}

| label2 = Number of times held

| data2 = {{{times_held|{{{Times_held|}}}}}}

| label3 = First held

| data3 = {{#if:{{{first_held|{{{First_held|}}}}}}|{{#ifexist:{{{first_held|{{{First_held}}}}}} {{{first_race|{{{First_race|{{PAGENAME}}}}}}}}|{{{first_held|{{{first_held|{{{First_held}}}}}}}}}}

| label4 = Last held

| data4 = {{#if:{{{last_held|{{{Last_held|}}}}}} |{{#ifexist:{{{last_held|{{{Last_held}}}}}} {{{last_race|{{{Last_race|{{PAGENAME}}}}}}}}|{{{last_held|{{{last_held|{{{Last_held}}}}}}}}}}

| label5 = {{nowrap|Most wins {{small|(drivers)}}}}

| data5 = {{#if:{{{most_wins_driver|{{{Most_wins_driver|}}}}}} |{{nowrap|{{{most_wins_driver|{{{Most_wins_driver|}}}}}}}} }}

| label6 = {{nowrap|Most wins {{small|(constructors)}}}}

| data6 = {{#if:{{{most_wins_constructor|{{{Most_wins_constructor|}}}}}} |{{nowrap|{{{most_wins_constructor|{{{Most_wins_constructor|}}}}}}}} }}

| header7 = {{#if:{{{current_year|{{{Current_year|}}}}}} |Last race ({{#ifexist:{{{current_year|{{{Current_year}}}}}} {{{current_race|{{{Current_race|{{PAGENAME}}}}}}}}|{{{current_year|{{{current_year|{{{Current_year}}}}}}}}){{Infobox|child=yes

| headerstyle = padding-bottom:0

| label1 = Race 1 Winner

| data1 = {{ubl|{{{Race_1_winner|}}}|{{{Race_1_winning_team|}}}}}

| label2 = Race 2 Winner

| data2 = {{ubl|{{{Race_2_winner|}}}|{{{Race_2_winning_team|}}}}}

| label3 = Race 3 Winner

| data3 = {{ubl|{{{Race_3_winner|}}}|{{{Race_3_winning_team|}}}}}

}}

}}

}}

{{Testcase table

| Name = FIA WTCC Race of Portugal

| Flag = Flag of Portugal.svg

| Circuit = Circuito Internacional de Vila Real

| Circuit_image = Circuito Internacional de Vila Real.png

| Times_held = 8

| First_held = 2007

| Last_held = 2016

| Most_wins_driver = {{flagicon|SUI}} Alain Menu
{{flagicon|POR}} Tiago Monteiro
(3)

| Most_wins_constructor = {{flagicon|USA}} Chevrolet (8)

| Current_year = 2016

| Race_1_winner = {{flagicon|NED}} Tom Coronel

| Race_1_winning_team = (ROAL Motorsport)

| Race_2_winner = {{flagicon|POR}} Tiago Monteiro

| Race_2_winning_team = (Castrol Honda WTCC)

}}