مندرجات کا رخ کریں

سانچہ:Infobox album/color

آزاد دائرۃ المعارف، ویکیپیڈیا سے


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 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|{{ٹھیک}}|{{ٹھیک نہیں}}}}

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 #F4BF92 lightsalmon Red XN
[[EP]] #F4BF92 lightsalmon Red XN
single album
single album #F4BF92 lightsalmon Red XN
[[سنگل (موسیقی)]] #F4BF92 lightsalmon Red XN
Live album
live burlywood burlywood سبز نشانY
Live album burlywood burlywood سبز نشانY
Greatest hits
greatest #BFE0BF darkseagreen Red XN
Greatest hits #BFE0BF darkseagreen Red XN
Remix album
remix #BFE0BF darkseagreen Red XN
Remix album #BFE0BF darkseagreen Red XN
Box set
box #BFE0BF darkseagreen Red XN
Box set #BFE0BF darkseagreen Red XN
Compilation album
compilation #BFE0BF darkseagreen Red XN
Compilation album #BFE0BF darkseagreen Red XN
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 Red XN
xyz peachpuff peachpuff سبز نشانY

TemplateData

[ترمیم]
ذیل میں اس سانچہ کی معلومات سانچہ دستاویز درج ہے جنہیں بصری خانہ ترمیم اور دیگر آلات استعمال کرتے ہیں۔

معلومات سانچہ Infobox album

Colour selection template for {{خانہ معلومات البم}} and associated templates.

محددات سانچہ[انتظام TemplateData]

پیرامیٹروضاحتطرزحالت
Type1

Type of recording

اِسٹرنگمطلوب
Testing only2

Custom colour value. Not necessary in almost all cases

Unknowndeprecated