Template talk:Infobox cocktail

message: I feel it would be extremely helpful if all the mixed drinks, particularly cocktails, featured in this WikiProject could have a standardised introduction featuring basic information such as, in no particular order:
*Name
*Primary source of alcohol (where appropriate)
*Brief list of ingredients and quantities (see this page for a discussion of the format of said quantities)
*Prefered glassware
*A picture
*Whether or not it's an IBA Official Cocktail, perhaps through the inclusion of an IBA logo (with link to IBA)
The most convenient method of arranging this information in a standard way would appear to be in a template.  Assuming that others agree that a template would be necessary and/or helpful, the purpose of this page is to create such a template. 
Happy-melon 13:29, 13 January 2007 (UTC)
thread_title: Initial proposal

message: As Happy-melon guessed, something like this has been on my mental to-do list and the Project's to-do list for quite a while. Not quite the way Happy envisioned, but close. The reason for the difference is to better match Wikipedia's established standards for presenting this type of information. Basically, we need to implement this template as a standard Infobox. Standard does not mean boring or non-customized. It just means that it fits within the standards the rest of Wikipedia as agreed to.
If you aren't familiar with the term infobox, you are probably familiar with the results. Much like the navigation box in the upper right corner of this page, an infobox is a table that displays information about a specific topic in a standardized format. This allows people browsing through the Wikipedia to quickly identify common pages, find useful information, and present facts (like the standard recipe) without necessarily having to write in entirely encyclopedic fashion (one of the biggest challenges we face in dealing with drink recipes and the WP:NOTE#IINFO guideline that says not to include recipes).
The infobox is fairly simple to implement and looks good, too. It gives a standard look and feel to articles within our Project's scope, and it improves our visibility in a positive way in mainspace. (We can't really mention the WikiProject, but it's obvious that the Project is behind the template and thus the article.)
--Willscrlt (Talk|Cntrb) 02:13, 14 January 2007 (UTC)
thread_title: Modified proposal

