Template:Infobox/testcases
Test
{{testcase table|_template3=Infobox/sandbox2
|name = Infobox/testcases
|bodystyle =
|title = The Summit Church (title)
|titlestyle =
|above = The Summit Church (above)
|abovestyle =
|summary = The Summit Church (summary)
|templatestyles = Infobox/sandbox/styles.css
|subheader = Subheader1
|subheader2 = Subheader2
|imagestyle =
|captionstyle =
|image = 240px
|caption1 = Caption of image1
|image2 = 240px
|caption2 = Caption of image2
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|datastyle =
|rowclass4 = testclass
|class4 = someclass
|header4 = General Info
|label4 =
|data4 =
|header5 =
|label5 = Location
|data5 = Raleigh-Durham, North Carolina
|label6 = Country
|data6 = United States
|label7 = Denomination
|data7 = Southern Baptist
|label8 =
|data8 =
|label9 = Website
|data9 = [http://www.summitchurch.cc/ www.summitchurch.cc]
|header10= History
|label10 =
|data10 =
|header11=
|label11 = Founded
|data11 = 1961
|header12= Clergy
|label12 =
|data12 =
|label13 = Senior Pastor
|data13 = J.D. Greear
|belowstyle = background:#ddf;
|belowclass= noprint
|below = Below
}}
Reference lists in strange orders
{{testcase table|_template3=Infobox/sandbox2
|name = Infobox/testcases
|bodystyle =
|title = The Summit Church (title)
|titlestyle =
|above = The Summit Church (above)
|abovestyle =
|summary = The Summit Church (summary)
|templatestyles = Infobox/sandbox/styles.css
|belowstyle = background:#ddf;
|belowclass= noprint
|below = {{reflist|close}}
|subheader = Subheader1
|subheader2 = Subheader2
|imagestyle =
|captionstyle =
|image = 240px
|caption1 = Caption of image1
|image2 = 240px
|caption2 = Caption of image2
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|datastyle =
|header4 = General Info
|label4 =
|data4 =
|header5 =
|label5 = Location
|data5 = Raleigh-Durham, North CarolinaSome reference.
|label6 = Country
|data6 = United States
|label7 = Denomination
|data7 = Southern Baptist
|label8 =
|data8 =
|label9 = Website
|data9 = [http://www.summitchurch.cc/ www.summitchurch.cc]
|header10= History
|label10 =
|data10 =
|header11=
|label11 = Founded
|data11 = 1961
|header12= Clergy
|label12 =
|data12 =
|label13 = Senior Pastor
|data13 = J.D. Greear
}}
{{reflist}}
Custom width
{{testcase table|_template3=Infobox/sandbox2
|bodystyle = width:20em;
|name = Infobox/doc
|title = Test Infobox
|titlestyle =
|headerstyle =
|labelstyle = width:33%
|datastyle =
|templatestyles = Infobox/sandbox/styles.css
|header1 =
|label1 = Label 1
|data1 = Data 1
|header2 =
|label2 = Label 2
|data2 = Data 2
|header3 =
|label3 = Label 3
|data3 = Data 3
|header4 = Header 4
|label4 =
|data4 =
|header5 =
|label5 = Label 5
|data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|belowstyle =
|below = Below text
}}
Test for child=yes
{{testcase table|_template3=Infobox/sandbox2
| headerstyle = background-color:#eee;
|templatestyles = Infobox/sandbox/styles.css
| header1 = Main 1
| header2 = Main 2
| header3 = Main 3 {{ infobox/sandbox|child=yes|decat=yes
| headerstyle = background-color:#ccc;
|templatestyles = Infobox/sandbox/styles.css
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| header4 = Main 4 {{ infobox/sandbox|child=yes|decat=yes
| labelstyle = background-color:#ccc;
|templatestyles = Infobox/sandbox/styles.css
| label1 = Label 4-1
| data1 = Data 4-1
}}
| header5 = Main 5
}}
Test for subbox=yes
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background-color:#eee;
| labelstyle = background-color:#eee;
| header1 = Main 1
| header2 = Main 2
| data3 = {{ infobox/sandbox|subbox=yes
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background-color:#ccc;
| labelstyle = background-color:#ddd;
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| data4 = {{ infobox/sandbox|subbox=yes
|templatestyles = Infobox/sandbox/styles.css
| labelstyle = background-color:#ccc;
| label1 = Label 4-1
| data1 = Data 4-1
}}
| label5 = Label 5
| data5 = Data 5
| header6 = Main 6
}}
== Simple embedding ==
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| title = Top level title
| data1 = {{Infobox/sandbox|decat=yes
|templatestyles = Infobox/sandbox/styles.css
| child = yes
| title = First subsection
| label1= Label 1.1
| data1 = Data 1.1
}}
| data2 = {{Infobox/sandbox|decat=yes
|templatestyles = Infobox/sandbox/styles.css
| child = yes
| title = Second subsection
| label1= Label 2.1
| data1 = Data 2.1
}}
|belowstyle =
|below = Below text
}}
Child infobox in header field
{{testcase table|_template3=Infobox/sandbox2
| title = Top level title
| header1 = {{Infobox/sandbox|decat=yes
| child = yes
| title = First subsection
| label1= Label 1.1
| data1 = Data 1.1
}}
| header2 = {{Infobox/sandbox|decat=yes
| child = yes
| title = Second subsection
| label1= Label 2.1
| data1 = Data 2.1
}}
|belowstyle =
|below = Below text
}}
Child in header field II
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| title = Top level title
| header1 = First subsection
{{Infobox/sandbox|decat=yes
|templatestyles = Infobox/sandbox/styles.css
| child = yes
| label1= Label 1.1
| data1 = Data 1.1
}}
| header2 = Second subsection
{{Infobox/sandbox|decat=yes
|templatestyles = Infobox/sandbox/styles.css
| child = yes
| label1= Label 2.1
| data1 = Data 2.1
}}
|belowstyle =
|below = Below text
}}
Sidebar with subbox
{{test case nowiki|format=columns|showcode=no|
| navbar = off
| headingstyle = background-color:#eee;
| heading1 = Heading 1
| heading2 = Heading 2
| content3 = {{Infobox|subbox=yes
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background-color:#ccc;
| labelstyle = background-color:#ddd;
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| content4 = {{__TEMPLATENAME__|subbox=yes
| labelstyle = background-color:#ccc;
|templatestyles = Infobox/sandbox/styles.css
| label1 = Label 4-1
| data1 = Data 4-1
}}
| heading5 = Heading 5
}}
}}
child test: title and above
{{Testcase table|_template3=Infobox3cols|_showcode=yes|_output=nowiki+
| child = yes
| title = title
| above = above
|templatestyles = Infobox/sandbox/styles.css
}}
child test: header, label, and data
{{Testcase table|_template3=Infobox3cols|_showcode=yes|_output=nowiki
| child = yes
| header1 = header1
| label2 = label2
| data2 = data2
|templatestyles = Infobox/sandbox/styles.css
}}
Aristotle
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| bodyclass = vcard
| child =
| title = {{#ifeq:|yes |Philosophical career |Aristotle }}
| titleclass = fn
| image = {{#invoke:InfoboxImage|InfoboxImage|image=Aristotle Altemps Inv8575.jpg|size=|sizedefault=frameless|alt=}}
| captionstyle = padding-top:0.45em;line-height:1.1em;
| caption = Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
| label1 = Full name
| data1 =
| label2 = Other names
| class2 = nickname
| data2 =
| label3 = Born
| data3 = {{br separated entries|{{#if:|{{{birth_name}}}}}|384 BC
Stagira, Chalcidice|}}
| label4 = Died
| data4 = {{br separated entries|322 BC (aged 61 or 62)
Euboea||}}
| label5 = Residence
| data5 =
| label6 = Nationality
| data6 = Greek
| label7 = Era
| data7 = Ancient philosophy
| label8 = Region
| data8 = Western philosophy
| label9 = Religion
| data9 =
| label10 = School
| data10 = Peripatetic school
Aristotelianism
| label11 = Main interests
| data11 = Physics, Metaphysics, Poetry, Theatre, Music, Rhetoric, Politics, Government, Ethics, Biology, Zoology
| label12 = Books
| data12 =
| label13 = Alma mater
| data13 =
| label14 = Institutions
| data14 =
| label15 = Notable ideas
| data15 = Golden mean, Aristotelian logic, syllogism, hexis, hylomorphism, Aristotle's theory of soul
| data16 = {{#if:Parmenides, Socrates, Plato, Heraclitus, Democritus
| {{Collapsible list
| expand =
| title = Influenced by
| frame_style = border:none; padding:0;
| list_style = text-align:center;
| 1 = Parmenides, Socrates, Plato, Heraclitus, Democritus
}}
}}
| data17 = {{#if:Virtually all Western philosophy that came after his works; Alexander the Great, Cicero, Avicenna, Averroes, Maimonides, Albertus Magnus, Thomas Aquinas, Duns Scotus, Ptolemy, Copernicus, Galileo, and most of Islamic philosophy, Jewish philosophy, Christian philosophy, science and more....
| {{Collapsible list
| expand =
| title = Influenced
| frame_style = border:none; padding:0;
| list_style = text-align:center;
| 1 = Virtually all Western philosophy that came after his works; Alexander the Great, Cicero, Avicenna, Averroes, Maimonides, Albertus Magnus, Thomas Aquinas, Duns Scotus, Ptolemy, Copernicus, Galileo, and most of Islamic philosophy, Jewish philosophy, Christian philosophy, science and more....
}}
}}
| label18 = Awards
| data18 =
| label19 = Signature
| data19 = {{#if:|{{#invoke:InfoboxImage|InfoboxImage|image=|size=|sizedefault=128px|alt=}} }}
| label20 = Website
| data20 =
}}
Aristotle no line-height
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| bodyclass = vcard
| child =
| title = Aristotle
| titleclass = fn
| image = {{#invoke:InfoboxImage|InfoboxImage|image=Aristotle Altemps Inv8575.jpg|size=|sizedefault=frameless|alt=}}
| captionstyle = padding-top:0.45em;
| caption = Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
| label6 = Nationality
| data6 = Greek
}}
Eccentric styles
{{Suppress categories|
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|name = Infobox/testcases
|bodystyle = width:350px;
|title = Title
|titlestyle = font-face:serif;
|above = Above
|abovestyle = font-size:85%;
|imagestyle = float:right;
|captionstyle = font-weight:bold;
|image = 240px
|caption = Caption
|image2 = 240px
|caption2 = Caption2
|headerstyle = font-size:130%;
|labelstyle = font-size:110%;
|datastyle = font-size:90%;
|header1 = header1
|label1 = label1
|data1 = data1
|header2 = header2
|label2 = label2
|data2 = data2
|header3 = header3
|label3 =
|data3 =
|header4 =
|label4 = label4
|data4 =
|header5 =
|label5 =
|data5 = data5
|header6 =
|label6 = label6
|data6 = data6
|header7 = header7
|label7 =
|data7 = data7
|header8 = header8
|label8 = label8
|data8 =
|header9 =
|label9 =
|data9 =
|header10 =
|label10 =
|data10 =
|header11 =
|label11 =
|data11 = data11
|header12 =
|label12 =
|data12 =
|header13 =
|label13 =
|data13 =
|header14 =
|label14 =
|data14 =
|header15 =
|label15 =
|data15 =
|header16 =
|label16 =
|data16 =
|header17 =
|label17 =
|data17 =
|header18 =
|label18 =
|data18 =
|header19 = header19
|label19 =
|data19 =
|header20 =
|label20 =
|data20 =
|belowstyle = font-size:140%;
|below = below
}}
}}
Eccentric styles autoheaders
:{{para|autoheaders|false}}
:{{para|data2|<asis;}};
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|name = *
|bodystyle = width:280px;
|title = Title
|titlestyle = Any
|above = Any
|abovestyle = fit to view.
|autoheaders = false
|imagestyle = float:right;
|captionstyle = font-weight:bold;
|image = 240px
|caption = Caption
|image2 = 280px
|caption2 = Caption2
|headerstyle = font-size:130%;
|labelstyle = font-size:110%;
|datastyle = font-size:90%;
|header1 =
|label1 =
|data1 = = Infobox/testcases
|header2 =
|label2 =
|data2 =
|header3 =
|label3 =
|data3 =
|header4 =
|label4 =
|data4 =
|header5 =
|label5 =
|data5 =
|header6 =
|label6 =
|data6 =
|header7 =
|label7 =
|data7 =
|header8 =
|label8 =
|data8 =
|header9 =
|label9 =
|data9 =
|header10 =
|label10 =
|data10 =
|header11 =
|label11 =
|data11 =
|header12 =
|label12 =
|data12 =
|header13 =
|label13 =
|data13 =
|header14 =
|label14 =
|data14 =
|header15 =
|label15 =
|data15 =
|header16 =
|label16 =
|data16 =
|header17 =
|label17 =
|data17 =
|header18 =
|label18 =
|data18 =
|header19 =
|label19 =
|data19 =
|header20 =
|label20 =
|data20 =
|belowstyle =*
|below =*
}}
Table in infobox row
{{testcase rows|_format=width:100%|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| bodyclass = vcard
| titleclass = fn org
| title = Lufthansa
Deutsche Lufthansa AG
| data1 =
{{{!}} style="text-align: center; width: 100%; background-color: lightgrey"
! style="border-right:1px solid white" {{!}} IATA
LH
! style="border-right:1px solid white" {{!}} ICAO
DLH
! {{!}} Callsign
LUFTHANSA
{{!}}}
| label5 = Founded
| data5 = 1953
}}
{{-}}
{{col-float}}
{{Infobox
| data1 = {{Infobox
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox
| child = yes
| headerstyle = background: {{Template:Infobox album/color|studio}}
| data1 =
| header2 = Wings at the Speed of Sound track listing
| rowcellstyle3 = text-align:left
| data3 = {{Wings at the Speed of Sound tracks}}
}}
{{Infobox
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
}}
{{col-float-break}}
{{Infobox/sandbox
|templatestyles = Infobox/sandbox/styles.css
| data1 = {{Infobox/sandbox
|templatestyles = Infobox/sandbox/styles.css
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox/sandbox
| child = yes
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox/sandbox
| child = yes
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background: {{Template:Infobox album/color|studio}}
| data1 =
| header2 = Wings at the Speed of Sound track listing
| rowcellstyle3 = text-align:left
| data3 = {{Wings at the Speed of Sound tracks}}
}}
{{Infobox/sandbox
| child = yes
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
}}
{{col-float-break}}
{{Infobox/sandbox2
| data1 = {{Infobox/sandbox2
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox/sandbox2
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
{{Infobox/sandbox2
| child = yes
| headerstyle = background: {{Template:Infobox album/color|studio}}
| data1 =
| header2 = Wings at the Speed of Sound track listing
| rowcellstyle3 = text-align:left
| data3 = {{Wings at the Speed of Sound tracks}}
}}
{{Infobox/sandbox2
| child = yes
| headerstyle = background: {{Template:Infobox album/color|single}}
| header1 = Smash Mouth singles chronology
| data2 =
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} "Can't Get Enough of You Baby"
(1998)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} "All Star"
(1999)
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} "Then the Morning Comes"
(1999)
{{!}}-
{{!)}}
}}
}}
{{col-float-end}}
Orphaned references
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| label1 = label1
| data1 = data1
| label2 = {{#tag:ref|A reference|name="someref"}}
}}
Captionstyle text-align left
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|title = Eurozone (euro area)
|image = File:Eurozone.svg
|captionstyle = text-align:left;
|caption =
{{legend|#003399|Eurozone as of 2013}}
{{legend|#3366CC|Non-EU territories using the euro}}
{{legend|gray|EU member states outside the Eurozone}}
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|datastyle =
|label1 = Currency
|data1 = euro
}}
Individual row styles
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|header1 = header1 red
|rowstyle1 = background-color:red
|label2 = label2
|data2 = data2
|rowstyle3 = background-color:wheat
|label3 = label3 wheat
|data3 = data3 wheat
|rowstyle4 = background-color:pink
|data4 = data4 pink
}}
Individual header styles
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|header1 = header1 red
|rowstyle1 = background-color: red
|data2 = data2
|data3 = data3
|header4 = header4 blue
|rowstyle4 = background-color: blue
|data5 = data5
|data6 = data6
|header7 = header7 green
|rowstyle7 = background-color: green
|data8 = data8
|data9 = data9
|header10 = header10 pink
|rowstyle10 = background-color: pink
|data11 = data11
|data12 = data12
|header13 = header13 grey
|rowstyle13 = background-color: grey
|data14 = data14
|data15 = data15
}}
Odd/even header styles
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|oddheaderstyle = background-color: red
|evenheaderstyle = background-color: green
|header1 = header1
|data2 = data2
|data3 = data3
|header4 = header4
|data5 = data5
|header6 = header6
|data7 = data7
|data8 = data8
|header9 = header9
|data10 = data10
|data11 = data11
|header12 = header12
|data13 = data13
|data14 = data14
}}
Overimage / overcaption
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
|above = above
|subheader = Subheader1
|subheader2 = Subheader2
|overimage = 240px
|overcaption = Caption of overimage
|imagestyle =
|captionstyle =
|image = 240px
|caption1 = Caption of image1
|image2 = 240px
|caption2 = Caption of image2
}}
Individual header/label/data styles
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| header1 = header1 red
| header1style = background: red
| label2 = label2 blue
| label2style = background: blue
| data2 = data2 green
| data2style = background: green
| header3 = header3 pink
| header3style = background: pink
| label4 = label4 grey
| label4style = background: grey
| data4 = data4 yellow
| data4style = background: yellow
}}
Two plain lists
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| bodyclass = plainlist
| label1 = List 1 | data1 =
- A
- B
| label2 = List 2 | data2 =
- C
- D
}}
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| bodyclass = plainlist
| label1 = List 1 | data1 =
- A
| label2 = List 2 | data2 =
- B
}}
Mixed text and lists
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| above = Without additional div tags
| label1 = Battles
| data1 = World War I
}}
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| above = With additional div tags
| label1 = Battles
| data1 =
}}
Test for subbox=yes with HTML tagging for collapsing subsection
{{testcase table|_template3=Infobox/sandbox2
|templatestyles = Infobox/sandbox/styles.css
| headerstyle = background-color:#eee;
| labelstyle = background-color:#eee;
| header1 = Main 1
| header2 = Main 2
| data3 = {{ infobox|subbox=yes
| headerstyle = background-color:#ccc;
| labelstyle = background-color:#ddd;
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| header4 = {{#if: true |
| label5 = Label 5
| data6 = Data 5
| header7 = Main 6
}}
autoheaders = yes
:new, June 2020
- testing: {{para|data12}} has no data, does have /span> tag.
:--> data-row treated as non-empty.
{{testcase table|_template3=Infobox/sandbox2
|title=check css / old
|headerstyle=background:yellow
|header1= Header1
|label2=I2
|data2={{#ifeq:a|a|d1|}}
|header11 = Header11
|label12=I12
|data12={{#ifeq:a|b|d12|}}
|header21 = Header21
|label22=I22
|data22={{#ifeq:a|b|d22|}}
}}
{{testcase table|_template3=Infobox/sandbox2
|title=check css / a.h.=yes
|autoheaders=yes
|headerstyle=background:pink
|header1= Header1
|label2=I2
|data2={{#ifeq:a|a|d1|}}
|header11 = Header11
|label12=I12
|data12={{#ifeq:a|b|d12|}}
|header21 = Header21
|label22=I22
|data22={{#ifeq:a|b|d22|}}
}}
Hidden rows for no-content except categories
Use Special:ExpandTemplates to test this.
{{infobox/sandbox
|templatestyles = Infobox/sandbox/styles.css
|title=Sandbox
|label1=Label1
|data1=Data1
|label2=Label2
|data2=Category:Template test cases
}}
{{infobox
|title=Current
|label1=Label1
|data1=Data1
|label2=Label2
|data2=Category:Template test cases
}}
{{clear}}
List class support
= Don't emit TStyles from an empty template =
{{test case|_collapsible=no|_title=|_output=nowiki+|_showcode=yes
|rowclass4=plainlist hlist
}}
{{test case|_collapsible=no|_title=|_output=nowiki+|_showcode=yes
|titleclass=plainlist hlist
}}
= Emit 3 TStyles (hlist -> plainlist -> base), two nowiki markers, in title and above =
{{test case|_collapsible=no|_title=|_output=nowiki+|_showcode=yes
|titleclass=plainlist
|title=
- A list
|aboveclass=hlist
|above=
- A list
}}
= Emit 3 TStyles (hlist -> plainlist -> base) for image4 and image5 =
{{test case|_collapsible=no|_title=|_output=nowiki+|_showcode=yes
|imagerowclass4=plainlist
|image4=
- A list
|imagerowclass5=hlist
|image5=
- A list
}}
= Emit 1 TStyle (base only) because rowclass and image aren't relevant =
{{test case|_collapsible=no|_title=|_output=nowiki+|_showcode=yes
|rowclass4=plainlist
|image4=
- A list
|rowclass5=hlist
|image5=
- A list
}}
= [[Template:Plainlist]] =
{{test case|_collapsible=no|_title=with a list in the {{para|label1}}|_output=nowiki+|_showcode=yes
|label1=label1 with a list
- A
- B
|data1=data1
|data2={{plainlist|
- first plainlist in data2
}}
|data3={{plainlist|
- second plainlist in data3
}}
}}
----
{{test case|_collapsible=no|_title=without a list in the {{para|label1}}|_output=nowiki+|_showcode=yes
|label1=label1 without a list
|data1=data1
|data2={{plainlist|
- first plainlist in data2
}}
|data4={{plainlist|
- second plainlist in data3
}}
}}
= [[Template:Flatlist]] =
{{test case|_collapsible=no|_title=with a list in the {{para|label1}}|_output=nowiki+|_showcode=yes
|label1=label1 with a list
- A
- B
|data1=data1
|data2={{flatlist|
- C
- D
}}
|data3={{flatlist|
- E
- F
}}
}}
----
{{test case|_collapsible=no|_title=without a list in the {{para|label1}}|_output=nowiki+|_showcode=yes
|label1=label1 without a list
|data1=data1
|data2={{flatlist|
- C
- D
}}
|data4={{flatlist|
- E
- F
}}
}}
References
:For whole testpage