Template talk:Infobox tennis tournament event

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.
Infoboxes on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion
and see a list of open tasks.
WikiProject iconTennis Template‑class
WikiProject iconThis template is within the scope of WikiProject Tennis, a collaborative effort to improve the coverage of articles that relate to tennis on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Tennis To-do:

Here are some tasks awaiting attention:
  • Open Era
    ATP and WTA tournament.

Additional fields

There have been discussions in the past about merging tournament event articles (e.g.

WP:LEAD
, and the event infobox is rudimentary (see example).

Infobox tennis tournament event
2015 Brisbane International
Final
ChampionSwitzerland Roger Federer
Runner-upCanada Milos Raonic
Score6–4, 6–7(2–7), 6–4
Events
Singles men women
Doubles men women
← 2014 ·
Brisbane International
· 2016 →

We should improve these ledes but the infobox can also be improved to provide more information and context. Specifically I propose to add the following fields to the tennis events template:

  • Prize money
Total prize money for the event (as opposed to the tournament)
  • Date
Begin and end date of the event. If this is the same as the dates of the tournament it should be left empty, or alternatively, be filled automatically with the tournament date if that is technically feasible.
  • Draw
Draw size for the event
  • Qualifiers
Number of qualifiers in the main event
  • Wildcards
Number of wildcards available for the main event

With these fields added to the infobox, and hopefully more substantial ledes, the reader who (directly) navigates to the event page should have a better context and understanding of the article than is currently the case. Thoughts? Are these the right fields to add or should there be more/fewer? --Wolbo (talk) 15:54, 21 April 2015 (UTC)[reply]

Hello, I'm a french user. On fr.wikipedia, some of these fields already exist : Prize money, Date, draw. I'm not convinced of the usefulness of fields like "qualifiers" or "wildcards" : it doesn't give a very important information and the fact it is in any case present on the full article is imho enough. Just a query : how to divide prize money into "singles prize money" and "doubles prize money" given the fact it is globally given by ATP/WTA/tournament organisers ? A.Gust14 (talk) 09:23, 25 April 2015 (UTC)[reply]
Hi @
2014 Brisbane International – Men's Singles) so for the French articles it might therefore be logical not to mention qualifiers and wildcards in the tournament infobox, similar to the English tournament article. For the tournament event infobox, which is what we are talking about here, it seems logical to add this information. The total singles and doubles prize money is usually provided for the Grand Slams while for the other tournaments it may require adding up the prize money for the individual rounds, as listed on the drawsheets (e.g. 1).--Wolbo (talk) 15:10, 28 April 2015 (UTC)[reply
]
@Wolbo: The structure of tournament article(s) is indeed different on fr.wp and en.wp, but it doesn't change my opinion that, in any article (main article or singles article or doubles article), I don't find this information useful. Are there 4/6/8 qualifiers ? Are there 2/3/4 wild-cards ? It is not what the reader wants prioritary to know when he comes to read the article. It is important to keep infobox for main information. But it is just an opinion, among many others... A.Gust14 (talk) 16:18, 28 April 2015 (UTC)[reply]
I would also question the need for listing how many wildcards or qualifiers in the infobox. I'm not sure anyone tallys that up. I could be wrong but I have never seen it mentioned on tv or newspapers either. Just my thoughts. Fyunck(click) (talk) 18:50, 28 April 2015 (UTC)[reply]
Been a bit bold and added the fields Draw and Seeds to the tennis tournament event template. The Draw field can optionally include the number of qualifiers and/or wild cards if that information is available. An example of how this works out can be seen at
1977 Wimbledon Championships – Men's Singles.--Wolbo (talk) 11:54, 23 September 2016 (UTC)[reply
]

Template-protected edit request on 24 January 2016