message: Alright. I have just created one of the most sophisticated Infoboxes I have seen in any of the other WikiProjects. I'm sure there are some Infoboxes that were more complex to program, but this has got to be fairly high up there. I definitely owe a big debt of thanks to the developers at The Beatles WikiProject for giving me lots of ideas and some sample code to tweak. This should also help get the Project Header template rolling again. :-)
Please look at the examples I have setup. These are close to the actual infobox I would place on the Whiskey Sour article. Naturally, I would not include "flaming" or the silly notes at the bottom, but it should give you a pretty good feel for what the infobox can do.
One of the really, really neat things (IMO) is that you simply list the type of alcohol (whiskey=yes or cognac=yes), and it figures out all the links for you (is it Cognac, , or something else?). PLUS it also picks the correct category for the drink. That's right, no need to worry about adding categories manually now (in fact, it's probably better not to) as long as you have identified the correct type of primary alcohol.
These are the attributes (the tags) you can select from for the primary alcohol: beer, brandy, cognac, gin, rum, sake, tequila, vodka, bourbon, canadian (Canadian whisky), irishw (Irish whiskey), scotch, tennessee, whiskey, whisky, champagne, port, sparkling, wine, absinthe, amaretto, cacao (Creme de cacao), cachaça, campari, cider, curaçao, everclear, irishc (Irish Creme), jäger, menthe (Creme de menthe), moonshine, pastis, pisco, pucker, sambuca, schnapps, other. If I left anything out, please let me know.
And what about those oddball alcohols that didn't make the list? You can use the "other" type (other=Example), and it will link to it and place the drink in the "Less common spirits" category. Or, you could just refer to the article text (other=See the article for details), if it explains it there.
The only glitch I see at the moment is if there are multiple types of alcohol. In that case, both are listed, but there is no space between them, and the words run together. I'm sure it's something I can fix. At any rate, except for a few drinks like a Long Island Iced Tea, most drinks are only going to have one (maybe two) 'primary alcohols by volume. We should restrain ourselves and only list one, unless the top alcohols are equal in volume.
The IBA designation is also fairly automatic, adding the designation at the top, and changing some of the colors to a gold tone. The "ingredients" also change to indicate that it is an official list, not just the standard way of making it.
I split flaming beverages out as a separate attribute, because you can have flaming cocktails and flaming shooters (and probably flaming other things, too). This way you can double-tag the drink at once.
The infobox is also flexible enough that you can leave out all the alcohol-related stuff and use it on garnish and drinkware pages, too. Just use the notes attribute is you need to explain anything. I do plan to eventually make a more specific one for drinkware, but for now, this is a good start in that direction.
I know the font size is a little small. If it's too small, tell me and I can tweak it. There's just a lot of information that I am trying to get across in limited space. As I feared, by moving that information to an infobox, the Whiskey Sour article will be pretty much gutted. I'm not sure to do about that, because it really will look stubbish and might be deleted because it is assumed that there is no information in the article. There are other drinks that might end up in even worse shape.
I guess that's the risk we have to take. It will really help us to assess the quality of our articles. If we look and see a lot of wide open space on the page aside from the infobox, we know we have an article that needs a lot of work.
I still have to write the full documentation and quash any bugs anyone finds.
So, are there any feature requests? Any nits to pick? Any bugs you see (other than those I've mentioned)? Any other comments?
--Willscrlt (Talk|Cntrb) 15:34, 15 January 2007 (UTC)
replies: text: "{{#ifexpr: 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 >= 1 |"
Or variations thereof, with the 1(s) in different places.  Any idea what that might mean??  I almost threw up looking at the template code so I haven't the foggiest!  However it seems incredibly simple to implement and display, so fantastic work.  I've halted my implementation drive at The Blenheim until I work out why it doesn't work for some reason on that one page... almost certainly human error!!  Happy-melon 15:54, 16 January 2007 (UTC)
replies: text: Yup. It's fixed now. One silly little "}" was missing, and it caused all that gobbledygook to appear. There are probably hundreds of "}"s in the template, so it took me a while to track it down. You might have noticed certain parts of the template disappearing and reappearing for a while. Sorry about that. I had to make a change to the template because the auto-categorizing feature was causing problems on some places that should not have been tagged as mixed drinks. Now there is an attribute that suppresses auto-categories, which is great in the demos. --Willscrlt (Talk|Cntrb) 16:32, 16 January 2007 (UTC)
thread_title:  Demonstration and feeback 

message: That, Willscrlt, is the most impressive single template I've yet seen on Wikipedia.  Admittedly I haven't been specifically looking, but the power that this offers is simply phenomenal.  I have no requests or suggestions other than the bugs you've already mentioned - it has more features than I could have ever dreamed of.  Thank god for national holidays!  You've certainly used your time well....  Many thanks,  Happy-melon 19:31, 15 January 2007 (UTC)
thread_title: Responses

message: ====March of the phantom numbers====
Having started deploying your excellent template from the top of the list of cocktails, I have found that this seems to appear at the top of every page:
:"{{#ifexpr: 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 >= 1 |"
Or variations thereof, with the 1(s) in different places.  Any idea what that might mean??  I almost threw up looking at the template code so I haven't the foggiest!  However it seems incredibly simple to implement and display, so fantastic work.  I've halted my implementation drive at The Blenheim until I work out why it doesn't work for some reason on that one page... almost certainly human error!!  Happy-melon 15:54, 16 January 2007 (UTC)
replies: text: Yup. It's fixed now. One silly little "}" was missing, and it caused all that gobbledygook to appear. There are probably hundreds of "}"s in the template, so it took me a while to track it down. You might have noticed certain parts of the template disappearing and reappearing for a while. Sorry about that. I had to make a change to the template because the auto-categorizing feature was causing problems on some places that should not have been tagged as mixed drinks. Now there is an attribute that suppresses auto-categories, which is great in the demos. --Willscrlt (Talk|Cntrb) 16:32, 16 January 2007 (UTC)
thread_title: Bug alerts

message: Having started deploying your excellent template from the top of the list of cocktails, I have found that this seems to appear at the top of every page:
:"{{#ifexpr: 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 >= 1 |"
Or variations thereof, with the 1(s) in different places.  Any idea what that might mean??  I almost threw up looking at the template code so I haven't the foggiest!  However it seems incredibly simple to implement and display, so fantastic work.  I've halted my implementation drive at The Blenheim until I work out why it doesn't work for some reason on that one page... almost certainly human error!!  Happy-melon 15:54, 16 January 2007 (UTC)
replies: text: Yup. It's fixed now. One silly little "}" was missing, and it caused all that gobbledygook to appear. There are probably hundreds of "}"s in the template, so it took me a while to track it down. You might have noticed certain parts of the template disappearing and reappearing for a while. Sorry about that. I had to make a change to the template because the auto-categorizing feature was causing problems on some places that should not have been tagged as mixed drinks. Now there is an attribute that suppresses auto-categories, which is great in the demos. --Willscrlt (Talk|Cntrb) 16:32, 16 January 2007 (UTC)
thread_title: March of the phantom numbers

message: Having (I think) finished adding infoboxes to all the cocktails on the list, I'm now synchronising the list of IBA cocktails here with the list at IBA HQ.  To that end, I'm adding sourcelinks (a very clever feature BTW, so many thanks) to the template code.  However on many occasions the link spills onto two lines, which end up on top of one another and look very messy (eg Appletini).  In other cases, half the link is lost under the bottom of the infobox (eg in Bronx).  Not sure what the exact problem is, and not a clue how to fix it, but hopefully something you can fix??  Congratulations again, however, on an excellent job with this infobox.  Happy-melon 10:51, 27 February 2007 (UTC)
thread_title: Sourcelink

message: I'm not sure how best to implement this template on the numerous cocktails which redirect to sections of the amaretto page.  I think it will look awkward to have a huge list of infoboxes down the side of that page, so perhaps implementation there will have to wait until their sections are bulked up a bit.  Any comments?  Happy-melon 18:52, 18 January 2007 (UTC)
replies: text: That was one of which I was already aware that would be a problem. I have two thoughts on it.
# Include one infobox for the three IBA cocktails, listing all three in one infobox. Use a separate infoboxes for the coffe. Merge Amaretto Sour and Whiskey Sour together into an article on sours (resulting in two infoboxes there, since Whiskey Sour is an IBA), and kill off the Silverlake due to lack of notability.
# Since it is primarily an article on Amaretto, do not include any WPMIXInfobox templates at all, and continue to use the IBA badge to identify the IBA cocktails.
This will be a problem for a few other articles, too. See the to-do list for at least two other articles that will include multiple drinks on the same page.
I just had another thought: I could create a horizontal infobox to be placed at the top or bottom of a section. It would serve the same purpose, but design it in a way that it takes up as little space as possible so that it fits in-line with the rest of the article and does not "stack up" along the right-hand side of the page.  would probably be a good name to clearly distinguish it. How does that sound? --Willscrlt (Talk·Cntrb) 22:39, 18 January 2007 (UTC)

text: I like this idea.  For the moment I'll skip these problem cocktails.  I'm using the revision as of 01:01 15th January, so I can see which new additions also need boxing up.  Happy-melon 10:42, 19 January 2007 (UTC)
replies: text: It might actually be a good idea to go by the categories as much or more than the List of cocktails (gasp!), since it is theoretically "current" since it is dynamic. On the other hand, it doesn't designate IBA drinks, and there's no guarantee I ever tagged all the articles on the list with the category tags. I guess the best thing is to stick with the list for now, but then go through the categories for anything that was missed, since the Infobox will add drinks to the correct categories. I wonder if it would be prudent to remove the cocktails/mixed drink categories from the bottom of the pages since they are dynamically created by the infobox? Hmmm. I don't know the Wikipedia policy on that. --Willscrlt (Talk·Cntrb) 10:57, 19 January 2007 (UTC)
replies: text: That's the plan... eventually!!  Right now I'm down to Vesper, so I am getting there... slowly!!  At least my professors can rest assured that they are (indirectly) contributing to the sum total of human knowledge Hehe!!  Happy-melon 20:57, 19 January 2007 (UTC)
thread_title: Multiple cocktails on same page

message: I noticed that as Happy-melon is installing the Infobox, there is a lot of duplicated information (double recipes which is bound to attract attention due to WP:NOT#IINFO). Please remove any list of ingredients and preparation instructions that are in the body of the article when you install the infobox. That will reduce some articles to tiny little stubs, but that's okay, because it shows which articles really need work. If such articles are not already tagged as stubs, please add  or  as appropriate. (Wow! The Bronx looked horrible after gutting it and moving things to the infobox. It looks a lot better after a some additional research.) --Willscrlt (Talk·Cntrb) 02:42, 19 January 2007 (UTC)
replies: text: I shall try to do so.  Happy-melon 10:42, 19 January 2007 (UTC)
replies: text: Thanks. Believe me when I say I REALLY appreciate all the help you are putting into this. I wasn't criticizing, and you should feel good about how much better the articles are looking already. :-) --Willscrlt (Talk·Cntrb) 10:57, 19 January 2007 (UTC)
replies: text: Thanks, I appreciate it.  Removing the recipes is flagging up just how thin some of the articles are though!!  Lots more work needed I think!  Happy-melon 20:57, 19 January 2007 (UTC)
thread_title: Removal of duplicate info

message: While looking through and making touchups with some of the cocktails, I've noted that a few of the IBA cocktails put an emphasis on vermouth. The Rose, in particular, is a wine cocktail with vermouth as the main ingredient. However, looking through the template documentation, I noted there isn't an entry for vermouth. Considering it is distinctive against other wines and fortified wines, should not vermouth gain its own entry in the template so that cocktails like the Rose and Negroni may describe themselves more appropriately? —68.10.101.122 (talk) 19:54, 13 June 2008 (UTC)
replies: text: Sounds very reasonable to me. :-) As the template developer, I'm not really sure why it wasn't included. Probably my reasoning was along the lines that vermouth is more of a mixer than a primary alcohol, and only primary alcohols were originally included in the template. I have a more liberal view of things now, so it seems logical to include it. I am actually working on a version 2.0 of this infobox over at Wikibooks to use in the Bartending Guide there. After that is completed, I will port it back over to Wikipedia. In the meantime, I went ahead and added Vermouth to the current template. Thanks for the input! --Willscrlt (Talk) 05:50, 14 June 2008 (UTC)
thread_title: Vermouth

message: Just to make you aware that there's a problem with too many closing braces appearing, for example at Sea breeze. I'd fix it myself if I wasn't so busy!! Verisimilus T 12:57, 2 June 2007 (UTC)
replies: text: I echo the problem: When the IBA parameter is given a "yes" value, an extra pair of closing curly brackets appear at the end of the link, as in Irish coffee. -- • Kurt Guirnela • ‡ Talk 09:28, 9 July 2007 (UTC)
replies: text: Thanks for pointing that out. I just noticed it, too. Since I designed the template, I will look into why it's doing that and fix it. It might take me a couple of days, but I'll track it down. :-) --Willscrlt (Talk) 11:21, 23 May 2008 (UTC)
replies: text: Never mind. It was actually an easy fix, but it wasn't in this template. It was in , which is transcluded into this template. Problem appears to be resolved now. If anyone notices any other problems, please leave me a message on my talk page. Thanks! --Willscrlt (Talk) 11:37, 23 May 2008 (UTC)
thread_title:  Problem with template 

