आकृति:Infobox album/color

मैथिली विकिपिडियासँ, एक मुक्त विश्वकोश
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Important[सम्पादन करी]

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

Usage[सम्पादन करी]

This is an auxiliary template used by the {{Infobox album}} template, as well as other templates used in it and {{Infobox song}}'s |misc= parameter: {{Singles}}, {{Extra album cover}}, {{Extra chronology}}, {{Extra track listing}}, {{External music video}} and {{Audio sample}}. It should never be used on its own. 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[सम्पादन करी]

आकृति:Infobox album/doc/type

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

TemplateData[सम्पादन करी]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Infobox album

Colour selection template for {{Infobox album}} and associated templates.

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
Type1

Type of recording

स्ट्रिंगआवश्यक
Testing only2

Custom colour value. Not necessary in almost all cases

अज्ञातडेप्रिकेटिड