Предлошка:Инфокутија Албум/боја

Од Википедија — слободната енциклопедија
Икона за документација Документација за предлошка[преглед] [уреди] [историја] [превчитај]
Оваа предложна документација е превметната од Предлошка:Инфокутија Албум/боја/doc [уреди]

Important[уреди извор]

When modifying this template, don't forget to update Шаблон:Инфокутија Албум/врска.

Usage[уреди извор]

This is an auxiliary template which should be only used by the {{Инфокутија Албум}} 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[уреди извор]

CodeБоја Display
студиоpeachpuff
Студиски албум by artist
демоpeachpuff
Демо албум by artist
епpeachpuff
ЕП by artist
на живоpeachpuff
Албум во живо by artist
најголемиpeachpuff
Најголеми хитови by artist
ремиксpeachpuff
Ремикс албум by artist
боксpeachpuff
Бокс сет by artist
компилацијаpeachpuff
Комилациски албум by artist
римејкpeachpuff
Римејк албум by artist
трибјутpeachpuff
трибјут by artist
саундтракpeachpuff
филмски албум by artist
телевизијаpeachpuff
Телевизиски мотив by artist
филмpeachpuff
Филмска музика by artist
видеоpeachpuff
Видео албум by artist
peachpuff
by artist

Unit test[уреди извор]

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 ДаД mark is seen, it means that self test worked fine. If there is a НеН 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
| {{Шаблон:Инфокутија Албум/боја|типиме}}
| {{#ifeq:{{Шаблон:Инфокутија Албум/боја|типиме}}|типбоја|{{д}}|{{н}}}}

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
Студиски албум
студио/nowiki> | lightsteelblue | {{Инфокутија Албум/боја|студио}} | {{#ifeq:{{Инфокутија Албум/боја|студио}}|lightsteelblue|{{y}}|{{n}}}} |- | <nowiki>Студиски албум lightsteelblue peachpuff НеН
Двоен албум lightsteelblue peachpuff НеН
[[Двоен албум]] lightsteelblue lightsteelblue ДаД
Демо албум
демо lightsteelblue peachpuff НеН
ЕП
еп lightsalmon peachpuff НеН
[[ЕП]] lightsalmon peachpuff НеН
Албум на живо
живо burlywood peachpuff НеН
Албум на живо burlywood peachpuff НеН
Најголеми хитови
најголеми darkseagreen peachpuff НеН
Најголеми хитови darkseagreen peachpuff НеН
Ремикс албум
ремикс darkseagreen peachpuff НеН
Ремикс албум darkseagreen peachpuff НеН
Бокс сет
бокс darkseagreen peachpuff НеН
Бокс сет darkseagreen peachpuff НеН
Компилациски албум
компилација darkseagreen peachpuff НеН
Компилациски албум darkseagreen peachpuff НеН
Римејк албум
римејк thistle peachpuff НеН
Римејк албум thistle peachpuff НеН
Трибјут албум
трибјут thistle peachpuff НеН
Трибјут албум thistle peachpuff НеН
Саундтрак
саундтрак gainsboro peachpuff НеН
Телевизиски мотив
телевизија gainsboro peachpuff НеН
Телевизиски мотив gainsboro peachpuff НеН
Филмска музика
филм gainsboro peachpuff НеН
Филмска музика gainsboro peachpuff НеН
Видео албум
видео #99CCFF peachpuff НеН
двд #99CCFF peachpuff НеН
Друг случак
peachpuff peachpuff ДаД
xyz peachpuff peachpuff ДаД