Template talk:Infobox album/color

Special case
The  Album  is a case that is used very commonly, and I am not sure we can handle, as the middle pipe may break the switch statement. I am sure if we can fix it we will be solving easily half the cases. -- ReyBrujo 14:15, 18 September 2006 (UTC)
 * Well, seemly I fixed that. I had to add the line ALBUM=lightsteelblue in a single line, which makes the template look "broken" while editing it:


 * Please do not change that odd looking line, because it breaks the template :( -- ReyBrujo 14:59, 18 September 2006 (UTC)
 * Could we maybe do a similar thing for EP, because a lot of articles use this pipe-link? --HarryCane 13:44, 21 September 2006 (UTC)
 * We could. However, the idea is to remove as many "types" as possible, until we have only 10 or so, one for every type. Don't worry, in the few days since the change was implemented, there have been several fixing the non standard types. From 4,400 broken types, there are now around 1,000 less. I hope in less than a month we will have all of them fixed, including EP, and then we will be able to start a new discussion about which types should we remove. -- ReyBrujo 13:55, 21 September 2006 (UTC)
 * Valid point. But for the time being, wouldn't it be wise to allow the background color to be changed manually, for any special cases that arise? Pages like The Early November/I Am the Avalanche simply look messed up right now &mdash; I think any spilt record will create a similar issue (calling it "Split", "Split record", or "Split EP"), maybe there should be a seperate color for split records alltogether). --HarryCane 14:33, 22 September 2006 (UTC)
 * I have fixed it. That is a compatibility problem with Extra chronology which Extra chronology 2 solves (as the former was protected when the infobox update was made). I will try to merge the changes of Extra chronology 2 into Extra chronology tomorrow, but we need to be careful, as it is shared with the single infoboxes. For now, if you find yourself in a similar situation, replace the old Extra chronology template with the new one, replacing the background color with the type specified in the infobox, as I did in your example. -- ReyBrujo 18:17, 22 September 2006 (UTC)
 * Can't bot's cleanup this kind of stuff? And what do we say are Demo's and Mixtape's? - Ashadeofgrey 18:52, 24 September 2006 (UTC)
 * Yes, most of the EP to EP have no problem, but some (in example, the ones that are right now in the maintenance category) need to be handled manually. -- ReyBrujo 21:32, 24 September 2006 (UTC)

Hey, how can you pull up a list of the pages using a broken type? I've been going around replacing piped 'Album (music)' links, it would be useful to see what's left. --Alcuin 04:37, 4 October 2006 (UTC)
 * There is no list still. You can go to Category:Non-standard album infoboxes to check all the errors. -- ReyBrujo 05:03, 4 October 2006 (UTC)
 * Thanks, that's what I was looking for --Alcuin 06:16, 4 October 2006 (UTC)

Why is orange back?
The light steel blue took a little getting used to, but I was quite happy with it. For some reason, the color scheme has been reverted back to orange, which is quite jarring. What was wrong with the new colors? Was there a technical issue that could only be resolved by reverting, or was it reverted out of one user's personal preference? I thought the new color scheme was based on consensus. --Alcuin 22:27, 26 September 2006 (UTC)
 * Apparently, it was to bring more attention to the color discussion at the WikiProject Album. The lightsteelblue color was accepted due consensus, so it should be back soon. -- ReyBrujo 22:51, 26 September 2006 (UTC)
 * Well, he got mine. I didn't bother voting before, but I prefer the blue.  Where's the place to comment/express opinions on this, anyway?  Surely I'm not the first to notice the switch back.  --Alcuin 23:03, 26 September 2006 (UTC)
 * At Wikipedia talk:WikiProject Albums → A z a  Toth 23:16, 26 September 2006 (UTC)
 * Yee-hah! Banish garish colors! :-) Fantailfan 23:26, 26 September 2006 (UTC)

Live/Cover EP
Could we maybe enhance the Cover album/Live album codes so that they also accept Live EP and Cover EP? --HarryCane 13:23, 9 October 2006 (UTC)
 * Yea, especially for Live EP. It doesn't make sense to me why it isnt already in there, as the category is specifically called "Live albums and live EPs". -- Reaper  X 
 * See here for a discussion. -- ReyBrujo 17:15, 14 October 2006 (UTC)

