Template:Infobox album/testcases

From Wikipedia, the free encyclopedia
Jump to: navigation, search

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.

Template Sandbox
Name
Dummycover.png
Studio album by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Label Label
Producer Producer
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found
Name
Dummycover.png
Studio album by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Label Label
Producer Producer
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found

All parameters[edit]

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

Template Sandbox
Name
Dummycover.png
Caption
Studio album Longtype by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Language Language
Label Label
Producer Producer
Compiler Compiler
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found
Alternate cover
Cover of some edition
Cover of some edition
Name
Dummycover.png
Caption
Studio album Longtype by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Language Language
Label Label
Producer Producer
Compiler Compiler
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found
Alternate cover
Cover of some edition
Cover of some edition

Video parameters[edit]

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

Template Sandbox
Name
Video by Artist
Released String Module Error: Match not found
Director Director
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found
Name
Video by Artist
Released String Module Error: Match not found
Director Director
Artist chronology
Last album
(Year)Last albumString Module Error: Match not found
This album
(Year)
Next album
(Year)Next albumString Module Error: Match not found

Album with cover[edit]

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

Nirvana

{{Infobox album
| Name        = Nirvana
| Type        = greatest
| Artist      = [[Nirvana (band)|Nirvana]]
| Cover       = Nirvana album cover.jpg
| Alt         = Black square with the gray word "NIRVANA" in the center.
| Released    = October 29, 2002
| Recorded    = 1988–1994
| Genre       = [[Grunge music|Grunge]]
| Length      = 49:38
| Language    = [[English language|English]]
| Label       = [[DGC Records|DGC]]
| Producer    = [[Steve Albini]], [[Jack Endino]], [[Steve Fisk]], [[Scott Litt]], [[Butch Vig]]
| Reviews     = 
| Compiler    =
| Chronology  = 
| Last album  = ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)
| This album  = '''''Nirvana''''' <br /> (2002)
| Next album  = ''[[With the Lights Out]]''<br />(2004)
}}


Nirvana
Black square with the gray word "NIRVANA" in the center.
Greatest hits album by Nirvana
Released October 29, 2002
Recorded 1988–1994
Genre Grunge
Length 49:38
Language English
Label DGC
Producer Steve Albini, Jack Endino, Steve Fisk, Scott Litt, Butch Vig
Nirvana chronology
From the Muddy Banks of the Wishkah
(1996)From the Muddy Banks of the Wishkah1996
Nirvana
(2002)
With the Lights Out
(2004)With the Lights Out2004


Nirvana
Black square with the gray word "NIRVANA" in the center.
Greatest hits album by Nirvana
Released October 29, 2002
Recorded 1988–1994
Genre Grunge
Length 49:38
Language English
Label DGC
Producer Steve Albini, Jack Endino, Steve Fisk, Scott Litt, Butch Vig
Nirvana chronology
From the Muddy Banks of the Wishkah
(1996)From the Muddy Banks of the Wishkah1996
Nirvana
(2002)
With the Lights Out
(2004)With the Lights Out2004


Auxiliary tests[edit]

"Name" parameter missing[edit]

This should generate "Untitled" unitalicized.

Template 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.

Template 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.

Template Sandbox
Untitled
single
Untitled
single
Template Sandbox
Untitled
song
Untitled
song

"Cover" parameter with empty value[edit]

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

Template Sandbox
test
Studio album
test
Studio album

"Cover" parameter with "blank" value[edit]

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

Template 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:???.

Template Sandbox
test
Nocover.png
Studio album
test
Nocover.png
Studio album

"Caption" parameter with multi-line value[edit]

Template Sandbox
test
Nocover.png
test test test test test test test test test test test test test test test test test
Studio album
test
Nocover.png
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]

Template Sandbox
test
Studio album by Artist
Released 2000
Artist chronology
test test test test test test test
(2000)test test test test test test test2000
test test test test test test test
(2000)
test test test test test test test
(2000)test test test test test test test2000
test
Studio album by Artist
Released 2000
Artist chronology
test test test test test test test
(2000)test test test test test test test2000
test test test test test test test
(2000)
test test test test test test test
(2000)test test test test test test test2000

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.

Template Sandbox
test!! test
Studio album
test!! test
Studio album