message: The size of the photo at Rum Swizzle is not large enough. How can I fix that? Badagnani (talk) 22:53, 15 July 2008 (UTC)
replies: text: It was previously hard-coded at 150px. I've increased the default to 200px (as images shouldn't be resized smaller than the default thumbnail size) and added an  attribute which can be used to override it further. Chris Cunningham (not at work) - talk 11:00, 30 January 2009 (UTC)
thread_title:  Size 

message: The "coffee" and "irishc" parameters create links to categories that don't exist.
I ended up here while editing an article that used , which redirects to this template. That article, though, uses parameters "irish cream=yes" and "Kahlua=yes", which this template does not appear to support. It looks like somebody changed the template and forgot to go through and fix articles that reference it. --Srleffler (talk) 16:59, 5 August 2009 (UTC)
thread_title:  Broken template 

message: I came across a page for a cocktail that described itself as served "on the rocks" when there were mixers involved, eg. White Russian, Mai Tai.. I came here to find out what label the template has allocated to mean "with ice" but not "on the rocks", so that I could change it, but there was no such category. As far as I'm concerned, "on the rocks" means one or more types of alcohol served on ice, maybe with a garnish, but nothing else in the glass. There should be another category named "with ice" to differentiate between something served on the rocks without mixer, and something served with a mixer with ice. I'm far too casual a user and no where near well-acquainted enough with wikipedia to make these changes. Mmshel (talk) 07:24, 16 August 2011 (UTC)
thread_title:  "on the rocks"..? 

