Template:Infobox Album/color

From ZineWiki
< Template:Infobox Album
Revision as of 22:49, 16 February 2007 by Bradleyadita (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Important

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

Usage

This template is an auxiliary one and should be only used by the Template:Tl template. Based on the type of album this template receives, it returns the color that will be used.

Quick reference table

Types Color Codes
bgcolor="{{#switch: ep ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}" |EPs||{{#switch: ep

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||ep

bgcolor="{{#switch: studio ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}" |Original studio albums||{{#switch: studio

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||studio

bgcolor="{{#switch: live ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}" |Live albums and live EPs||{{#switch: live

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||live

bgcolor="{{#switch: greatest ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Greatest hits||{{#switch: greatest

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||greatest

bgcolor="{{#switch: remix ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Remixes||{{#switch: remix

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||remix

bgcolor="{{#switch: box ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Box sets||{{#switch: box

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||box

bgcolor="{{#switch: compilation ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Other Compilations||{{#switch: compilation

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||compilation

bgcolor="{{#switch: cover ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Cover albums||{{#switch: cover

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||cover

bgcolor="{{#switch: tribute ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}" |Tribute albums||{{#switch: tribute

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||tribute

bgcolor="{{#switch: soundtrack ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Soundtracks ||{{#switch: soundtrack

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||soundtrack

bgcolor="{{#switch: television ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Television themes||{{#switch: television

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||television

bgcolor="{{#switch: film ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Film Scores||{{#switch: film

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||film

bgcolor="{{#switch: unknown ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}"|Unknown type||{{#switch: unknown

ep=lightsalmon studio album|album|album|studio=lightsteelblue double album= lightsteelblue live album|live=burlywood greatest hits|greatest=darkseagreen box set|box=darkseagreen compilation album|compilation=darkseagreen remix album|remix=darkseagreen cover album|cover=thistle tribute album|tribute=thistle soundtrack|soundtrack album|soundtrack=gainsboro television|theme=gainsboro film score|film=gainsboro single|singles|singles=khaki {{{2}}}|peachpuff}}

}}||N/A

Valid arguments

  • EP
  • Studio album
  • Live album
  • Greatest hits
  • Box set
  • Compilation album
  • Remix album
  • Cover
  • Tribute album
  • Soundtrack
  • Television theme
  • Film score

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 Template:Y mark is seen, it means that self test worked fine. if there is a Template: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:

| {{Template:Infobox Album color|typename}}
| 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.

Template usage Expected Obtained Test

Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test Template:Infobox Album/color/unit test