Template:Testcase/testcases

Test 1: Default settings change

  • Title bar: defaults to 1st unnamed parameter
  • Layout: defaults to "vertical"

Test 1: Code change

{{testcase
|{{WPHawaii|category=no|class=NA}}
|{{WPHawaii|category=no|class=NA}}
|{{WPHawaii/sandbox|category=no|class=NA}}
}}

Test 1: Output of live template change

{{WPHawaii|category=no|class=NA}}
{{{1}}}
Template:WPHawaii
Template:WPHawaii/sandbox
Expanded code
[[:Template:WPHawaii]]
[[:Template:WPHawaii/sandbox]]

Test 1: Output of sandbox template change

{{WPHawaii|category=no|class=NA}}
{{WPHawaii|category=no|class=NA}}
Template:WPHawaii
Template:WPHawaii/sandbox

Test 2: Non-default settings change

  • Title bar: specified via the id parameter
  • Layout: specified via the layout parameter

Test 2: Code change

{{Testcase | id=Nirvana | layout=horizontal
|<!--display template code-->
{{Infobox album
| Name        = Nirvana
| Type        = greatest
| Artist      = [[Nirvana (band)|Nirvana]]
| 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     = *[[Allmusic]] {{Rating|2.5|5}}-->
| Last album  = ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)
| This album  = '''''Nirvana''''' <br /> (2002)
| Next album  = ''[[With the Lights Out]]''<br />(2004)
}}
| <!--display output of live template-->
{{Infobox album
| Name        = Nirvana
| Type        = greatest
| Artist      = [[Nirvana (band)|Nirvana]]
| 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     = *[[Allmusic]] {{Rating|2.5|5}}-->
| Last album  = ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)
| This album  = '''''Nirvana''''' <br /> (2002)
| Next album  = ''[[With the Lights Out]]''<br />(2004)
}}
| <!--display output of sandbox template-->
{{Infobox album/sandbox
| Name        = Nirvana
| Type        = greatest
| Artist      = [[Nirvana (band)|Nirvana]]
| 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     = *[[Allmusic]] {{Rating|2.5|5}}-->
| Last album  = ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)
| This album  = '''''Nirvana''''' <br /> (2002)
| Next album  = ''[[With the Lights Out]]''<br />(2004)
}}
}} <!--end of {{Testcase}}-->

Test 2: Output of live template change

Nirvana
{{{1}}}
Untitled


Nirvana
Greatest hits album by Nirvana
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)From the Muddy Banks of the Wishkah1996
Nirvana
(2002)
With the Lights Out
(2004)With the Lights Out2004
Expanded code
'"`UNIQ--templatestyles-0000000D-QINU`"'<table class="infobox vevent haudio"><tr><th colspan="2" class="infobox-above summary album" style="font-style: italic; background-color: lightsteelblue"><span style="font-style: normal">Untitled</span></th></tr><tr><th colspan="2" class="infobox-header description" style="background-color: lightsteelblue">[[Category:Music infoboxes with unknown value for type|A]]</th></tr></table>[[Category:Pages using infobox album with empty type parameter]]
'"`UNIQ--templatestyles-0000000F-QINU`"''"`UNIQ--templatestyles-00000011-QINU`"''"`UNIQ--templatestyles-00000013-QINU`"'<table class="infobox vevent haudio"><tr><th colspan="2" class="infobox-above summary album" style="font-style: italic; background-color: darkseagreen">Nirvana</th></tr><tr><th colspan="2" class="infobox-header description" style="background-color: darkseagreen">[[Greatest hits album]]&#32;by <span class="contributor">[[Nirvana (band)|Nirvana]]</span></th></tr><tr><th scope="row" class="infobox-label">Released</th><td class="infobox-data published">October 29, 2002</td></tr><tr><th scope="row" class="infobox-label">Recorded</th><td class="infobox-data plainlist">1988–1994</td></tr><tr><th scope="row" class="infobox-label">[[Music genre|Genre]]</th><td class="infobox-data category hlist">[[Grunge music|Grunge]]</td></tr><tr><th scope="row" class="infobox-label">Length</th><td class="infobox-data"><span class="duration"><span class="min">49</span>:<span class="s">38</span></span></td></tr><tr><th scope="row" class="infobox-label">Language</th><td class="infobox-data category">[[English language|English]]</td></tr><tr><th scope="row" class="infobox-label">[[Record label|Label]]</th><td class="infobox-data hlist">[[DGC Records|DGC]]</td></tr><tr><th scope="row" class="infobox-label">[[Record producer|Producer]]</th><td class="infobox-data hlist">[[Steve Albini]], [[Jack Endino]], [[Steve Fisk]], [[Scott Litt]], [[Butch Vig]]</td></tr><tr><th colspan="2" class="infobox-header description" style="background-color: darkseagreen">[[Nirvana (band)|Nirvana]] chronology</th></tr><tr><td colspan="2" class="infobox-full-data"> {| style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse" |- style="line-height: 1.4em;" | style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" | ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)<span style="display:none">[[From the Muddy Banks of the Wishkah]]1996</span> | style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" | '''''Nirvana''''' <br /> (2002) | style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" | ''[[With the Lights Out]]''<br />(2004)<span style="display:none">[[With the Lights Out]]2004</span> |}</td></tr></table>

Test 2: Output of sandbox template change

Nirvana
{{Infobox album
| Name        = Nirvana
| Type        = greatest
| Artist      = [[Nirvana (band)|Nirvana]]
| 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     = *[[Allmusic]] {{Rating|2.5|5}}-->
| Last album  = ''[[From the Muddy Banks of the Wishkah]]''<br />(1996)
| This album  = '''''Nirvana''''' <br /> (2002)
| Next album  = ''[[With the Lights Out]]''<br />(2004)
}}
Untitled


Nirvana
Greatest hits album by Nirvana
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)From the Muddy Banks of the Wishkah1996
Nirvana
(2002)
With the Lights Out
(2004)With the Lights Out2004