Templat:Infobox album/color

Daripada Wikipedia, ensiklopedia bebas.
Lompat ke: pandu arah, cari

Important[sunting | sunting sumber]

When modifying this template, don't forget to update Template:Infobox album/link.

Usage[sunting | sunting sumber]

This is an auxiliary template which should be only used by the {{Infobox album}} template. The first parameter should be one of the codes from the table below, representing a type of album (parameter "Type"). The template returns the color that will be used.

Quick reference table[sunting | sunting sumber]

Templat:Infobox album/doc/type

Unit test[sunting | sunting sumber]

If at any time the Expected and Obtained columns do not match, this template can be considered broken. This table makes the template automatically check itself. If a YesY mark is seen, it means that self test worked fine. If there is a Red XN mark, it means the test failed. Whenever you make a modification to the template, please save the page, hit CTRL+F5, and check if all the self tests have passed. If you add a new type to the template, remember to add the type using this format:

| <nowiki>typename</nowiki>
| typecolor
| {{Template:Infobox album/color|typename}}
| {{#ifeq:{{Template:Infobox album/color|typename}}|typecolor|{{y}}|{{n}}}}

Replace typename with the new type name (in example, Epic soundtrack), and typecolor with the color assigned to the type (in example, brown). See Wikipedia:Colours and Wikipedia:Infobox colours for additional information.

Note: Sometimes the test may pass while previewing the page, but once saved the test would fail, no matter how many times the cache is cleared. In this case, please click this link to purge the cache. If that doesn't solve the problem, please post a note in the Talk page of the template and an editor will review the changes.

Code Expected Obtained Test
Studio album
studio lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Studio album lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Double album lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
[[Double album]] lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Demo album
demo lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
EP
ep lightsalmon Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
[[EP]] lightsalmon Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Live album
live burlywood Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Live album burlywood Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Greatest hits
greatest darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Greatest hits darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Remix album
remix darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Remix album darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Box set
box darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Box set darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Compilation album
compilation darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Compilation album darkseagreen Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Cover album
cover lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Cover album lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Tribute album
tribute lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Tribute album lightsteelblue Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Soundtrack
soundtrack gainsboro Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Television theme
television gainsboro Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Television theme gainsboro Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Film score
film gainsboro Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Film score gainsboro Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Video album
video #99CCFF Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
dvd #99CCFF Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
Other cases
peachpuff Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]
xyz peachpuff Templat:Infobox album/color [[:#ifeq:Templat:Infobox album/color]]