Template:Infobox album/color/doc
呢頁係Template: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
編輯Code | Color | Display |
---|---|---|
studio | lightsteelblue | 藝術家嘅錄音室專輯 |
demo | lightsteelblue | 藝術家嘅樣本唱片 |
EP | lightsalmon | 藝術家嘅細碟 |
single album | lightsalmon | 藝術家嘅單曲專輯 |
live | burlywood | 藝術家嘅現場專輯 |
greatest | darkseagreen | 藝術家嘅精選集 |
remix | darkseagreen | 藝術家嘅混音專輯 |
box | darkseagreen | 藝術家嘅套裝專輯 |
compilation | darkseagreen | 藝術家嘅合輯 |
mixtape | darkseagreen | 藝術家嘅混音帶 |
cover | thistle | 藝術家嘅翻唱專輯 |
tribute | thistle | 藝術家嘅致敬專輯 |
soundtrack | gainsboro | 藝術家嘅原聲帶 |
film | gainsboro | 藝術家嘅電影配樂 |
cast | gainsboro | 藝術家嘅演員錄音 |
video | #99CCFF | 藝術家嘅音樂短片 |
other | peachpuff | 藝術家嘅other |
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 | {{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 | |
Studio album | lightsteelblue | lightsteelblue | |
Double album | lightsteelblue | lightsteelblue | |
[[Double album]] | lightsteelblue | lightsteelblue | |
Demo album | |||
demo | lightsteelblue | lightsteelblue | |
EP | |||
ep | lightsalmon | lightsalmon | |
[[EP]] | lightsalmon | lightsalmon | |
single album | |||
single album | lightsalmon | lightsalmon | |
[[single album]] | lightsalmon | lightsalmon | |
Live album | |||
live | burlywood | burlywood | |
Live album | burlywood | burlywood | |
Greatest hits | |||
greatest | darkseagreen | darkseagreen | |
Greatest hits | darkseagreen | darkseagreen | |
Remix album | |||
remix | darkseagreen | darkseagreen | |
Remix album | darkseagreen | darkseagreen | |
Box set | |||
box | darkseagreen | darkseagreen | |
Box set | darkseagreen | darkseagreen | |
Compilation album | |||
compilation | darkseagreen | darkseagreen | |
Compilation album | darkseagreen | darkseagreen | |
Cover album | |||
cover | thistle | thistle | |
Cover album | thistle | thistle | |
Tribute album | |||
tribute | thistle | thistle | |
Tribute album | thistle | thistle | |
Soundtrack | |||
soundtrack | gainsboro | gainsboro | |
Television theme | |||
television | gainsboro | gainsboro | |
Television theme | gainsboro | gainsboro | |
Film score | |||
film | gainsboro | gainsboro | |
Film score | gainsboro | gainsboro | |
Cast album | |||
cast | gainsboro | gainsboro | |
Cast album | gainsboro | gainsboro | |
Cast recording | gainsboro | gainsboro | |
Video album | |||
video | #99CCFF | #99CCFF | |
dvd | #99CCFF | #99CCFF | |
Other cases | |||
peachpuff | peachpuff | ||
xyz | peachpuff | peachpuff |
TemplateData
編輯TemplateData for Infobox album/color嘅TemplateData
Colour selection template for {{Infobox album}} and associated templates.
參數 | 描述 | 類 | 狀態 | |
---|---|---|---|---|
Type | 1 | Type of recording | 字串 | 必填 |
Testing only | 2 | Custom colour value. Not necessary in almost all cases | 唔知 | 停用 |