Test 1: Default settings

සංස්කරණය
  • Title bar: defaults to 1st unnamed parameter
  • Layout: defaults to "vertical"
{{testcase
|{{WPHawaii|category=no|class=NA}}
|{{WPHawaii|category=no|class=NA}}
|{{WPHawaii/sandbox|category=no|class=NA}}
}}

Test 1: Output of live template

සංස්කරණය
{{WPHawaii|category=no|class=NA}}
{{WPHawaii|category=no|class=NA}}
සැකිල්ල:WPHawaii
සැකිල්ල:WPHawaii/sandbox
Expanded code
[[:සැකිල්ල:WPHawaii]]
[[:සැකිල්ල:WPHawaii/sandbox]]

Test 1: Output of sandbox template

සංස්කරණය
{{WPHawaii|category=no|class=NA}}
<includeonly></includeonly> style="background:none; border:none; padding:0; margin:0; white-space: pre-wrap; word-wrap: break-word;">{{{1}}}
සැකිල්ල:WPHawaii
සැකිල්ල:WPHawaii/sandbox
Expanded code
[[:සැකිල්ල:WPHawaii]]
[[:සැකිල්ල:WPHawaii/sandbox]]

Test 2: Non-default settings

සංස්කරණය
  • Title bar: specified via the id parameter
  • Layout: specified via the layout parameter
{{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

සංස්කරණය
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


සැකිල්ල:Infobox album/sandbox

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></table>[[Category:Pages using infobox album with empty type parameter]]
[[:සැකිල්ල:Infobox album/sandbox]]

Test 2: Output of sandbox template

සංස්කරණය
Nirvana
<includeonly></includeonly> style="background:none; border:none; padding:0; margin:0; white-space: pre-wrap; word-wrap: break-word;">{{{1}}}
Untitled


සැකිල්ල:Infobox album/sandbox

Expanded code
'"`UNIQ--templatestyles-00000012-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></table>[[Category:Pages using infobox album with empty type parameter]]
[[:සැකිල්ල:Infobox album/sandbox]]
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Testcase/testcases&oldid=689054" වෙතින් සම්ප්‍රවේශනය කෙරිණි