Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Main tests  



1.1  Normal parameters  





1.2  All parameters  





1.3  Example from a real article, with Singles template  





1.4  Video parameters  





1.5  Album with cover  





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







2 Auxiliary tests  



2.1  "Name" parameter missing  





2.2  "Name" parameter with empty value  





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





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





2.5  "Cover" parameter with empty value  





2.6  "Cover" parameter with "blank" value  





2.7  "Cover" parameter with "???" value  





2.8  "Caption" parameter with multi-line value  





2.9  Chronology parameters with multi-line values  







3 Regression tests  



3.1  Album name with double exclamation point  
















Template:Infobox album/testcases







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Infobox album

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)


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
  • heavy metal
  • worship metal
  • post-grunge
  • punk rock
  • alternative metal
  • 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
  • heavy metal
  • worship metal
  • post-grunge
  • punk rock
  • alternative metal
  • 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

    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Infobox_album/testcases&oldid=1104110442"

    Category: 
    Template test cases
    Hidden category: 
    Duration without hAudio microformat
     



    This page was last edited on 12 August 2022, at 18:55 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki