• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Infobox album/color

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Infobox album
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Ambox warning orange.svgThis template is used on 183,000+ pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

Contents

  • 1 Important
  • 2 Usage
    • 2.1 Quick reference table
  • 3 Unit test
  • 4 TemplateData

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

CodeColor Display
studiolightsteelblue
Studio album by artist
demolightsteelblue
Demo album by artist
EPlightsalmon
EP by artist
single albumlightsalmon
Single album by artist
liveburlywood
Live album by artist
greatestdarkseagreen
Greatest hits album by artist
remixdarkseagreen
Remix album by artist
boxdarkseagreen
Box set by artist
compilationdarkseagreen
Compilation album by artist
mixtapedarkseagreen
Mixtape by artist
soundtrackgainsboro
Soundtrack album by artist
filmgainsboro
Film score by artist
castgainsboro
Cast recording by artist
video #99CCFF
Video by artist
otherpeachpuff
other 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 File:Green check.svgY mark is seen, it means that self test worked fine. If there is a File:Red x.svgN 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 File:Green check.svgY
Studio album lightsteelblue lightsteelblue File:Green check.svgY
Double album lightsteelblue lightsteelblue File:Green check.svgY
[[Double album]] lightsteelblue lightsteelblue File:Green check.svgY
Demo album
demo lightsteelblue lightsteelblue File:Green check.svgY
EP
ep lightsalmon lightsalmon File:Green check.svgY
[[EP]] lightsalmon lightsalmon File:Green check.svgY
single album
single album lightsalmon lightsalmon File:Green check.svgY
[[single album]] lightsalmon lightsalmon File:Green check.svgY
Live album
live burlywood burlywood File:Green check.svgY
Live album burlywood burlywood File:Green check.svgY
Greatest hits
greatest darkseagreen darkseagreen File:Green check.svgY
Greatest hits darkseagreen darkseagreen File:Green check.svgY
Remix album
remix darkseagreen darkseagreen File:Green check.svgY
Remix album darkseagreen darkseagreen File:Green check.svgY
Box set
box darkseagreen darkseagreen File:Green check.svgY
Box set darkseagreen darkseagreen File:Green check.svgY
Compilation album
compilation darkseagreen darkseagreen File:Green check.svgY
Compilation album darkseagreen darkseagreen File:Green check.svgY
Cover album
cover lightsteelblue lightsteelblue File:Green check.svgY
Cover album lightsteelblue lightsteelblue File:Green check.svgY
Tribute album
tribute lightsteelblue lightsteelblue File:Green check.svgY
Tribute album lightsteelblue lightsteelblue File:Green check.svgY
Soundtrack
soundtrack gainsboro gainsboro File:Green check.svgY
Television theme
television gainsboro gainsboro File:Green check.svgY
Television theme gainsboro gainsboro File:Green check.svgY
Film score
film gainsboro gainsboro File:Green check.svgY
Film score gainsboro gainsboro File:Green check.svgY
Cast album
cast gainsboro gainsboro File:Green check.svgY
Cast album gainsboro gainsboro File:Green check.svgY
Cast recording gainsboro gainsboro File:Green check.svgY
Video album
video #99CCFF #99CCFF File:Green check.svgY
dvd #99CCFF #99CCFF File:Green check.svgY
Other cases
peachpuff lightsteelblue File:Red x.svgN
xyz peachpuff peachpuff File:Green check.svgY

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Infobox album

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

Template parameters

ParameterDescriptionTypeStatus
Type1

Type of recording

Stringrequired
Testing only2

Custom colour value. Not necessary in almost all cases

Unknowndeprecated
The above documentation is transcluded from Template:Infobox album/color/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Infobox_album/color&oldid=19793"
Categories:
  • Pages with broken file links
  • Templates using TemplateData
  • Template implementation details
  • Color templates
Last edited on 5 February 2019, at 14:29

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 5 February 2019, at 14:29.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop