Jump to content

Template:Infobox album/testcases

From Wikipedia, the free encyclopedia

Main tests

[edit]

Normal parameters

[edit]

This test uses the normal parameters from WP:ALBUM#Code, which excludes the advanced parameters at WP:ALBUM#Advanced usage.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
name
Studio album by
artist
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
Artist chronology
Last album
(1234)
name
(4567)
Next album
(2345)
name
Studio album by
artist
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
Artist chronology
Last album
(1234)
name
(4567)
Next album
(2345)

Blank chronology parameter for "the" artist name

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
name
Studio album by
the Smile
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
The Smile chronology
Last album
(1234)
name
(4567)
Next album
(2345)
name
Studio album by
the Smile
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
The Smile chronology
Last album
(1234)
name
(4567)
Next album
(2345)

Custom chronology parameter for lower-case artist name

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
name
Studio album by
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
letlive. chronology
Last album
(1234)
name
(4567)
Next album
(2345)
name
Studio album by
Released1 January 4567
Recordedrecorded
Genregenre
Lengthlength
Labellabel
Producerproducer
letlive. chronology
Last album
(1234)
name
(4567)
Next album
(2345)

All parameters

[edit]

This test uses all of the parameters at WP:ALBUM#Advanced usage.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Name
Caption
Studio album Longtype by
Artist
Released1 January 2001
RecordedRecorded
GenreGenre
LengthLength
LanguageLanguage
LabelLabel
ProducerProducer
CompilerCompiler
Artist chronology
Last album
(1234)
Name
(2001)
Next album
(2345)
Alternate cover
Cover of some edition
Name
Caption
Studio album Longtype by
Artist
Released1 January 2001
RecordedRecorded
GenreGenre
LengthLength
LanguageLanguage
LabelLabel
ProducerProducer
CompilerCompiler
Artist chronology
Last album
(1234)
Name
(2001)
Next album
(2345)
Alternate cover
Cover of some edition

Example from a real article, with Singles template

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
A Date with Elvis
Studio album by
Released1986
RecordedFall 1985
StudioOcean Way Studios, Hollywood, California
GenreGarage punk, psychobilly, surf rock
Length43:51
LabelBig Beat
ProducerThe Cramps
The Cramps chronology
Bad Music for Bad People
(1984)
A Date with Elvis
(1986)
RockinnReelininAucklandNewZealandXXX
(1987)
Singles from A Date with Elvis
  1. "Can Your Pussy Do the Dog?"
    Released: October 1985 (UK only)
  2. "What's Inside a Girl?"
    Released: April 1986 (UK only)
A Date with Elvis
Studio album by
Released1986
RecordedFall 1985
StudioOcean Way Studios, Hollywood, California
GenreGarage punk, psychobilly, surf rock
Length43:51
LabelBig Beat
ProducerThe Cramps
The Cramps chronology
Bad Music for Bad People
(1984)
A Date with Elvis
(1986)
RockinnReelininAucklandNewZealandXXX
(1987)
Singles from A Date with Elvis
  1. "Can Your Pussy Do the Dog?"
    Released: October 1985 (UK only)
  2. "What's Inside a Girl?"
    Released: April 1986 (UK only)

Video parameters

[edit]

This test tests the parameters needed to merge {{Infobox music DVD}} with {{Infobox album}}. See WT:ALBUM#Video infobox.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Name
Video by
Artist
DirectorDirector
Artist chronology
Last album
(1234)
Name
(2346)
Next album
(5678)
Name
Video by
Artist
DirectorDirector
Artist chronology
Last album
(1234)
Name
(2346)
Next album
(5678)

Album with cover

[edit]

This album cover is public domain, so we can use it in a test case.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Nirvana
Black square with the gray word "NIRVANA" in the center.
Greatest hits album by
ReleasedOctober 29, 2002
Recorded1988–1994
GenreGrunge
Length49:38
LanguageEnglish
LabelDGC
ProducerSteve Albini, Jack Endino, Steve Fisk, Scott Litt, Butch Vig
Nirvana chronology
From the Muddy Banks of the Wishkah
(1996)
Nirvana
(2002)
With the Lights Out
(2004)
Nirvana
Black square with the gray word "NIRVANA" in the center.
Greatest hits album by
ReleasedOctober 29, 2002
Recorded1988–1994
GenreGrunge
Length49:38
LanguageEnglish
LabelDGC
ProducerSteve Albini, Jack Endino, Steve Fisk, Scott Litt, Butch Vig
Nirvana chronology
From the Muddy Banks of the Wishkah
(1996)
Nirvana
(2002)
With the Lights Out
(2004)

Artist name that starts with numbers followed by lower-case letters

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Alive in You
Black square with the gray word "NIRVANA" in the center.
Studio album by
ReleasedSeptember 13, 2011 (2011-09-13)
Recorded2010-2011
Genre
Length37:43
LabelBEC, Tooth & Nail
7eventh Time Down chronology
Alive in You
(2011)
Just Say Jesus
(2013)
Singles from Alive In You
  1. "Alive In You"
    Released: 2012
  2. "What About Tonight"
    Released: 2012
Alive in You
Black square with the gray word "NIRVANA" in the center.
Studio album by
ReleasedSeptember 13, 2011 (2011-09-13)
Recorded2010-2011
Genre
Length37:43
LabelBEC, Tooth & Nail
7eventh Time Down chronology
Alive in You
(2011)
Just Say Jesus
(2013)
Singles from Alive In You
  1. "Alive In You"
    Released: 2012
  2. "What About Tonight"
    Released: 2012

Auxiliary tests

[edit]

"Name" parameter missing

[edit]

This should generate "Untitled" unitalicized.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Untitled
Studio album
Untitled
Studio album

"Name" parameter with empty value

[edit]

This tests Name=. Like the test with a missing "name" parameter, this should generate "Untitled" unitalicized.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Untitled
Studio album
Untitled
Studio album


"Type" parameter with "single" and "song" values

[edit]

These values are not supposed to be supported as specific infoboxes exist. So the infobox should display in its default apricot color.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Untitled
single
Untitled
single
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Untitled
song
Untitled
song

"Type" parameter with "other" and specified "longtype"

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
Untitled
Recording longtype
Untitled
Recording longtype

"Cover" parameter with empty value

[edit]

This tests |Cover=, which should leave the area blank.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test
Studio album
test
Studio album

"Cover" parameter with "blank" value

[edit]

This tests |Cover=blank, which should leave the area blank.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test
Studio album
test
Studio album

"Cover" parameter with "???" value

[edit]

This tests the use of |Cover=??? which should use File:Nocover.png as a cover, rather than show a red link to Image:???.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test
Studio album
test
Studio album

"Caption" parameter with multi-line value

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test
test test test test test test test test test test test test test test test test test
Studio album
test
test test test test test test test test test test test test test test test test test
Studio album

Chronology parameters with multi-line values

[edit]
Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test
Studio album by
artist
Artist chronology
PREVIOUS test test test test test test test
(2000)
test
(2001)
NEXT test test test test test test test
(2002)
test
Studio album by
artist
Artist chronology
PREVIOUS test test test test test test test
(2000)
test
(2001)
NEXT test test test test test test test
(2002)

Regression tests

[edit]

Album name with double exclamation point

[edit]

This test uses a field value with a double exclamation point. This will work as long the infobox is build using HTML instead of wikicode. If wikicode is used an extra table cell will be generated in the infobox.

Side by side comparison
{{Infobox album}}{{Infobox album/sandbox}}
test!! test
Studio album
test!! test
Studio album