message: This source from Archive.org in 2011 lists a number of cocktails that are not on the current list, and vice versa. To complicate things, Kir Royal (for example) is listed in its own right on the older lists, and as a variation of Kir on the new one. Same with White Russian/Black Russian. An IP recently recently removed the IBA designation from both of those articles. Since they are still technically listed on the new list, I restored them, but after looking at the above sources, I'm not sure what the tipping point is. At what point should a cocktail no-longer be considered IBA for the purposes of this infobox? What about cocktails, such as the Golden Cadillac, that were listed in the past, but aren't anymore? Grayfell (talk) 03:41, 24 April 2014 (UTC)
replies: text: I get the sense, although I can't confirm, that the IBA list is updated every year leading up to the World Cocktail Championship. I feel that once it has been taken off the official list, the article and infobox should reflect this. Perhaps a section could be created within the individual article indicating that it had previously been on the list, explaining this history. Prymal (talk) 08:17, 1 December 2017 (UTC)
thread_title:  How lasting is an official IBA cocktail designation? What about 'variations'? 

message: I'm keen to add to the infobox the time of day at which the cocktail should be consumed. For example, the IBA provides that the Alexander should be consumed after dinner, and the Americano before dinner.  I think that this should be included in the infobox with the heading "Timing:" or some other heading. I've never edited an infobox before, but I'm going to give it a shot. Prymal (talk) 08:13, 1 December 2017 (UTC)
replies: text: Alright, I've done it - hope no one objects. I would actually love a different describing word though.... "Timing" seems ambiguous, but other option I could come up with - "Service time", "Hour" or "Course" (as in "3-course meal") - didn't seem right either. "Served" has of course already been used for how to serve it, rather than when. I've started adding timings to the first five IBA cocktails, alphabetically; I'll wait a couple days to see if there's any objection or suggestion before I finish the rest.Prymal (talk) 09:19, 1 December 2017 (UTC)
thread_title:  Timing of consumption 