album (music)|album
There are now few (if any) infoboxes that use this piped link. I'd go ahead and remove it from the template, but I'm afraid of breaking the template. So I'll let someone more skilled do it. Thanks. --Alcuin 18:30, 11 October 2006 (UTC)
 * Done. Next time try it out yourself. At worst, you can always revert back :-) -- ReyBrujo 18:49, 11 October 2006 (UTC)
 * Thanks --Alcuin 19:04, 11 October 2006 (UTC)

Automatically linked types?
Am I crazy, or did the types automatically get linked before? Like right now, if I just set type=Album, I get Album in the infobox, but I'm sure it was Album before. Am I crazy? Joltman 12:37, 12 October 2006 (UTC)
 * Infobox Album/link should be updated whenever this template is updated. -- ReyBrujo 12:42, 12 October 2006 (UTC)

Questions

 * Hi, I was wondering how would you know if an album article would be classified as a Cover album? Would You Light up My Life: Inspirational Songs be classified as a cover album?
 * 1) Would Christmas albums be classified as a Cover album? Lillygirl 5:35, 26 November 2006.


 * You are more likely to get answers at Wikipedia talk:WikiProject Albums. Jogers (talk) 11:05, 26 November 2006 (UTC)


 * Ok, thank you. I'll post it there. Lillygirl 14:22, 26 November 2006.

Gospel albums
Since there already are a number of articles on gospel albums (country or otherwise), do you think it's a good idea to create a special album/color denoter for gospel albums? Your thoughts are appreciated. Briguy52748 03:44, 28 January 2007 (UTC)]]
 * Please contact WikiProject Albums, where you will get a better feedback. -- ReyBrujo 05:39, 28 January 2007 (UTC)
 * Thought I'd try here first, but Roger that and 10-4. Briguy52748 20:42, 28 January 2007 (UTC)]]

Proposed change: add type "demo"
Proposed change, per discussion at Template talk:Infobox Album, for future editprotected if accepted: --PEJL 11:49, 11 August 2007 (UTC)
 * Add the line: " " before the line: " "
 * Move the documentation to an unprotected subarticle /doc
 * Perform the change request at Template talk:Infobox Album/link in tandem.
 * OK, let's do this. --PEJL 13:45, 13 August 2007 (UTC)


 * ✅ Done Nihiltres ( t .l ) 02:04, 14 August 2007 (UTC)

Requested change: Add type "video"
Requested change, needed to merge Template:Infobox Album and Template:Infobox music DVD as discussed at WT:ALBUM. While no final decision to merge has been made, I'm prototyping how such a change would work, and this is needed for such a prototype. It can be reverted if we later decide not to merge. Requested changes: --PEJL 11:02, 2 October 2007 (UTC)
 * Add the line  before the line.
 * Perform the change request at Template talk:Infobox Album/link in tandem.
 * Done. Jogers (talk) 12:38, 2 October 2007 (UTC)


 * Thanks Jogers. Unfortunately it didn't work quite as intended. See the breakage at Template:Infobox Album/color/doc and Template:Infobox Album/testcases. I think the problem is that the hash sign needs to be escaped. Let's try changing  to  . --PEJL 12:55, 2 October 2007 (UTC)
 * Seems to work now despite what test unit says... Jogers (talk) 13:10, 2 October 2007 (UTC)
 * Yep, and I've already fixed the test. Thanks! --PEJL 13:11, 2 October 2007 (UTC)

Req: Minor adjustment to avoid false negative in unit tests
editprotected

The unit tests return a false negative for the "video" color. Thanks to the assistance of User:Csernica at Village pump (technical) we can avoid this problem by making a minor adjustment to the color value for "video". Please change  to. (This alone won't make the test pass, we'll need to update the test as well.) --PEJL 21:23, 17 October 2007 (UTC)
 * That worked, nice! I had been trying to come with a solution to fix that false positive, glad to see others solved it! -- ReyBrujo 01:25, 18 October 2007 (UTC)

