Template:Infobox Album/testcases

From Wikipedia, the free encyclopedia

This is the template test case page for the Template:Infobox Album/sandbox of Template:Infobox Album. Purge this page to update examples.
If there are many examples of a complicated templates, latter ones may break due to limits added into MediaWiki, which are stated in a HTML comment "NewPP limit report".

Contents

[edit] Main tests

[edit] Normal parameters

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

Template Sandbox
Name
Name cover
Studio album by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Label Label
Producer Producer
Professional reviews
  • Review
  • Review
Artist chronology
Last album
(Year)
This album
(Year)
Next album
(Year)
Name
Name cover
Studio album by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Label Label
Producer Producer
Professional reviews
  • Review
  • Review
Artist chronology
Last album
(Year)
This album
(Year)
Next album
(Year)

[edit] All parameters

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

Template Sandbox
Name
Name cover
Caption
Studio album Longtype by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Language Language
Label Label
Producer Producer
Compiler Compiler
Professional reviews
  • Review
  • Review
Chronology chronology
Last album
(Year)
This album
(Year)
Next album
(Year)
Alternate cover
Cover of some edition
Cover of some edition
Name
Name cover
Caption
Studio album Longtype by Artist
Released Released
Recorded Recorded
Genre Genre
Length Length
Language Language
Label Label
Producer Producer
Compiler Compiler
Professional reviews
  • Review
  • Review
Chronology chronology
Last album
(Year)
This album
(Year)
Next album
(Year)
Alternate cover
Cover of some edition
Cover of some edition

[edit] Video parameters

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
Director Director
Artist video chronology
Last album
(Year)
This album
(Year)
Next album
(Year)
Name
Video by Artist
Director Director
Artist video chronology
Last album
(Year)
This album
(Year)
Next album
(Year)

[edit] Auxiliary tests

[edit] "Name" parameter missing

This should generate "Untitled" unitalicized.

Untitled
Studio album
Untitled
Studio album

[edit] "Name" parameter with empty value

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

Untitled
Studio album
Untitled
Studio album

[edit] "Type" parameter with "single" value

Untitled
single
Untitled
single

[edit] "Cover" parameter with empty value

This tests "Cover = ", which should use Image:Nocover-upload.png and an imagemap to link to Template:Infobox Album/No cover.

Template Sandbox
test
Studio album
test
No cover image exists
Studio album

[edit] "Cover" parameter with "Nocover.png" value

"Cover = Nocover.png" is special-cased to work like "Cover = " (which actually uses Image:Nocover-upload.png instead of Image:Nocover.png).

Template Sandbox
test
test cover
Studio album
test
No cover image exists
Studio album

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

As of this change, the Cover section is below the Details section, which recommends using ??? for unknown values. This should be special-cased for the Cover parameter, by treating Cover = ??? like Cover =, to avoid showing a red link to Image:???.

Template Sandbox
test
Image:???
Studio album
test
No cover image exists
Studio album

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

Template Sandbox
test
test test test test test test test test test test test test test test test test test
Studio album
test
No cover image exists
test test test test test test test test test test test test test test test test test
Studio album

[edit] Chronology parameters with multi-line values

Template Sandbox
test
Studio album by Artist
Artist chronology
test test test test test test test
(2000)
test test test test test test test
(2000)
test test test test test test test
(2000)
test
No cover image exists
Studio album by Artist
Artist chronology
test test test test test test test
(2000)
test test test test test test test
(2000)
test test test test test test test
(2000)

[edit] Regression tests

[edit] Album name with double exclamation point

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