الگو:جعبه اطلاعات آلبوم/رنگ/توضیحات

توجه ویرایش

هنگام تغییر این الگو، فراموش نکنید که باید الگو:جعبه اطلاعات آلبوم/پیوند را نیز به روز کنید.

Usage ویرایش

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 ویرایش

CodeColor Display
استودیوlightsteelblue
آلبوم استودیویی اثر هنرمند
نمونه نمايشىpeachpuff
نمونه نمايشى اثر هنرمند
چندآهنگهlightsalmon
آلبوم چندآهنگه اثر هنرمند
زندهburlywood
آلبوم زنده اثر هنرمند
بهترینdarkseagreen
آلبوم بهترین‌ها اثر هنرمند
remixdarkseagreen
آلبوم ریمیکس اثر هنرمند
boxdarkseagreen
کلکسیون جعبه‌ای اثر هنرمند
compilationdarkseagreen
آلبوم گردآوری‌شده اثر هنرمند
تلفیقpeachpuff
تلفیق اثر هنرمند
soundtrackgainsboro
Soundtrack album اثر هنرمند
فیلمgainsboro
موسیقی فیلم اثر هنرمند
ویدئو #99CCFF
موزیک ویدئو اثر هنرمند
lightsteelblue
آلبوم بهترین‌ها اثر هنرمند


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
| {{جعبه اطلاعات آلبوم/رنگ|typename}}
| {{#ifeq:{{جعبه اطلاعات آلبوم/رنگ|typename}}|typecolor|{{شد}}|{{نشد}}}}

Replace typename with the new type name (in example, Epic موسیقی متن), 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
آلبوم استودیویی
استودیو lightsteelblue lightsteelblue ✓
آلبوم استودیویی lightsteelblue lightsteelblue ✓
Double album lightsteelblue lightsteelblue ✓
[[Double album]] lightsteelblue lightsteelblue ✓
آلبوم نمایشی
نمونه نمايشى lightsteelblue peachpuff Х
EP
ep lightsalmon lightsalmon ✓
[[EP]] lightsalmon peachpuff Х
آلبوم زنده
زنده burlywood burlywood ✓
آلبوم زنده burlywood burlywood ✓
بهترین آهنگ‌ها
بهترین darkseagreen darkseagreen ✓
بهترین آهنگ‌ها darkseagreen darkseagreen ✓
Remix album
remix darkseagreen darkseagreen ✓
Remix album darkseagreen darkseagreen ✓
Compilation album
compilation darkseagreen darkseagreen ✓
Compilation album darkseagreen darkseagreen ✓
Box set
box darkseagreen darkseagreen ✓
Box set darkseagreen darkseagreen ✓
آلبوم تلفیقی
تلفیق darkseagreen peachpuff Х
آلبوم تلفیقی darkseagreen peachpuff Х
آلبوم تقلیدی
تقلیدی thistle thistle ✓
آلبوم تقلیدی thistle thistle ✓
Tribute album
tribute thistle lightsteelblue Х
Tribute album thistle lightsteelblue Х
موسیقی متن
موسیقی متن gainsboro gainsboro ✓
Television theme
television gainsboro gainsboro ✓
Television theme gainsboro gainsboro ✓
Film score
film gainsboro gainsboro ✓
Film score gainsboro peachpuff Х
Video album
ویدئو #99CCFF #99CCFF ✓
دی‌وی‌دی #99CCFF #99CCFF ✓
Other cases
peachpuff lightsteelblue Х
xyz peachpuff peachpuff ✓