Req: Support "DVD" as alias for "video"
Please change  to , per WT:ALBUM. --PEJL 10:57, 18 October 2007 (UTC)

Req: Add DJ mix
editprotected Missing on this album type list is "DJ mix". Please note that this is not the same as a compilation album or a remix album, which are presently supported in this template. Here are example articles that could benefit from this addition: Funky Skunk, Uproot, et al. (see also this list.) I'm not sure what colour to associate this with, so an editor familiar with this template should ideally add it. Thanks for your consideration. + m t  05:21, 20 January 2009 (UTC)
 * Red information icon with gradient background.svg Not done for now: You should probably place this request at Template talk:Infobox Album, since editors there will be able to formulate a more specific request, including deciding what color to make it, etc..--Aervanath (talk) 16:28, 21 January 2009 (UTC)
 * OK, discussion now at Template talk:Infobox Album. + m t  19:05, 21 January 2009 (UTC)

Add song color
Please add the following color to the template's switch statement after the similar statement for "single".



Note that  and   should be part of the template (as shown) in order to avoid issues with the "#" character.

Rationale: Other templates used via the Misc parameter of, , and use this template to create the proper color for heading rows. This template supports all the type values for (for which it was designed) and it also supportssingle. It currently does not support song and that negatively affects the use of those templates with the template. Adding the line above to the switch statement will fix that, and will help to keep the colors associated with the Type parameters all in one place. &mdash; John Cardinal (talk) 04:48, 24 November 2009 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 07:08, 24 November 2009 (UTC)

Req: Remix EP
I'd like to request an addition to the "Remix Album" portion of the colour coding to allow a darkseagreen shade for a "Remix EP". Examples of articles that need Remix EP templates are Remixes (Coldplay album) and It's Time Remixes. RazorEye ⡭ ₪ ·o' ⍦ ࿂ 05:22, 7 February 2013 (UTC)


 * There's already a remix category and an extended play category. Creating a "remix ep" category is a question that should probably be brought up to more members.  This template doesn't get much traffic and the top of the page suggests that non-technical questions about the template should probably be brought up at WikiProject Albums.  So, I brought that question up for you on the Wikiproject Albums talk page.  I've also marked your edit request as answered, so that further discussion is focused over there.  If you'd like any further help, contact me on my user talk page.  You might instead want to put a {  { help me }  } template up on your own user talk, or put the {  { editprotected }  } template back up on this page and either way someone will be along to help you. :) Banaticus (talk) 01:50, 22 February 2013 (UTC)

Visual albums
As it seems they are going to be common in the future, can the terms "visual" and "visual album" be added together with "video" (|video|dvd|visual|visual album=). Thanks. ©  Tb hotch ™ (en-2.5). 03:01, 21 August 2016 (UTC)
 * Have you had prior discussions about aliasing "visual" and "visual album"? (i.e. is WikiProject Albums aware?) In what situations (or pages) will this param be used? — Andy W.  ( talk  · ctb) 05:56, 21 August 2016 (UTC)
 * , it was just a quick question. FYI, visual or visual album is unknown to the sister template Template:Infobox album/link, which would also need to be updated to generate the appropriate link. Re-open this request if you still want the change for more visibility. — Andy W.  ( talk  · ctb) 15:13, 21 August 2016 (UTC)

Category
Is it possible to make a Category for with missing or invalid type field? Is it necessary to make tracking subpage like in Infobox musical artist? — SimplyFreddie (talk) 13:07, 26 March 2021 (UTC)

