Spring til indhold

Skabelon:Infoboks/testcases

Fra Wikipedia, den frie encyklopædi

Test[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
The Summit Church (title)
The Summit Church (above)
Subheader1
Subheader2
Caption of image1
Caption of image2
General Info
LocationRaleigh-Durham, North Carolina
CountryUnited States
DenominationSouthern Baptist
Websitewww.summitchurch.cc
History
Founded1961
Clergy
Senior PastorJ.D. Greear
Below
The Summit Church (title)
The Summit Church (above)
Subheader1
Subheader2
Caption of image1
Caption of image2
General Info
LocationRaleigh-Durham, North Carolina
CountryUnited States
DenominationSouthern Baptist
Websitewww.summitchurch.cc
History
Founded1961
Clergy
Senior PastorJ.D. Greear
Below

Reference lists in strange orders[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
The Summit Church (title)
The Summit Church (above)
Subheader1
Subheader2
Caption of image1
Caption of image2
General Info
LocationRaleigh-Durham, North Carolina[1]
CountryUnited States
DenominationSouthern Baptist
Websitewww.summitchurch.cc
History
Founded1961
Clergy
Senior PastorJ.D. Greear
The Summit Church (title)
The Summit Church (above)
Subheader1
Subheader2
Caption of image1
Caption of image2
General Info
LocationRaleigh-Durham, North Carolina[1]
CountryUnited States
DenominationSouthern Baptist
Websitewww.summitchurch.cc
History
Founded1961
Clergy
Senior PastorJ.D. Greear
  1. ^ Some reference.

Custom width[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Test Infoboks
Label 1Data 1
Label 2Data 2
Label 3Data 3
Header 4
Label 5Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Below text
Test Infoboks
Label 1Data 1
Label 2Data 2
Label 3Data 3
Header 4
Label 5Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Below text

Test for child=yes[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Main 1
Main 2
Main 3
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Main 4
Label 4-1Data 4-1
Main 5
Main 1
Main 2
Main 3
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Main 4
Label 4-1Data 4-1
Main 5

Test for subbox=yes[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Main 1
Main 2
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Label 4-1Data 4-1
Label 5Data 5
Main 6
Main 1
Main 2
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Label 4-1Data 4-1
Label 5Data 5
Main 6

Simple embedding[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text

Child infobox in header field[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text

Child in header field II[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text
Top level title
First subsection
Label 1.1Data 1.1
Second subsection
Label 2.1Data 2.1
Below text

Sidebar with subbox[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}

child test: title and above[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
title title

child test: header, label, and data[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
header1
label2data2
header1
label2data2

Aristotle[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Aristotle
Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
Born384 BC
Stagira, Chalcidice
Died322 BC (aged 61 or 62)
Euboea
NationalityGreek
EraAncient philosophy
RegionWestern philosophy
SchoolPeripatetic school
Aristotelianism
Main interestsPhysics, Metaphysics, Poetry, Theatre, Music, Rhetoric, Politics, Government, Ethics, Biology, Zoology
Notable ideasGolden mean, Aristotelian logic, syllogism, hexis, hylomorphism, Aristotle's theory of soul
Aristotle
Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
Born384 BC
Stagira, Chalcidice
Died322 BC (aged 61 or 62)
Euboea
NationalityGreek
EraAncient philosophy
RegionWestern philosophy
SchoolPeripatetic school
Aristotelianism
Main interestsPhysics, Metaphysics, Poetry, Theatre, Music, Rhetoric, Politics, Government, Ethics, Biology, Zoology
Notable ideasGolden mean, Aristotelian logic, syllogism, hexis, hylomorphism, Aristotle's theory of soul

Aristotle no line-height[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Aristotle
Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
NationalityGreek
Aristotle
Marble bust of Aristotle. Roman copy after a Greek bronze original by Lysippus c. 330 BC. The alabaster mantle is modern.
NationalityGreek

Eccentric styles[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Title
Above
Caption
Caption2
header1
header2
header3
data5
label6data6
header7
header8
data11
header19
below
Title
Above
Caption
Caption2
header1
header2
header3
data5
label6data6
header7
header8
data11
header19
below


Eccentric styles autoheaders[rediger kildetekst]

|autoheaders=true
|data2=<blank>, so header2 empty, expect omitted
Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Title
Above
Caption
Caption2
label1data1
header3
data5
label6data6
data7
header8
data11
below
Title
Above
Caption
Caption2
label1data1
header3
data5
label6data6
data7
header8
data11
below

Table in infobox row[rediger kildetekst]

{{Infoboks}}

Lufthansa
Deutsche Lufthansa AG
IATA
LH
ICAO
DLH
Callsign
LUFTHANSA
Founded1953

{{Infoboks/sandkasse}}

Lufthansa
Deutsche Lufthansa AG
IATA
LH
ICAO
DLH
Callsign
LUFTHANSA
Founded1953


Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)
Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)
Wings at the Speed of Sound track listing
Skabelon:Wings at the Speed of Sound tracks
Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)
Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)
Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)
Wings at the Speed of Sound track listing
Skabelon:Wings at the Speed of Sound tracks
Smash Mouth singles chronology
"Can't Get Enough of You Baby"
(1998)
"All Star"
(1999)
"Then the Morning Comes"
(1999)

Orphaned references[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
label1data1
label1data1

Captionstyle text-align left[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Eurozone (euro area)
The eurozone as of 2013
     Eurozone as of 2013

     Non-EU territories using the euro

     EU member states outside the Eurozone
Currencyeuro
Eurozone (euro area)
The eurozone as of 2013
     Eurozone as of 2013

     Non-EU territories using the euro

     EU member states outside the Eurozone
Currencyeuro

Individual row styles[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
header1 red
label2data2
label3 wheatdata3 wheat
data4 pink
header1 red
label2data2
label3 wheatdata3 wheat
data4 pink

Individual header styles[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
header1 red
data2
data3
header4 blue
data5
data6
header7 green
data8
data9
header10 pink
data11
data12
header13 grey
data14
data15
header1 red
data2
data3
header4 blue
data5
data6
header7 green
data8
data9
header10 pink
data11
data12
header13 grey
data14
data15

Odd/even header styles[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
header1
data2
data3
header4
data5
header6
data7
data8
header9
data10
data11
header12
data13
data14
header1
data2
data3
header4
data5
header6
data7
data8
header9
data10
data11
header12
data13
data14

Overimage / overcaption[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
above
Subheader1
Subheader2
Caption of image1
Caption of image2
above
Subheader1
Subheader2
Caption of image1
Caption of image2

Individual header/label/data styles[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
header1 red
label2 bluedata2 green
header3 pink
label4 greydata4 yellow
header1 red
label2 bluedata2 green
header3 pink
label4 greydata4 yellow

Two plain lists[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
List 1
  • A
  • B
List 2
  • C
  • D
List 1
  • A
  • B
List 2
  • C
  • D
Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
List 1
  • A
List 2
  • B
List 1
  • A
List 2
  • B

Mixed text and lists[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Without additional div tags
BattlesWorld War I
Without additional div tags
BattlesWorld War I
Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
With additional div tags
Battles
With additional div tags
Battles

Test for subbox=yes with HTML tagging for collapsing subsection[rediger kildetekst]

Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
Main 1
Main 2
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Title Collapse
Label 4-1Data 4-1
Label 4-2Data 4-2
Data 5
Main 6
Main 1
Main 2
Sub 3-1
Sub 3-2
Label 3-3Data 3-3
Title Collapse
Label 4-1Data 4-1
Label 4-2Data 4-2
Data 5
Main 6

autoheaders = yes[rediger kildetekst]

new, June 2020
  • testing: |data12= has no data, does have  /span> tag.
--> data-row treated as non-empty.
Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
check css / old
Header1
I2d1
Header11
I12
Header21
check css / old
Header1
I2d1
Header11
I12
Header21
Side by side comparison
{{Infoboks}}{{Infoboks/sandkasse}}
check css / a.h.=yes
Header1
I2d1
Header11
I12
check css / a.h.=yes
Header1
I2d1
Header11
I12

Hidden rows for no-content except categories[rediger kildetekst]

Use Special:ExpandTemplates to test this.

Sandbox
Label1Data1
Current
Label1Data1


List class support[rediger kildetekst]

Don't emit TStyles from an empty template[rediger kildetekst]

{{Infoboks|rowclass4=plainlist hlist}}

{{Infoboks}}

'"`UNIQ--templatestyles-000000C6-QINU`"'

{{Infoboks/sandkasse}}

'"`UNIQ--templatestyles-000000C7-QINU`"'
{{Infoboks|titleclass=plainlist hlist}}

{{Infoboks}}

'"`UNIQ--templatestyles-000000C9-QINU`"'

{{Infoboks/sandkasse}}

'"`UNIQ--templatestyles-000000CA-QINU`"'

Emit 3 TStyles (hlist -> plainlist -> base), two nowiki markers, in title and above[rediger kildetekst]

{{Infoboks|titleclass=plainlist|above=
* A list|title=
* A list|aboveclass=hlist}}

{{Infoboks}}

  • A list
  • A list
  • '"`UNIQ--templatestyles-000000CE-QINU`"''"`UNIQ--templatestyles-000000CF-QINU`"''"`UNIQ--templatestyles-000000D0-QINU`"'<table class="infobox"><caption class="infobox-title plainlist">'"`UNIQ--nowiki-000000CB-QINU`"'
    * A list</caption><tr><th colspan="2" class="infobox-above hlist">'"`UNIQ--nowiki-000000CC-QINU`"'
    * A list
    </th></tr></table>

    {{Infoboks/sandkasse}}

    • A list
  • A list
  • '"`UNIQ--templatestyles-000000D1-QINU`"''"`UNIQ--templatestyles-000000D2-QINU`"''"`UNIQ--templatestyles-000000D3-QINU`"'<table class="infobox"><caption class="infobox-title plainlist">'"`UNIQ--nowiki-000000CB-QINU`"'
    * A list</caption><tr><th colspan="2" class="infobox-above hlist">'"`UNIQ--nowiki-000000CC-QINU`"'
    * A list
    </th></tr></table>

    Emit 3 TStyles (hlist -> plainlist -> base) for image4 and image5[rediger kildetekst]

    {{Infoboks|image5=* A list|imagerowclass5=hlist|image4=* A list|imagerowclass4=plainlist}}

    {{Infoboks}}

    • A list
    • A list
    '"`UNIQ--templatestyles-000000D5-QINU`"''"`UNIQ--templatestyles-000000D6-QINU`"''"`UNIQ--templatestyles-000000D7-QINU`"'<table class="infobox"><tr class="plainlist"><td colspan="2" class="infobox-image">
    * A list
    </td></tr><tr class="hlist"><td colspan="2" class="infobox-image">
    * A list
    </td></tr></table>

    {{Infoboks/sandkasse}}

    • A list
    • A list
    '"`UNIQ--templatestyles-000000D8-QINU`"''"`UNIQ--templatestyles-000000D9-QINU`"''"`UNIQ--templatestyles-000000DA-QINU`"'<table class="infobox"><tr class="plainlist"><td colspan="2" class="infobox-image">
    * A list
    </td></tr><tr class="hlist"><td colspan="2" class="infobox-image">
    * A list
    </td></tr></table>

    Emit 1 TStyle (base only) because rowclass and image aren't relevant[rediger kildetekst]

    {{Infoboks|rowclass5=hlist|rowclass4=plainlist|image4=* A list|image5=* A list}}

    {{Infoboks}}

    • A list
    • A list
    '"`UNIQ--templatestyles-000000DC-QINU`"'<table class="infobox"><tr><td colspan="2" class="infobox-image">
    * A list
    </td></tr><tr><td colspan="2" class="infobox-image">
    * A list
    </td></tr></table>

    {{Infoboks/sandkasse}}

    • A list
    • A list
    '"`UNIQ--templatestyles-000000DD-QINU`"'<table class="infobox"><tr><td colspan="2" class="infobox-image">
    * A list
    </td></tr><tr><td colspan="2" class="infobox-image">
    * A list
    </td></tr></table>

    Template:Plainlist[rediger kildetekst]

    {{Infoboks|data1=data1|label1=label1 ''with'' a list
    * A
    * B|data2=<div class="plainlist " >
    * first plainlist in data2
    
    </div>|data3=<div class="plainlist " >
    * second plainlist in data3
    
    </div>}}

    {{Infoboks}}

    label1 with a list
    • A
    • B
    data1
  • first plainlist in data2
    • second plainlist in data3
    '"`UNIQ--templatestyles-000000E1-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''with'' a list
    * A
    * B</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000DE-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000DF-QINU`"'<div class="plainlist " >
    * second plainlist in data3
    
    </div></td></tr></table>

    {{Infoboks/sandkasse}}

    label1 with a list
    • A
    • B
    data1
  • first plainlist in data2
    • second plainlist in data3
    '"`UNIQ--templatestyles-000000E2-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''with'' a list
    * A
    * B</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000DE-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000DF-QINU`"'<div class="plainlist " >
    * second plainlist in data3
    
    </div></td></tr></table>

    {{Infoboks|data1=data1|label1=label1 ''without'' a list|data2=<div class="plainlist " >
    * first plainlist in data2
    
    </div>|data4=<div class="plainlist " >
    * second plainlist in data3
    
    </div>}}

    {{Infoboks}}

    label1 without a listdata1
    • first plainlist in data2
    • second plainlist in data3
    '"`UNIQ--templatestyles-000000E6-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''without'' a list</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E3-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E4-QINU`"'<div class="plainlist " >
    * second plainlist in data3
    
    </div></td></tr></table>

    {{Infoboks/sandkasse}}

    label1 without a listdata1
    • first plainlist in data2
    • second plainlist in data3
    '"`UNIQ--templatestyles-000000E7-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''without'' a list</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E3-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E4-QINU`"'<div class="plainlist " >
    * second plainlist in data3
    
    </div></td></tr></table>

    Template:Flatlist[rediger kildetekst]

    {{Infoboks|data1=data1|label1=label1 ''with'' a list
    * A
    * B|data2=<div class="hlist " >
    * C
    * D
    
    </div>|data3=<div class="hlist " >
    * E
    * F
    
    </div>}}

    {{Infoboks}}

    label1 with a list
    • A
    • B
    data1
  • C
  • D
    • E
    • F
    '"`UNIQ--templatestyles-000000EB-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''with'' a list
    * A
    * B</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E8-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E9-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    {{Infoboks/sandkasse}}

    label1 with a list
    • A
    • B
    data1
  • C
  • D
    • E
    • F
    '"`UNIQ--templatestyles-000000EC-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''with'' a list
    * A
    * B</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E8-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000E9-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    {{Infoboks|data1=data1|label1=label1 ''without'' a list|data2=<div class="hlist " >
    * C
    * D
    
    </div>|data4=<div class="hlist " >
    * E
    * F
    
    </div>}}

    {{Infoboks}}

    label1 without a listdata1
    • C
    • D
    • E
    • F
    '"`UNIQ--templatestyles-000000F0-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''without'' a list</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000ED-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000EE-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    {{Infoboks/sandkasse}}

    label1 without a listdata1
    • C
    • D
    • E
    • F
    '"`UNIQ--templatestyles-000000F1-QINU`"'<table class="infobox"><tr><th scope="row" class="infobox-label">label1 ''without'' a list</th><td class="infobox-data">data1</td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000ED-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-000000EE-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    References[rediger kildetekst]

    For whole testpage
    1. ^ A reference