Could you please change the "champion" into "Champion", higher-case seems much better. 333-blue 02:38, 24 January 2016 (UTC)[reply]

}}}} champion{{#ifeq:{{{4|{{{3}}}}}}|s|s}}
to
}}}} Champion{{#ifeq:{{{4|{{{3}}}}}}|s|s}}

? — xaosflux Talk 02:57, 24 January 2016 (UTC)[reply]

Because the label already appears to be uppercase, as in
2005_US_Open_–_Women's_Singles. Can you show an example of where this is showing the way you don't want? Reactivate this edit-request if ready to proceed. — xaosflux Talk 02:59, 24 January 2016 (UTC)[reply
]
  • @Xaosflux: no, change "{{#expr:{{{1|{{CURRENTYEAR}}}}}-1}} champion" to "{{#expr:{{{1|{{CURRENTYEAR}}}}}-1}} Champion". 333-blue 04:09, 24 January 2016 (UTC)[reply]
@333-blue: I'm sorry, I must be missing this somewhere, can you please make the edit to Template:Infobox tennis tournament event/sandbox and ping me when done. — xaosflux Talk 04:41, 24 January 2016 (UTC)[reply]
  •  Done @333-blue: OK, should be good, sorry for all the back and forth! — xaosflux Talk 05:02, 24 January 2016 (UTC)[reply]
Thanks! It looks better. 333-blue 05:48, 24 January 2016 (UTC)[reply]

Doubles -> doubles etc.

All capital/Upper-case letters on "Singles" and " Doubles" should be changed to lower-case so all pages using the template will manage without redirects. Another effect if this is implemented is that the link should only be black text when the article using the template refers to itself. Vogler (talk) 00:54, 11 August 2016 (UTC)[reply]

Qualifying

Qualifying draws would be a nice addition, placed in template just below wheelchair competitions, or next to the main draws TheLightBlue (talk) 13:46, 24 August 2016 (UTC)[reply]

I don't think they're needed. Too trivial. Fyunck(click) (talk) 17:24, 24 August 2016 (UTC)[reply]

Bad linking

The navigational links to previous and subsequent year at the bottom of the infobox go to plain years, against the guidelines and of little use to readers. Surely they should go to tennis-related "in year" articles? Tony (talk) 01:37, 5 October 2016 (UTC)[reply]

User:Tony1, I am guessing this is due to a transclusion missing the second parameter. now tracking with Category:Pages using infobox tennis tournament event without second parameter. if you have a specific example, please post a link here. Frietjes (talk) 22:58, 1 November 2016 (UTC)[reply]
Frietjes, thanks; really rushed in real life. Will keep this page handy for my return in a few days' time. Tony (talk) 11:50, 2 November 2016 (UTC)[reply]

Linking

Hi

2015 Mutua Madrid Open – Women's Singles) but it would be better if this navigation is by default so that the "before_name" and "after_name" parameters can be used for their intended purpose which is to indicate a change in the name of the tournament. Thanks!.--Wolbo (talk) 11:43, 11 May 2018 (UTC)[reply
]

Wolbo, I modified the code to have it try to automatically link to the more specific event articles. I have also added some temporary tracking to find all the places where it succeeded (Category:Pages using infobox tennis tournament year footer with a known event) and failed (Category:Pages using infobox tennis tournament year footer with an unknown event). the cases where it failed should generally be cases where |before_name= and/or |after_name= are already provided. in those cases, you _should_ be able to remove the |before_name= and/or |after_name= and still get the same links (assuming that the |before_name= and/or |after_name= match the "main_name" (like this edit). for events which have a different name in the before or after, you _should_ be able to remove the name of the event from the |before_name= and/or |after_name=. Frietjes (talk) 14:30, 11 May 2018 (UTC)[reply]

Wimbledon WC Singles

Since 2016 Wimbledon has included Men's and Women's Wheelchair Singles events among its titles. Can these please be added to the "Tennis events nav" module, similar to the other Grand Slam tournaments? I have included the relevant code needed to be added to the "wimbledonchampionships" section.

|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Singles
| [[{year} {tournament} – Wheelchair Men's Singles|men]]
| [[{year} {tournament} – Wheelchair Women's Singles|women]]

Many thanks. Sims2aholic8 (Michael) (talk) 16:37, 18 June 2018 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. Sims2aholic8 - the syntax looks dodgy. While you're fixing and testing that, the use of WC for wheelchair seems a poor choice when its common meaning is a toilet. Cabayi (talk) 16:52, 18 June 2018 (UTC)[reply]

This has still not been done, with the Wheelchair Singles events underway. In 2018, there is also a Quad Wheelchair Doubles event, which should be added (like at the Australian Open). Malon318 (talk) 11:57, 14 July 2018 (UTC)[reply]

Malon318, that is correct. Sims2aholic8 hasn't made the changes to the sandbox and tested them. Feel free to step in and do so if you wish. Cabayi (talk) 10:31, 15 July 2018 (UTC)[reply]
@Malon318: The Quad event is only an exhibition event. So I'm not sure we want a link in the infobox yet. We do need men's and women's wheelchair singles, but only starting in 2016 since before that is was only doubles. Fyunck(click) (talk) 09:30, 20 August 2018 (UTC)[reply]

Template-protected edit request on 16 July 2018

Wimbledon Championships holds Wheelchair Quad Doubles event, which is not included in the current template. – 333-blue at 09:20, 16 July 2018 (UTC)[reply]

The Quad event is only an exhibition event. So I'm not sure we want a link in the infobox yet. We do need men's and women's wheelchair singles. Fyunck(click) (talk) 09:27, 20 August 2018 (UTC)[reply]
 Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a
reliable source if appropriate. — JJMC89(T·C) 14:12, 16 July 2018 (UTC)[reply
]

Ok, we are starting to get more complaints about this and I'm not sure how it got missed or why it hasn't been done. Here is the problem. On the page

2018 Wimbledon Championships – Women's Singles you can see the infobox and at the bottom it says WC Doubles (men women). That's professional wheelchair tennis. Starting in the year 2016 Wimbledon also had Wheelchair singles (men women)...so WC (men women) is needed starting in 2016, but not before 2016. The new links will have to point to, for instance in 2018: "2018 Wimbledon Championships – Wheelchair Men's Singles" and "2018 Wimbledon Championships – Wheelchair Women's Singles". I have no idea how to do it, but we could really use the adjustment. Could someone compose it and add it to the Template:Infobox tennis tournament event/testcases so Tennis Project can see it and approve? I don't think we need Quad added yet because that is strictly and exhibition event as of 2018. Thanks. Fyunck(click) (talk) 09:21, 20 August 2018 (UTC)[reply
]

Template-protected edit request on 18 January 2019

A suggestion to change the Australian Open legends men event link from "(year) Australian Open – Men Legends' Doubles" to "(year) Australian Open – Men's Legends' Doubles", and the legends women event link from "(year) Australian Open – Women Legends' Doubles" to "(year) Australian Open – Women's Legends' Doubles" in the Australian Open infobox, as to improve the grammar and to match the official records. Sources: https://ausopen.com/draws#!mens-legends-doubles and https://ausopen.com/draws#!womens-legends-doubles . Ui56k (talk) 11:23, 18 January 2019 (UTC)[reply]

I note that the sources write "Men's Legends Doubles", "Women's Legends Doubles". -DePiep (talk) 13:26, 18 January 2019 (UTC)[reply]
It's in Module:Tennis events nav starting at line 71, rather than in Template:Infobox tennis tournament event.
! scope="row" style="font-weight: normal; text-align: right;" | Legends
| [[{year} {tournament} – Men Legends' Doubles|men]]
| [[{year} {tournament} – Women Legends' Doubles|women]]
| [[{year} {tournament} – Legends Mixed|mixed]]
Ui56k, DePiep, Before I blunder ahead I just want to check, this holds true for the other grand slams too? Cabayi (talk) 14:53, 18 January 2019 (UTC)[reply]
I don't know, I'm not good at this grammar. I just noted the apostrophe difference, dunno what to do with it. One could opt for a. gramatically perfect (is the tournaments intention unambiguous for this?), b. their spelling, c. adopt general rule spelling "Men" meaning "Men: " in title, (i.e. in the men's section of the tournament). -DePiep (talk) 15:02, 18 January 2019 (UTC)[reply]
 Done Went with the consistent Men's & Women's. Cabayi (talk) 15:50, 18 January 2019 (UTC)[reply]
Fine with me, but I actually pointed to this diff:
Source [1]: "Men's Legends Doubles",Proposal/done: "Men's Legends' Doubles".
-DePiep (talk) 16:08, 18 January 2019 (UTC)[reply]

This template is causing widespread catastrophic failures to meet basic encyclopaedic standards

The vast majority of articles about the competitions within tennis tournaments on Wikipedia suffer from a scarcely believable flaw - the first sentence does not say what the article is about. This is really appalling. It brings Wikipedia into disrepute. Thousands and thousands of articles are in this desperately inadequate state.

It seems that this template is the problem. I do not understand the functionality but it seems that all of these inadequate articles have been started using this template, according to the edit summaries like "Created page with '{{Tennis events|2019|BNP Paribas Open| | defchamp = Argentina Juan Martín del Potro | runner = | score = | draw = 96 (12 Q / 5{...'" which appear in the initial revision.

So, would somebody please do something about this. This template needs to be changed to prevent this crazy deficiency from being propagated in perpetuity. The damage it is doing is extreme. 146.90.125.65 (talk) 22:45, 2 July 2019 (UTC)[reply]

This template has absolutely nothing to do with the insufficient leads of the articles in which they appear. There is no link between the two, clearly a case where correlation does not equate to causation. And a word of advice, cut back on the level of hyperbole if you want editors to take your message seriously.--Wolbo (talk) 23:18, 2 July 2019 (UTC)[reply]
There is no hyperbole. Thousands of articles are simply fundamentally inadequate. The edit summary left when these inadequate articles are created implies that this template is to blame. If it is not, then perhaps you have an idea of why thousands and thousands of articles have been created where the first sentence doesn't even say what the article is about. 146.90.125.65 (talk) 23:28, 2 July 2019 (UTC)[reply]

@Keroks: The template is not the problem, but it shows up as Created page with '{{Tennis events ... when a user creates a new page whose content starts that way, with no edit summary. The problem is that many of these articles don't include the word "tennis" in them anywhere, so it's hard to guess what they're about. For example, 2016 ITF Women's Circuit – Shenzhen Longhua – Singles, created by Keroks in 2016. They need to have sensible leads; articles that link to this template would be a starting point in looking for the problem. Dicklyon (talk) 23:21, 4 December 2021 (UTC)[reply]

To be sure, you do also see this in other sports sometimes, like at

2009 BWF World Championships – Women's Singles before I fixed it. Can anyone tell what sport that is if they don't know what the B stands for? The lead should mention the sport, as it now does (after this edit). Dicklyon (talk) 04:56, 5 December 2021 (UTC)[reply
]

No link to Mixed Doubles for pre-Open Era Grand Slam tournaments.

Hi. Title says it all. I think Module:Tennis events nav should be updated to improve navigation between events - returning to the main tournament page back and forth is rather tedious. I observed that adding type = grand slam parameter does the job (see all Wimbledon Championships events' pages starting from 1913, for example...) but I understand that's not the parameter approved by Wikipedia Tennis Project.--Borucic (talk) 16:53, 15 December 2019 (UTC)[reply]

@Borucic: as I searched the code for that module it seems you are correct in that adding type=grand slam adds the mixed navigation, and that was part of the approved module. It was simply never added to the documentation so no editor realized that fact. Since it works and is approved, I added it to the documentation at Template:Infobox tennis tournament event/doc. So it should be included in the other Grand Slam events. Fyunck(click) (talk) 23:31, 15 December 2019 (UTC)[reply]

Add Quad tournament to French Open template

Hi, can we add the

Wheelchair Quad Doubles events to the French Open template like we have for the other Grand Slams? The Quad tournament was run for the first time last year at the French Open and still is missing from the tournament template. Thanks Keroks (talk) 13:27, 8 October 2020 (UTC)[reply
]

@Keroks:, do you mean the main page infobox (event info) in the top right corner or the infobox for draws in the quad singles and doubles draws subpages? Qwerty284651 (talk) 13:21, 4 June 2021 (UTC)[reply]
@Qwerty284651: yes that template. The Quad event is a new event since 2019 and most people navigate through the different events using that infobox, so it would be nice to have it on there too. Keroks (talk) 13:27, 4 June 2021 (UTC)[reply]
Keroks, Qwerty284651: This is being addressed in the first edit request below. Somnifuguist (talk) 16:06, 4 June 2021 (UTC)[reply]

Template-protected edit request on 3 June 2021

Add quad singles + doubles for the French Open. The desired change can be seen in the sandbox (diff). Note this is for Module:Tennis events nav, whose talk page redirects to this one confusingly. Thanks, Somnifuguist (talk) 05:11, 3 June 2021 (UTC). UPDATE: have also added WC singles + quads for Wimbledon, so that all slams have all their events listed. Somnifuguist (talk) 23:18, 6 June 2021 (UTC)[reply]

@Somnifuguist: This order is in dispute on a talk page. They need to be added but the order may likely be mens singles, womens singles, mens doubles, womens doubles, quag singles, quad doubles. Fyunck(click) (talk) 07:16, 3 June 2021 (UTC)[reply]
Let me clarify things. I opened up this discussion on the French Open 2021 edition main page talk page. The quad singles and quad doubles were already added in the infobox on the 2021 FO article page. It was the order of the quads draws that did not seem logical. @Fyunck(click): summed up nicely what the proposed order should be. They also added the fact, that the entire quad draws list in the infobox be moved betore the juniors - boy and girls - winners. Which I agree with. And this begs the question how to execute this. If the template itself is protected, be it semi- or fully. How to work around that to reach the desired goal? Best, Qwerty284651 (talk) 09:28, 3 June 2021 (UTC)[reply]
I agree but this affects many tennis articles and should have been discussed at Tennis Project talk before this request was made. Other editors may not agree. Fyunck(click) (talk) 09:35, 3 June 2021 (UTC)[reply]
ex.), not the main infobox on the tournament page which you were discussing. I'm just bringing RG in line with AO and USO, which already have quads in their events' infoboxes, something uncontroversial enough that I don't think it needs broader discussion on the tennis project page. Let's add quads to RG first with this request, and then if consensus is reached to change the order, make another request to do that then. --Somnifuguist (talk) 16:28, 3 June 2021 (UTC)[reply
]
That does make things clearer. I agree to add them without controversy. However those are mighty strange. An exhibition event above the wheelchair events? I'm not even sure it should be there. And you can have men women boys girls, listed under singles, but not wheelchair under singles? It seems like boys and girls should be listed under their own topic of Juniors near the bottom, but above legends. Fyunck(click) (talk) 17:50, 3 June 2021 (UTC)[reply]
Yes, I was actually thinking of the Wheelchair (WC) Quad disciplines not being added in the French Open (FO) tennis event template and I compared that to other slams, which do have them, barring Wimbledon. So, was going to post a request for the FO event's infobox, but you beat me to it. As for the main page for the FO template and the order of draws it should follow, like: seniors, juniors, WC, legends...is more easily manageable, than the just adding WC quads to the major's event infobox. I am repeating myself here. So, I will just leave it at that for now... Qwerty284651 (talk) 02:57, 4 June 2021 (UTC)[reply]
Translation for a template editor reading this: the requested edit is not in dispute. —Somnifuguist (talk) 17:11, 16 June 2021 (UTC)[reply]
 Done — Martin (MSGJ · talk) 11:05, 21 June 2021 (UTC)[reply]

Template-protected edit request on 3 June 2021 (2)

Note: this is a separate request from the above.
Make the year in the defending champion row equal the before_year parameter if set. The defending champion must have won in the previous year the event was held, which is before_year. See 2021 French Open - Men's Doubles for an example of the issue, where before_year is set to 2019 but the defending champion row shows 2020. This change in the sandbox should solve this. Thanks, Somnifuguist (talk) 06:19, 3 June 2021 (UTC)[reply]

I have never experimented with sandboxes. This is brand new territory for me. So, will see what I can do. This change affects many other tournaments between 2019 and 2021, not just the slams. Combing through the rest of the draws to find the discrepancies and appropriately correct them, will take some time. Qwerty284651 (talk) 11:40, 3 June 2021 (UTC)[reply]
@
template editor right. Everyone else has to make their desired changes in the sandbox and then request those changes be made to the actual template. I've done that here, now we just have to wait for a template editor to review the changes I've requested. Somnifuguist (talk) 16:14, 3 June 2021 (UTC)[reply
]
Thank you, @Somnifuguist:, for taking your time to test out the template in question in the sandbox. Much appreciated. I hope it gets approved by a template editor. How does one find the sandbox for said template to experiment in? Qwerty284651 (talk) 02:51, 4 June 2021 (UTC)[reply]

 Done * Pppery * it has begun... 19:43, 6 June 2021 (UTC)[reply]

Yes. I am glad the request got approved. Qwerty284651 (talk) 15:37, 7 June 2021 (UTC)[reply]
@Qwerty284651: You can find the sandbox of this template at Template:Infobox tennis tournament event/sandbox, and in general a template's sandbox is at its title + "/sandbox". You can read more about them at WP:Template sandbox and test cases. —Somnifuguist (talk) 17:09, 16 June 2021 (UTC)[reply]

Template-protected edit request on 26 June 2021

Move wheelchair events above legends' events. Consensus to do so was established in this discussion. The desired change has been made in the sandbox [2]. Thanks, —Somnifuguist (talk) 01:39, 26 June 2021 (UTC)[reply]

 Done Elli (talk | contribs) 09:23, 10 July 2021 (UTC)[reply]

Errors: Before_name and After_name do not work when same as current

Tripped over a category of errors:

1884 Wimbledon Championships – Ladies' Singles as recently "fixed" article, and [[3]] as article with "sub-nav" ... - Mjquinn_id (talk) 19:56, 12 July 2021 (UTC)[reply
]

@Mjquinn id: So let me understand this properly. Using after_name is not required by the template. It will be put in automatically based on the article title. If the tournament name is different than the article title, after_name needs to be added to the template so that navigation will take you to the right place. If you use the parameter of after_name when it's not needed (i.e. the same as the article title), for readers it will still work perfectly in navigating... no issues at all, but it creates a categorized error on wikipedia? Strange. That parameter is used a lot since tournaments change their names all the time, but I was not aware that editors were using the parameter when it was not needed. Fyunck(click) (talk) 20:20, 12 July 2021 (UTC)[reply]
Exactly, but I am trying to fix the template (in the Sandbox)...Given pages like: 1883 Wimbledon Championship – Singles where I feel like both entries are actually appropriate (even though "before_name" is technically not needed. Mjquinn_id (talk) 22:45, 12 July 2021 (UTC)[reply]
Found the issue. The categories are added by Template:Infobox tennis tournament year/footer, specifically in these lines:
|{{#ifexist:{{{after_year}}} {{{after_name}}} – {{{event_name}}}
        |[[{{{after_year}}} {{{after_name}}} – {{{event_name}}}|{{{after_year}}}]][[Category:Pages using infobox tennis tournament year footer with a known event]]
        |[[{{{after_year}}} {{{after_name}}} {{#ifexist:{{{after_year}}} {{{after_name}}} (tennis)|(tennis)}}|{{{after_year}}}]][[Category:Pages using infobox tennis tournament year footer with an unknown event]]
So the template checks if the article {{{after_year}}} {{{after_name}}} – {{{event_name}}} exists, and if not adds it to the "unknown event" error category. The issue is that in the articles with this error, editors have put e.g. | after_name = U.S. National Championships – Singles, meaning the template checks to see if the article {{{after_year}}} U.S. National Championships – Singles – {{{event_name}}}, e.g. 1882 U.S. National Championships – Singles – Singles exists, which it obviously doesn't. So editors have erroneously included the event_name (Singles) in the after_name param, which should just be e.g. U.S. National Championships. I tried fixing this in an article [4], and sure enough it is now in the "known event" category. The solution is for the template to check to see if articles exist at either {{{after_year}}} {{{after_name}}} – {{{event_name}}} or {{{after_year}}} {{{after_name}}}, which is a straightforward enough change. (the equivalent is true for before_name). —Somnifuguist (talk) 21:16, 12 July 2021 (UTC)[reply]
Good catch. Editors are being too specific instead of just adding the basic event name, based on the template parameter. Of course it's best to leave it blank but it would be nice if the template can understand it if editors add in the full event name. Fyunck(click) (talk) 00:07, 13 July 2021 (UTC)[reply]

edit request filed. —Somnifuguist (talk) 05:40, 17 July 2021 (UTC)[reply]

Template-protected edit request on 17 July 2021

Add "singles" and "doubles" options for type param, for tournaments which only had a singles event, e.g. 1881 Wimbledon Championship – Singles, or doubles event, e.g. 1996 World Doubles Cup – Doubles but not both. Tested in the sandbox (diff). Thanks, —Somnifuguist (talk) 06:04, 17 July 2021 (UTC)[reply]

 Done firefly ( t · c ) 07:49, 20 July 2021 (UTC)[reply]

Help with the Olympics Infobox layout needed

Hey, there. I need help with how to change the display of the Infobox tennis tournament event for the 2020 Summer Olympics, because when you click on any draw, men's or women's, singles or doubles, the draw itself isn't highlighted, like in other tournament's infoboxes, for example, in the infobox with a black, bolded, non-wikilinked color selection bar (problem highlighted here). Maybe point me in the right direction. Any help is appreciated. Best, Qwerty284651 (talk) 18:43, 16 September 2021 (UTC)[reply]

Template-protected edit request on 16 October 2021

Add type=olympics option to address the above + several wheelchair options. Also remove type=risingstarsinvitational, which is no longer needed as all those articles were deleted. Changes made in sandbox (diff). Thanks. Sod25 (talk) 21:43, 16 October 2021 (UTC)[reply]

 Done User:GKFXtalk 17:30, 23 October 2021 (UTC)[reply]

Template-protected edit request on 16 October 2021 (2)

Add support for Paralympic tennis events with quadrennialwc=yes param. Change made in sandbox (diff). Thanks. Sod25 (talk) 23:30, 16 October 2021 (UTC)[reply]

 Done * Pppery * it has begun... 18:08, 21 October 2021 (UTC)[reply]

Template-protected edit request on 17 October 2021

I request to change the men button wikilink from a wikilink to it being just a bolded in black highlighted button men. See example here: https://prnt.sc/1wgb1kz. All tournaments have the option, that when a subpage for a draw is open, the wikilink in the Infobox is null, aka not-wikilinked, in bold and black font color, except for the Olympics tournament wikipedia page. In one of the parameters for the Infobox in edit source, not TemplateData, the parameter for the tournament is Olympics, yet it creates a wikilinked draw for the page, it is currently on, shown in the example, but it should, in fact, be black and bold. This way the reader on XYZ draw aka subpage will be informed, indubitably, on what subpage they are. Although the name of the subpage is there, the draw should be emphasized, as well. I wish I had the know-how to do the edit myself, but I could not wrap my head around the TemplateData and its intricacies. Why is this the case and can you make it that it is not wikilinked, black, bold for the Olympic parameter, as well, please? Qwerty284651 (talk) 03:58, 17 October 2021 (UTC) Qwerty284651 (talk) 03:58, 17 October 2021 (UTC)[reply]

@
2021 Wimbledon Championships – Men's Singles), presumably due to conventions in WP:WikiProject Olympics overriding those at WikiProject Tennis. This template assumes the "Singles/Doubles" are capitalized, and so the infobox links it creates, e.g. Tennis at the 2020 Summer Olympics – Men's Singles, have to be redirected to the actual pages. Because the infobox links don't match the actual pages, the software doesn't bold them. My edit request adds a type=olympics option which links Olympic draws with the correct capitalization, thereby fixing this small issue. Sod25 (talk) 10:57, 17 October 2021 (UTC)[reply
]
Sod25 Care to send the sandbox version. So, I can see the diff for myself. Qwerty284651 (talk) 12:19, 17 October 2021 (UTC)[reply]
See my request. Sod25 (talk) 12:25, 17 October 2021 (UTC)[reply]
@Sod25 The first or the second one?. Qwerty284651 (talk) 13:42, 17 October 2021 (UTC)[reply]
Numero uno, amigo. Sod25 (talk) 14:58, 17 October 2021 (UTC)[reply]
Muchas gracias, amigo. But the thing is, in the 1st request, you only state the mixed doubles parameter, which, although the draw is missing from the Infobox, does not relate to my request for mine is more of the "visual type", yours is more of "inclusion-like type" of missing draws. Correct me, if I am wrong. Qwerty284651 (talk) 00:35, 18 October 2021 (UTC)[reply]
You're misreading the diff. It does exactly what I say it does, and will solve the issue you raised once it is implemented and the infobox type= parameters are changed from "mixed" to "olympics" on the Olympic tennis articles. Sod25 (talk) 10:42, 18 October 2021 (UTC)[reply]
Well, like I stated in my edit request. I cannot wrap my head around the Template data, therefore it is only natural I misread your diff. You live and learn. Qwerty284651 (talk) 12:28, 18 October 2021 (UTC)[reply]
If by "Template data" you mean the source code (TemplateData has a specific, different meaning), then that is understandable. The relevant module here is written in Lua, a programming language, so if you don't have much/any experience with programming there is a steep learning curve. The key point is that the software that runs Wikipedia (MediaWiki) will black and bold a link if it exactly matches the title of the page you're on. The links in the current infobox for Olympic tennis draws don't currently exactly match the titles, so they aren't bolded/blackened when you're on those pages. With my change they will exactly match, and the problem will be resolved. Sod25 (talk) 14:19, 18 October 2021 (UTC)[reply]
@Sod25 How did you know what to change? I get the whole edit source parameters. That I know how to read. Template data, such as .json files/common files, conditional syntax and whatnot; that is too much for a novice, like myself. Qwerty284651 (talk) 07:28, 19 October 2021 (UTC)[reply]
Programming experience + reading the documentation (Help:Template, Help:Conditional expressions, mw:Extension:Scribunto/Lua reference manual, ...). The first two are all you need to understand most templates. Sod25 (talk) 15:42, 19 October 2021 (UTC)[reply]
Thanks. Yeah, meant to write Conditional syntax, not Conditional expressions. As for the Lua module. That is gonna be fun. Looking forward to it reluctantly. Qwerty284651 (talk) 16:08, 19 October 2021 (UTC)[reply]
Remember that you can be an extremely productive editor and never touch a single module. Just understanding how they interact with templates (WP:Lua#Running a module) is enough. And Lua isn't a great first programming language, either. Python or JavaScript are much easier to learn with tutorials online, and more useful generally outside of Wikipedia. Sod25 (talk) 16:32, 19 October 2021 (UTC)[reply]
Well, given your last comment. I assume you are a programmer of some kind. Anyhow. Thanks for the extra tips. Besides, my end goal is to be adept in editing templates on my own in the long run, so I am not dependent on others for help. Yes, one must start somewhere, but editorial indepedence is what I expect from myself in the upcoming months. That would be all. Thank you. Qwerty284651 (talk) 19:02, 19 October 2021 (UTC)[reply]
@Sod25: Listen up, man. Your approved change of the template, did not solve my request. And, please, don't revert my answer from yes to no again. You are not a template editor. Qwerty284651 (talk) 02:03, 22 October 2021 (UTC)[reply]

This is getting tedious. Your issue is addressed in my first request. The second has now been implemented. Not the first. When the first is implemented, your issue will be resolved. If you'd just read and comprehended what I said in that request "Add type=olympics option to address the above", you'd never have needed to start this pointless section, man. Sod25 (talk) 02:35, 22 October 2021 (UTC)[reply]

What may look like pointless to some, is actually very beneficial to others. And, besides, I got some tips on programming from you, which is useful. And I do hope the type=olympics parameter implementation resolves the issue for both of us. Qwerty284651 (talk) 02:46, 22 October 2021 (UTC)[reply]
@Sod25: You were right. Thanks for the assist there, man. Qwerty284651 (talk) 02:01, 24 October 2021 (UTC)[reply]
@Qwerty284651: no problem. I've actually changed the method to solve this problem now - you can use the |lowercase=yes parameter to change the event links to be lowercase. There is also now Category:Pages using infobox tennis tournament event with no matching event link, which lists all pages where there is no link in the infobox matching the article title. These would need to either have their type parameter chaged to the correct one (from those defined at Module:Tennis events nav), have their second parameter changed to the tournament name matching the title, or have the lowercase parameter set if the title has events in lowercase (like the Olympics). Sod25 (talk) 22:06, 30 October 2021 (UTC)[reply]

Template-protected edit request on 4 November 2021

Small corrections + remove reference to long-deleted Template:Infobox tennis tournament event/events. Changes made in sandbox (diff). Thanks, Sod25 (talk) 19:25, 4 November 2021 (UTC)[reply]

 Done * Pppery * it has begun... 01:10, 5 November 2021 (UTC)[reply]

Template-protected edit request on 4 November 2021 (2)

Remove biannualwc and quadrennialwc parameters, which are now redundant to biannual and quadrennial, and unused. Changes made in sandbox (diff). Thanks, Sod25 (talk) 19:30, 4 November 2021 (UTC)[reply]

 Done * Pppery * it has begun... 01:10, 5 November 2021 (UTC)[reply]

Template-protected edit request on 30 November 2021

This template should force a capital letter at the start of the string that makes the title of the infobox. See for example

2009 Nielsen Pro Tennis Championship – doubles, where the infobox title is "doubles" from the article text after the dash, and should be "Doubles" since it's a title in the box. Dicklyon (talk) 22:09, 30 November 2021 (UTC)[reply
]

 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. In my experience, most tennis articles capitalize the word "Doubles" or "Singles" in the article's title. The examples given under "Draw articles" at WP:TENNIS use that formatting. It may be better to move the article in question to help it conform to the standard usage. – Jonesey95 (talk) 00:02, 1 December 2021 (UTC)[reply]
Indeed, the examples at the project page run counter to consensus guidelines of
MOS:CAPS; but this template problem tends to make fixing them awkward. Dicklyon (talk) 00:23, 1 December 2021 (UTC)[reply
]
They really are not counter... it depends on the source used. Many tournaments use "Men's Doubles" as a proper term as does Wikipedia Tennis Project on countless thousands of articles. It has been consensus at Tennis Project for as long as I can remember, just like the term "Open Era." Fyunck(click) (talk) 00:20, 5 December 2021 (UTC)[reply]
Perhaps this usage in tennis predates our capitalization style guidelines? Does that mean it shouldn't be fixed? As for Many tournaments use "Men's Doubles" as a proper term, I don't see how that means that we shouldn't follow our own style guidelines. Maybe you can explain what you mean by it. Dicklyon (talk) 03:32, 5 December 2021 (UTC)[reply]
It's not wikipedia policy, so there is some give and take. But let's look at something like the Washington Monument. We capitalize both terms because it's proper to do so. Sources tell us that both Washington and Monument are capitalized. Same with the Khwae Yai River. All three terms are capitalized because sources tell us they are capitalized. Wikipedia uses Khwae Yai River but some sources use Khwae Yai river. Decisions were made. Same with 1988 Wimbledon Men's Singles. Now not every source does this but long ago Tennis Project went with Men's Singles. It's not against the style guide if that is the proper spelling. It's not like we go and use La Brea tar pits. We use La Brea Tar Pits. But we would use La Brea tar pits if that's what the location used. Fyunck(click) (talk) 07:27, 5 December 2021 (UTC)[reply]
Yes, this proposed change endorses a non-standard capitalization, for which there no current consensus. Sod25 (talk) 13:46, 5 December 2021 (UTC)[reply]
The proposed change is to fix the nonstardard lowercase in the infobox that results when the title is moved to conform to the guidelines of
MOS:CAPS. I don't see how it can hurt. Dicklyon (talk) 23:09, 5 December 2021 (UTC)[reply
]
"when the title is moved" is the problem - there is no consensus to move currently.
MOS:CAPS like all guidelines has exceptions, and tennis pages are a currently among them by longstanding consensus. If the consensus changes, then there are dozens of changes that need to be made to this template alone that should be made together. Sod25 (talk) 02:37, 6 December 2021 (UTC)[reply
]
as above. The title is unlikely to move. Fyunck(click) (talk)
The proposal, "This template should force a capital letter at the start of the string that makes the title of the infobox", is a good idea independent of whether there are more title moves or not. Dicklyon (talk) 05:19, 8 December 2021 (UTC)[reply]

A related feature request: Force the second word of the infobox title (typically "Singles" or "Doubles") to lowercase, so that the infobox heading is sentence case rather than title case. Any objections? Dicklyon (talk) 06:07, 16 December 2021 (UTC)[reply]

It might depend on how the current RFC turns out. If it sticks with Men's Singles then this template should probably follow suit. If it goes with Men's singles, then this may need to change. Fyunck(click) (talk) 06:37, 16 December 2021 (UTC)[reply]
More than two-thirds of respondents at the RFC agree than "men's singles" is not a proper name and should not be in title case. No matter which way we ultimately decide to fix titles (or even if we don't fix them), the info-box title would be sentence-case "Singles" or "Men's singles", which is what my edit request here is about. We can wait if people want to, or can go ahead and fix it now. Dicklyon (talk) 17:12, 17 December 2021 (UTC)[reply]
Then I would wait to see if a change is warranted. Fyunck(click) (talk) 23:43, 17 December 2021 (UTC)[reply]
I just explained why a change in the infobox title is warranted, independent of whether we decide to fix the article titles. There is no reasonable scenario under which we want title-case "Men's Singles" as an infobox title, since the great majority of sources show that this is not a proper name. Dicklyon (talk) 20:00, 19 December 2021 (UTC)[reply]
@Dicklyon: The titles you moved to "– singles/doubles", which would cause the header casing to be lowercase, were moved without consensus, so I've requested the moves to be reverted [5]. All titles of events (including tennis) at multi-sport competitions capitalize the first word after the dash, so in my opinion tennis should follow suit everywhere for consistency and so the caps issue can be resolved with the least disruption (my now-formed opinion on option A vs. B from the RFC). I've prepared the following sandboxes so that all that will need to be done once the articles are moved following a successful RM to e.g. "Men's singles" is to make edit requests for the wikitext to be transferred from the sandboxes to the main templates:
--Sod25k (talk) 14:33, 5 January 2022 (UTC)[reply]

Template-protected edit request on 30 January 2022

Copy over changes from sandbox (diff), to update capitalization of linked articles following RM. Thanks, Sod25 (talk) 02:07, 30 January 2022 (UTC)[reply]

 DoneJonesey95 (talk) 05:33, 30 January 2022 (UTC)[reply]

Template-protected edit request on 30 January 2022 (2)

Copy over changes from sandbox (diff), to update template following RM. Thanks, Sod25 (talk) 02:12, 30 January 2022 (UTC)[reply]

 DoneJonesey95 (talk) 05:35, 30 January 2022 (UTC)[reply]

Template-protected edit request on 2 July 2022

Could someone add a Mixed Invitation Doubles event to the Wimbledon string of Module:Tennis events nav? Wimbledon has added this event to the schedule for this year.Tvx1 16:58, 2 July 2022 (UTC) Tvx1 16:58, 2 July 2022 (UTC)[reply]

 Done.
ed. put'r there 03:50, 3 July 2022 (UTC)[reply
]
Paine Ellsworth, thanks for executing this edit request. However there is still a lingering issue with this template and module. Wimbledon has dropped the seniors' innovational doubles event from this year it appears and replaced it with the mixed doubles event. However, the infobox template still provides a link for the seniors' event as all editions use this module and it's needed for years that had it. Likewise all the previous years now include a link for the mixed invitation doubles event, even though there was none then. These will thus remain permanent redlinks to non-existent events. I don't really know what the solution to this could be. Maybe add a Wimbledon2022 string to use from 2022 onwards, or is it possible to make some of these parameters optional somehow?Tvx1 10:24, 6 July 2022 (UTC)[reply]
my pleasure,
ed. put'r there 14:09, 6 July 2022 (UTC)[reply
]
I fixed it by adding a new type, which is not the best, but is the method that was used before. in my opinion, the better solution is to redesign the module with submodules for each tournament (or a subfunction inside the main module), and have those submodules have "cases" based on year spans. the submodules should return simplified output (e.g., list of valid events for that year) and the module should then format that into the table. a nice thing about using submodules, is that you can use "what links here" to find which articles are using which submodules. I would be happy to overhaul the system at some point, but it probably won't happen until next week. Frietjes (talk) 14:32, 6 July 2022 (UTC)[reply]

Paine Ellsworth&Frietjes, hate to bother you again, but I just remembered there are two other new events for the Wimbledon2022 string. They added Boys’ and Girls’ 14&U singles events this year.Tvx1 11:46, 7 July 2022 (UTC)[reply]

Tvx1 could you add it to Module:Tennis events nav/sandbox? it's not clear where they would go, link text, link, etc. Frietjes (talk) 16:37, 7 July 2022 (UTC)[reply]
Frietjes, I have added it as requested.Tvx1 09:22, 8 July 2022 (UTC)[reply]
Tvx1, now added (after being modified to add them to the 2022 tournament). Frietjes (talk) 14:32, 11 July 2022 (UTC)[reply]
Tvx1, the table in 2022 Wimbledon Championships – Women's singles is very wide now, maybe start a new row? Frietjes (talk) 14:33, 11 July 2022 (UTC)[reply]
Frietjes, I suggest this improvement Halftonic (talk) 19:48, 11 July 2022 (UTC)[reply]
I think that unnecessarily cuts the 14&u juniors events from the other. I think it's better to create new rows for the juniors events, named JR Singles and JR Doubles for instance, just like the wheelchair events' rows.Tvx1 22:14, 11 July 2022 (UTC)[reply]
https://www.wimbledon.com/en_GB/atoz/entry_lists.html may be helpful. Halftonic (talk) 22:52, 11 July 2022 (UTC)[reply]

Deactivating {{edit template-protected}}, which was reactivated by User:Scintillating1chaos with no explanation, since it's not clear what you want an uninvolved template editor to do. If what you are asking for is the current sandbox changes be synced, then that appears to lack the necessary consensus to implement due to Tvx1's unresolved objection. * Pppery * it has begun... 02:59, 14 August 2022 (UTC)[reply]

The problem with the used infobox is obvious in the article, it remains unsolved, so I reactivated the request. There are two suggested solutions, that of Tvx1 and that of Halftonic. That of Halftonic is simpler, as we just add one row to the conventional infobox with the two imported under14S events. That of Tvx1 changes the whole structure of the conventional infobox and produces two new problems. The one problem is that it is not clear if under14S events are considered juniors events and the other is that in the Junior Singles row the required keywords 14&U boys and 14&U girls will be much wider than all other keywords (men, women, boys, girls, mixed, quad). Scintillating1chaos (talk) 11:00, 14 August 2022 (UTC)[reply]
Why would 14&under not be junior events? What do you think kids aged 14 years at most are? Legends??Tvx1 11:22, 14 August 2022 (UTC)[reply]
Per the upper link and its categorization. Scintillating1chaos (talk) 11:40, 14 August 2022 (UTC)[reply]
 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. Izno (talk) 21:13, 30 August 2022 (UTC)[reply]

Tvx1 would you agree to implement the sandbox version until a better infobox is established? Scintillating1chaos (talk) 16:25, 2 September 2022 (UTC)[reply]

It seems there is no consensus issue about the pending implementation! The persistent invocation of presumed non-consensus from template editors is unfair. Scintillating1chaos (talk) 23:18, 2 September 2022 (UTC)[reply]

Since only one template editor has raised the consensus concern, I'll make your statement about "template editors" (plural) true. If you reactivate this request again, you could be blocked from editing indefinitely. You will need more than just one other editor's okay on this. Garner consensus and only then reactivate this request if and only if consensus favors the edit.
ed. put'r there 00:03, 3 September 2022 (UTC)[reply
]
Obviously we have nothing to say! Scintillating1chaos (talk) 00:30, 3 September 2022 (UTC)[reply]
Okay, so you don't take kindly to warnings. To continue to activate this request is considered vandalism, so please don't do it again unless and until you have garnered consensus for the edit. To reactivate this request under any other conditions may get you blocked from editing, which nobody wants to do, so please comply and try to build and achieve consensus.
ed. put'r there 00:36, 3 September 2022 (UTC)[reply
]
 Not done for now: Per MSGJ Izno (talk) 01:10, 17 June 2023 (UTC)[reply]

Testing

Thought I'd test the sandbox, so courtesy pings to

ed. put'r there 09:19, 3 September 2022 (UTC)[reply
]

More than a week has elapsed with no objection to the module's sandbox code, so it will go live directly to improve the appearance of this template.

ed. put'r there 08:00, 12 September 2022 (UTC)[reply
]

French Open

Gonna have to reactivate this thread again. The French Open now has a Mixed Legends event as well. Could someone please add a 2023FO string incorporating this?Tvx1 11:12, 11 June 2023 (UTC)[reply]

Can you please sandbox the required code? — Martin (MSGJ · talk) 12:14, 13 June 2023 (UTC)[reply]
I added the code to the sandbox as requested.Tvx1 13:58, 26 September 2023 (UTC)[reply]
Gentle reminder: this was added to the
ed. put'er there 15:28, 27 September 2023 (UTC)[reply
]
Would you mind dealing with this request @Paine Ellsworth as you looked at the last one? I have no idea how this module works! — Martin (MSGJ · talk) 10:53, 29 September 2023 (UTC)[reply]
To editors
ed. put'er there 19:16, 30 September 2023 (UTC)[reply
]
That’s because the testcase table are/were all wrong. They appear to mix up parameters from the {{infobox tennis tournament}} template of the main tournament pages with the {{infobox tennis tournament event}} templates of the indivudual events’ pages. That’s why you get the unkown parameter issues. They just don’t belong in the latter templates. As for the differences that existed between the 2023 testcase tables and the actual tables in the event articles, that’s because the former uses the basic frenchopen type, while the latter uses the updated frenchopen2022 type (which should really be the requested frenchopen2023 type). Tvx1 00:11, 1 October 2023 (UTC)[reply]
Thank you for that, editor
ed. put'er there 09:17, 1 October 2023 (UTC)[reply
]
I cannot seem to replicate the different versions you seem to see. How and where exactly did you preview the sandbox version?
In any case, I will point that the suggest change is to Module:Tennis events nav. It's basically to add an updated string of code for the navigation links on the individual events pages to deal with a new event held since the 2023 French Open. Tvx1 12:28, 1 October 2023 (UTC)[reply]
It's easy when you know how. First, I bring up the
ed. put'er there 13:06, 1 October 2023 (UTC)[reply
]
If you’re asking whether the requested change is visible in 2023 French Open than you are indeed looking at the wrong page. The requested change is to Module:Tennis events nav, a module used by {{tl|Infobox tennis tournament event}}, an infobox used in the articles on the individual events of tennis tournaments. In this case that’s an article like 2023 French Open – Men's singles. You can also see the differences on the testcases page if you compare the 2019 and 2023 French Open examples. Tvx1 18:38, 1 October 2023 (UTC)[reply]
I do see a difference on the testcases page between the 2023 live version and the 2023 sandbox. I do not see any difference in the
ed. put'er there 19:09, 1 October 2023 (UTC)[reply
]
That’s because the article’s infobox in that article does not currenly use the correct type parameter (frenchopen2023) because it still isn’t in the live module. Change the type to that and then preview the sandbox version and you’ll see the correct version. The difference that the change is intended to make is to correct the links for the legends’ events.Tvx1 22:20, 1 October 2023 (UTC)[reply]
Paine Ellsworth, is all sufficiently clear to you now?Tvx1 14:42, 4 October 2023 (UTC)§[reply]
 Completed – yes, it appears to do what you want on preview. Please update the /doc pages and appropriate infoboxes as needed. Thank you for your help with these!
ed. put'er there 19:11, 6 October 2023 (UTC)[reply
]

Missing date and other things

When I look at the documentation for Infobox tennis tournament event I see nothing for the parameters draw and seeds, yet they are used and obviously work for 2023 Wimbledon Championships – Men's singles. Those parameters must have been added later but not added to the documentation. So first could this be fixed... thanks. Also, these article are supposed to be standalone so that you shouldn't have to goto 2023 Wimbledon Championships to find out the date of the event. Could we add a parameter of Date? It should probably go at the top of the "detail" section. I can't believe it would be controversial but if someone does then remove and I'll bring it up for formal discussion at Tennis Project. Thanks. Fyunck(click) (talk) 23:14, 14 July 2023 (UTC)[reply]

For the documentation you can edit Template:Infobox tennis tournament event/doc which is not protected — Martin (MSGJ · talk) 08:50, 19 July 2023 (UTC)[reply]
For the date parameter, it sounds reasonable. If you feel up to it, can you make your changes to Template:Infobox tennis tournament event/sandbox and then test it? — Martin (MSGJ · talk) 08:51, 19 July 2023 (UTC)[reply]
 Not done for now: see MSGJ's comment. Izno (talk) 01:03, 26 July 2023 (UTC)[reply]