message: Could the "f" in "Old fashioned glass" please be uncapitalized in line with the article title? Thanks, 24.77.42.223 (talk) 05:33, 22 April 2021 (UTC)
replies: text: Not done: This is the talk page for the infobox template, not for any cocktail in particular.  ScottishFinnishRadish (talk) 10:56, 22 April 2021 (UTC)

text: Done Actually, due to my personal like for an old fashioned while I sit on my deck, I sought out the page and made the edit. It's all set now. ScottishFinnishRadish (talk) 10:58, 22 April 2021 (UTC)
replies: text: I think you misunderstood me, . I was referring to the term's use in this template. 24.77.42.223 (talk) 18:28, 22 April 2021 (UTC)

text: Done I think I got it this time. Sorry about that. ScottishFinnishRadish (talk) 18:31, 22 April 2021 (UTC)
thread_title:  Semi-protected edit request on 22 April 2021 

message: The template documentation says for cocktails I should set "type = cocktail". But when I do that, I get type="Mixed drink" in the infobox: . I had to set the type to "cocktail" (unlinked) to get the desired result. What did I do wrong? GA-RT-22 (talk) 17:47, 7 June 2021 (UTC)
replies: text: I fixed the doc for this and a couple others, but I suspect the others need to be fixed too. GA-RT-22 (talk) 18:28, 10 October 2021 (UTC)
thread_title:  type=cocktail