Nenda kwa yaliyomo

Kigezo:Infobox Album/color/doc

Kutoka Wikipedia, kamusi elezo huru

Important

[hariri chanzo]

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

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

[hariri chanzo]
KodiColor Mwonekano
studiolightsteelblue
Studio album by artist
demolightsteelblue
Demo album by artist
eplightsalmon
EP by artist
liveburlywood
Live album by artist
greatestdarkseagreen
Greatest hits by artist
remixdarkseagreen
Remix album by artist
boxdarkseagreen
Box set by artist
compilationdarkseagreen
Compilation album by artist
coverthistle
Cover album by artist
tributethistle
Tribute album by artist
soundtrackgainsboro
Soundtrack by artist
televisiongainsboro
Television theme by artist
filmgainsboro
Film score by artist
video #99CCFF
Video by artist
khaki
by artist

Unit test

[hariri chanzo]

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 Yes mark is seen, it means that self test worked fine. If there is a Red X 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 lightsteelblue Yes
Studio album lightsteelblue lightsteelblue Yes
Double album lightsteelblue lightsteelblue Yes
[[Double album]] lightsteelblue lightsteelblue Yes
Demo album
demo lightsteelblue lightsteelblue Yes
EP
ep lightsalmon lightsalmon Yes
[[EP]] lightsalmon lightsalmon Yes
Live album
live burlywood burlywood Yes
Live album burlywood burlywood Yes
Greatest hits
greatest darkseagreen darkseagreen Yes
Greatest hits darkseagreen darkseagreen Yes
Remix album
remix darkseagreen darkseagreen Yes
Remix album darkseagreen darkseagreen Yes
Box set
box darkseagreen darkseagreen Yes
Box set darkseagreen darkseagreen Yes
Compilation album
compilation darkseagreen darkseagreen Yes
Compilation album darkseagreen darkseagreen Yes
Cover album
cover thistle thistle Yes
Cover album thistle thistle Yes
Tribute album
tribute thistle thistle Yes
Tribute album thistle thistle Yes
Soundtrack
soundtrack gainsboro gainsboro Yes
Television theme
television gainsboro gainsboro Yes
Television theme gainsboro gainsboro Yes
Film score
film gainsboro gainsboro Yes
Film score gainsboro gainsboro Yes
Video album
video #99CCFF #99CCFF Yes
dvd #99CCFF #99CCFF Yes
Other cases
peachpuff khaki Red X
xyz peachpuff khaki Red X