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
Location Raleigh-Durham, North Carolina
Country United States
Denomination Southern Baptist
Website www.summitchurch.cc
History
Founded 1961
Clergy
Senior Pastor J.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
Location Raleigh-Durham, North Carolina[1]
Country United States
Denomination Southern Baptist
Website www.summitchurch.cc
History
Founded 1961
Clergy
Senior Pastor J.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 1 Data 1
Label 2 Data 2
Label 3 Data 3
Header 4
Label 5 Data 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 5 Data 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
label2 data2
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.
Born 384 BC
Stagira, Chalcidice
Died 322 BC (aged 61 or 62)
Euboea
Nationality Greek
Era Ancient philosophy
Region Western philosophy
School Peripatetic school
Aristotelianism
Main interests Physics, Metaphysics, Poetry, Theatre, Music, Rhetoric, Politics, Government, Ethics, Biology, Zoology
Notable ideas Golden 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.
Nationality Greek
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
label6 data6
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
header1
header2
header3
data5
label6 data6
header7
header8
data11
header19
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
Founded 1953

{{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}}
label1 data1
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
Currency euro
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
label2 data2
label3 wheat data3 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 blue data2 green
header3 pink
label4 grey data4 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
    Battles

    World 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-3 Data 3-3
    Title Collapse
    Label 4-1 Data 4-1
    Label 4-2 Data 4-2
    Data 5
    Main 6
    Main 1
    Main 2
    Sub 3-1
    Sub 3-2
    Label 3-3 Data 3-3
    Title Collapse
    Label 4-1 Data 4-1
    Label 4-2 Data 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
    I2 d1
    Header11
    I12
    Header21
    check css / old
    Header1
    I2d1
    Header11
    I12
    Header21
    Side by side comparison
    {{Infoboks}}{{Infoboks/sandkasse}}
    check css / a.h.=yes
    Header1
    I2 d1
    Header11
    I12
    Header21
    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
    Label1 Data1
    Label2


    List class support[rediger kildetekst]

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

    {{Infoboks|rowclass4=plainlist hlist}}

    {{Infoboks}}

    <table class="infobox" style="width:22em"></table>

    {{Infoboks/sandkasse}}

    '"`UNIQ--templatestyles-0000007C-QINU`"'
    {{Infoboks|titleclass=plainlist hlist}}

    {{Infoboks}}

    <table class="infobox" style="width:22em"></table>

    {{Infoboks/sandkasse}}

    '"`UNIQ--templatestyles-0000007E-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
  • <table class="infobox" style="width:22em"><caption class="plainlist">'"`UNIQ--nowiki-0000007F-QINU`"'
    * A list</caption><tr><th colspan="2" class="hlist" style="text-align:center;font-size:125%;font-weight:bold">'"`UNIQ--nowiki-00000080-QINU`"'
    * A list</th></tr></table>

    {{Infoboks/sandkasse}}

    • A list
  • A list
  • '"`UNIQ--templatestyles-00000082-QINU`"''"`UNIQ--templatestyles-00000083-QINU`"''"`UNIQ--templatestyles-00000084-QINU`"'<table class="infobox"><caption class="infobox-title plainlist">'"`UNIQ--nowiki-0000007F-QINU`"'
    * A list</caption><tr><th colspan="2" class="infobox-above hlist">'"`UNIQ--nowiki-00000080-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
  • <table class="infobox" style="width:22em"><tr class="plainlist"><td colspan="2" style="text-align:center">
    * A list</td></tr><tr class="hlist"><td colspan="2" style="text-align:center">
    * A list</td></tr></table>

    {{Infoboks/sandkasse}}

    • A list
    • A list
    '"`UNIQ--templatestyles-00000086-QINU`"''"`UNIQ--templatestyles-00000087-QINU`"''"`UNIQ--templatestyles-00000088-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
  • <table class="infobox" style="width:22em"><tr><td colspan="2" style="text-align:center">
    * A list</td></tr><tr><td colspan="2" style="text-align:center">
    * A list</td></tr></table>

    {{Infoboks/sandkasse}}

    • A list
    • A list
    '"`UNIQ--templatestyles-0000008A-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
    <table class="infobox" style="width:22em"><tr><th scope="row" style="text-align:left">label1 ''with'' a list
    * A
    * B</th><td>
    data1</td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-0000008B-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-0000008C-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-0000008E-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-0000008B-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-0000008C-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 list data1
    • first plainlist in data2
    • second plainlist in data3
    <table class="infobox" style="width:22em"><tr><th scope="row" style="text-align:left">label1 ''without'' a list</th><td>
    data1</td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-0000008F-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-00000090-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-00000092-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-0000008F-QINU`"'<div class="plainlist " >
    * first plainlist in data2
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-00000090-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
    <table class="infobox" style="width:22em"><tr><th scope="row" style="text-align:left">label1 ''with'' a list
    * A
    * B</th><td>
    data1</td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-00000093-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-00000094-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-00000096-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-00000093-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-00000094-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 list data1
    • C
    • D
    • E
    • F
    <table class="infobox" style="width:22em"><tr><th scope="row" style="text-align:left">label1 ''without'' a list</th><td>
    data1</td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-00000097-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" style="text-align:center">
    '"`UNIQ--templatestyles-00000098-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    {{Infoboks/sandkasse}}

    label1 without a listdata1
    • C
    • D
    • E
    • F
    '"`UNIQ--templatestyles-0000009A-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-00000097-QINU`"'<div class="hlist " >
    * C
    * D
    
    </div></td></tr><tr><td colspan="2" class="infobox-full-data">'"`UNIQ--templatestyles-00000098-QINU`"'<div class="hlist " >
    * E
    * F
    
    </div></td></tr></table>

    References[rediger kildetekst]

    For whole testpage
    1. ^ A reference