Plantilla:Infobox album/testcases
This is the template test cases page for the sandbox of Plantilla:Infobox album. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Main tests[editar código]
Normal parameters[editar código]
This test uses the normal parameters from WP:ALBUM#Code, which excludes the advanced parameters at WP:ALBUM#Advanced usage.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
All parameters[editar código]
This test uses all of the parameters at WP:ALBUM#Advanced usage.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Example from a real article, with Singles template[editar código]
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Video parameters[editar código]
This test tests the parameters needed to merge {{Infobox music DVD}}
with {{Infobox album}}
. See WT:ALBUM#Video infobox.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Album with cover[editar código]
This album cover is public domain, so we can use it in a test case.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Artist name that starts with numbers followed by lower-case letters[editar código]
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Auxiliary tests[editar código]
"Name" parameter missing[editar código]
This should generate "Untitled" unitalicized.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Name" parameter with empty value[editar código]
This tests Name=
. Like the test with a missing "name" parameter, this should generate "Untitled" unitalicized.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Type" parameter with "single" and "song" values[editar código]
These values are not supposed to be supported as specific infoboxes exist. So the infobox should display in its default apricot color.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Cover" parameter with empty value[editar código]
This tests |Cover=
, which should leave the area blank.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Cover" parameter with "blank" value[editar código]
This tests |Cover=blank
, which should leave the area blank.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Cover" parameter with "???" value[editar código]
This tests the use of |Cover=???
which should use File:Nocover.png as a cover, rather than show a red link to Image:???.
{{Infobox album}}
Untitled |
---|
Untitled |
---|
"Caption" parameter with multi-line value[editar código]
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Chronology parameters with multi-line values[editar código]
{{Infobox album}}
Untitled |
---|
Untitled |
---|
Regression tests[editar código]
Album name with double exclamation point[editar código]
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.
{{Infobox album}}
Untitled |
---|
Untitled |
---|