EP and compilation colors are failing accessibility guidelines
Both colors are failing WCAG 2.0's AA level compliance with blue links text (#0645AD) per MOS:CONTRAST and this is the case for almost every color use as this row always has linked text. I suggest just to replace both colors to lighter colors variants used in Infobox musical artist/color.


 * ✅? and curious about the other dark bg's as well as why these two changes fail the test on the /doc page?  P.I. Ellsworth &thinsp;, ed.  put'r there 16:31, 18 June 2022 (UTC)


 * @Paine Ellsworth, yeah, the other values with old colors should be also replaced with the new ones. I've fixed the documentation and it should not show any errors after complete update. Also check the proposal below. Solidest (talk) 17:13, 18 June 2022 (UTC)
 * Please change color for single album (use the same color as EP), greatest hits album, remix album, box set, and mixtape (use the same color as compilation album) too. PepeBonus (talk) 06:57, 19 June 2022 (UTC)
 * @Paine Ellsworth Please help to update "single album", "greatest hits", "box set", and "remix album" to the following code (due to read mode limitations, please go to into edit mode and copy-paste the coding as the "& #32;" syntax is rendering in read mode, sorry for the inconvenience) :


 * Rationale is as mentioned by Solidest above, where lightsalmon (#ffa07a) and darkseagreen (#8fbc8f) both fails MOS:CONTRAST in which only "extended play" and "compilation album" coding were updated. Thanks!  — Paper9oll  (🔔 • 📝)  04:58, 20 June 2022 (UTC)
 * the above code was checked in "preview" and without the &amp;#32; the number sign renders as "1.", so that needs further testing. You say that the &amp;#32; syntax is rendering in read mode. What does that mean? and can you show an example?  P.I. Ellsworth &thinsp;, ed.  put'r there 15:00, 20 June 2022 (UTC)
 * @Paine Ellsworth Ah I know why it works for you, because you type "& amp;#32;" (ignore the spacing) while I type "&#32 ;" (ignore the spacing). The &amp;#32; is actually within the code when you make the changes per this diff (do you happen to see that or is it my browser problem, I don't know), the above code I simply copy-paste from the live version and replaced "lightsalmon" with "&amp;#32;#f4bf92" and darkseagreen with "&amp;#32;#bfe0bf" other than that nothing was changed.  — Paper9oll  (🔔 • 📝)  15:21, 20 June 2022 (UTC)
 * Now I see what you mean. It looks like the next edit request takes care of those color contrast changes.  P.I. Ellsworth &thinsp;, ed.  put'r there 15:30, 20 June 2022 (UTC)

Improving the code
I've reworked the code with few improvements:
 * it includes the changes from the request above (replacing non-accessible color variants for ep/compilation and so on)
 * replaced wikilinked values with the use of delink
 * excluded unusual variants, such as "gh", "movie soundtrack", "vid", etc. I've checked the number of uses of every aka from this template and Infobox album/link (must be synchronised, but were not) via the search, and removed poorly used or unused values. This will result about 30-50 articles to be added to that I'm going to fix manually.
 * also formatted the code to the prettier view and removed duplicated colors thereby.

So the whole template can be replaced with the following code:

Infobox album/color code:

The paired code for Infobox album/link:

There shouldn't be any problems, as I've tested and used such code in a linked template of the same functionality on the Russian Wikipedia. Solidest (talk) 20:39, 18 June 2022 (UTC)


 * @Paine Ellsworth, I've just replaced the capitalisation of the hex codes for one view (so that it also conforms to the Infobox song/color format), and you've already inserted the previous version. So another change is needed here :) Solidest (talk) 15:39, 20 June 2022 (UTC)
 * Or maybe we should make them lowercase instead? I'm not sure about the policy on writing templates about this. Solidest (talk) 15:40, 20 June 2022 (UTC)
 * We'll wait for awhile, so as not to overload the servers with too many changes. This template is used on 184K pages. So you have time to figure out just what is needed. (I've never seen a hexcode usage where case made a difference – both uc and lc work equally well.)  P.I. Ellsworth &thinsp;, ed.  put'r there 15:43, 20 June 2022 (UTC)
 * @Paine Ellsworth, I guess uppercase is correct per Help:Using colours, Infobox color, Web colors (although a lowercase also occurs in documentation – Infobox#Subboxes). Solidest (talk) 16:40, 20 June 2022 (UTC)
 * @Paine Ellsworth, so what's about the final change of the hex-codes case? so that the tests worked correctly. Based on the manuals, it's recommended to 1) use a single formatting within the code, and then 2) not change the previous formatting style within the whole code. So it was correct to add uppercase initially. Solidest (talk) 12:04, 12 July 2022 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 18:12, 13 July 2022 (UTC)


 * And for historical purposes, removed poorly used variants from both /color and /link: . Solidest (talk) 16:46, 20 June 2022 (UTC)