Template talk:Infobox golfer/Archive 3
This is an archive of past discussions about Template:Infobox golfer. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 |
Linking to a nation in the nationality parameter
In the nationality
parameter, it should list a nation, not link to a nation and present that nation with a flag. It's a violation of both WP:OVERLINK and WP:INFOBOXFLAG. If the subject represented the nation, that should be addressed in a separate parameter along with the competition in which the golfer represented the nation. Not watching here so ping me if you want me to comment. Walter Görlitz (talk) 03:40, 6 December 2017 (UTC)
- @Walter Görlitz: This is a Wikipedia:Perennial proposal. See Archive 2 above which has sections "Nationality", "Nationality again" and "Nationality field". Nigej (talk) 16:09, 6 December 2017 (UTC)
- But nationality is not to be linked, while the competition that the player represented the nation in and the nationality they represented there should be. So "nationality" should be unlinked and without a flag, "represented" may be. Walter Görlitz (talk) 16:11, 6 December 2017 (UTC)
- @Walter Görlitz: You must be a quick reader if you've read and digested the long discussions I pointed you to. Two minutes, very impressive. Nigej (talk) 16:35, 6 December 2017 (UTC)
- I've read them in the past and understand the concept quite well. Walter Görlitz (talk) 17:55, 6 December 2017 (UTC)
- @Walter Görlitz: You must be a quick reader if you've read and digested the long discussions I pointed you to. Two minutes, very impressive. Nigej (talk) 16:35, 6 December 2017 (UTC)
- But nationality is not to be linked, while the competition that the player represented the nation in and the nationality they represented there should be. So "nationality" should be unlinked and without a flag, "represented" may be. Walter Görlitz (talk) 16:11, 6 December 2017 (UTC)
- This way of displaying the country's flag (link and all) is the way that we've been displaying things on the golf related articles for many years. If it were a serious problem, something would have been done about it ages ago. How is this possibly in a violation if no editors have shown to have a serious problem with it? Johnsmith2116 (talk) 05:45, 7 December 2017 (UTC)
2019 chronological order change not reflected in the infobox
In 2019 the PGA Championship was moved and now follows the Masters. This is not yet changed in the infobox section "Best results in major championships", which follows chronological order. Can somebody please pop in there and make the switch? Thanks. Randy Kryn (talk) 01:45, 16 June 2019 (UTC)
- See WT:GOLF#Template:Infobox golfer where I brought up this point. Nigej (talk) 04:52, 16 June 2019 (UTC)
- Commented there, but this seems like an easy decision and just needs someone who can edit the template to do so. The tournaments have been listed in chronological order until the change this year, so the correct order probably ought to be maintained. Randy Kryn (talk) 00:31, 17 June 2019 (UTC)
Edit request 18 June 2019
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per discussion at WT:GOLF#Template:Infobox golfer make the changes noted there. The effect of the changes can be seen at {{Infobox golfer/testcases}} (reordering of the men's major championships, using test version at {{Infobox golfer/sandbox}}). Documentation at Template:Infobox golfer/doc is not protected I think, so I can make that change myself. Nigej (talk) 04:59, 18 June 2019 (UTC)
Edit request 24 June 2019
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per note at WT:GOLF#Korn Ferry Tour in Template:Infobox golfer make the change noted there. The effect of the changes can be seen at {{Infobox golfer/testcases}} (recent name change of the Web.com Tour to the Korn Ferry Tour, using test version at {{Infobox golfer/sandbox}}). Documentation at Template:Infobox golfer/doc is not protected, so I can make that change myself. Nigej (talk) 14:32, 24 June 2019 (UTC)
Edit request 1 October 2019
This edit request to Template:Infobox golfer has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per discussion at WT:GOLF#Highest OWGR in template make the changes noted there in the final section (WT:GOLF#Stage 1: adding two lines and renumbering some later fields). The simplest way to do this is to copy from {{Infobox golfer/sandbox}}. The effect of the changes have been tested at {{Infobox golfer/testcases}} (adding a new field "Highest ranking" at the end of the Career section). Currently I have removed all data at Template:Infobox golfer/highest ranking (where the data is stored), except Shaun Micheel, for safety reasons - pending going live. Documentation at Template:Infobox golfer/doc is not protected, so I can make that change myself. Nigej (talk) 07:49, 1 October 2019 (UTC)
- Note: I looked at doing this but I choke at seeing the complexity of Template:Infobox golfer/highest ranking. Looking at Shaun Micheel's wikidata entry, d:Q1755828, he already has an OWGR entry, d:P3568. Looking at a tennis example, Serena Williams, d:Q11459, has a ranking d:P1352 which could be expanded to cover golf's OWGR ranking. This proposed solution seems a convoluted re-working of an existing system. Cabayi (talk) 09:44, 1 October 2019 (UTC)
- The OWGR entry in Shaun Micheel's wikidata entry (4377) does not relate to his ranking but to his entry on the OWGR website (http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=4377) so is not the same thing as Serena Williams peak rankings. The golfer infobox does not currently have any ranking information. The Tennis approach is to include the rankings in the player articles (2xsingles (peak, current) + 2xdoubles). Because of concerns about maintenance I am proposing a centralised approach - keeping the peak ranking in a separate file. This is approach used in {{Infobox snooker player}} where the current rankings are kept in a file Template:Infobox snooker player/rankings. Module:SportsRankings is used for various national current rankings, where eg Module:SportsRankings/data/FIFA World Rankings contains all the data. Nigej (talk) 11:09, 1 October 2019 (UTC)
- You misunderstand me. I didn't say it was the same thing. I was suggesting modifying d:Property:P1352 to handle golf rankings (& peak rankings) as it does for tennis players. Cabayi (talk) 11:17, 1 October 2019 (UTC)
- I concur with Cabayi. Let's use the dedicated storage for data in Wikimedia, i.e. Wikidata, to hold this information. The advantages are numerous. Sorry if this means that some of your work is wasted. I don't mind helping to transfer some of this data. @Cabayi: is there a property for "highest ranking" or can it be easily calculated from the rankings at different points in time? — Martin (MSGJ · talk) 11:50, 2 October 2019 (UTC)
- I've had a look over the discussion at WT:GOLF and I can see it has been thoroughly discussed and I have no desire to trample over anyone's work. So I am willing to action this request and use your proposed code. However I would still like to encourage you to consider using Wikidata in the future, because this is exactly what is was designed and built for. — Martin (MSGJ · talk) 12:07, 2 October 2019 (UTC)
- MSGJ - Pasleim's proposal for the property (here) explicitly encompasses the owgr rankings. Its use on Serena, d:Q11459 is as a peak ranking at a point in time. Cabayi (talk) 12:21, 2 October 2019 (UTC)
- Current ranking is obviously not the same as peak ranking, and there is nothing in the property's documentation that it should be used for peak value. So arguably the tennis biography is misusing that property. Anyway it seems the golf project is proposing to keep track of both current and peak rankings. Is that true, and if so what is the best way to achieve that? — Martin (MSGJ · talk) 12:29, 2 October 2019 (UTC)
- We are not proposing to keep track of current rankings, only peak. Nigej (talk) 12:39, 2 October 2019 (UTC)
- Okay thanks for clarifying. Current ranking would indeed be hard to maintain. — Martin (MSGJ · talk) 12:53, 2 October 2019 (UTC)
- We are not proposing to keep track of current rankings, only peak. Nigej (talk) 12:39, 2 October 2019 (UTC)
- Current ranking is obviously not the same as peak ranking, and there is nothing in the property's documentation that it should be used for peak value. So arguably the tennis biography is misusing that property. Anyway it seems the golf project is proposing to keep track of both current and peak rankings. Is that true, and if so what is the best way to achieve that? — Martin (MSGJ · talk) 12:29, 2 October 2019 (UTC)
- The OWGR entry in Shaun Micheel's wikidata entry (4377) does not relate to his ranking but to his entry on the OWGR website (http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=4377) so is not the same thing as Serena Williams peak rankings. The golfer infobox does not currently have any ranking information. The Tennis approach is to include the rankings in the player articles (2xsingles (peak, current) + 2xdoubles). Because of concerns about maintenance I am proposing a centralised approach - keeping the peak ranking in a separate file. This is approach used in {{Infobox snooker player}} where the current rankings are kept in a file Template:Infobox snooker player/rankings. Module:SportsRankings is used for various national current rankings, where eg Module:SportsRankings/data/FIFA World Rankings contains all the data. Nigej (talk) 11:09, 1 October 2019 (UTC)
I don't think anyone on the project has got the slightest idea how to load the data into Wikidata or how to use the data that is there. I'm also bemused as to why the Serena Williams doubles article on Wikipedia says (for Doubles) "Highest ranking No. 1 (June 21, 2010)" while her wikidata page https://www.wikidata.org/wiki/Q11459 says for "ranking": "tennis doubles" "7 June 2010". Presumably that means that her article in Wikipedia is not using the wikidata data (or perhaps vice-versa). Nigej (talk) 12:32, 2 October 2019 (UTC)
- I've just added the ranking to Shaun Micheel (Q1755828) if you want to take a look. Dead easy. If you want me to put some code together in the sandbox, then I can have a look later today — Martin (MSGJ · talk) 12:53, 2 October 2019 (UTC)
- You have, in a sense, highlighted one of our main concerns, which is how to keep tabs on the data. You've somehow gone in, added/changed the data without anyone in the golf project being away of it (presumably the change would not even come up on a watchlist). Further points: Can the wikidata system handle extra details like the reference proposed and possible hypertext link? Given our complete ignorance we would need help to make a system to get the data into wikidata and to change the infobox to actually use it. — Preceding unsigned comment added by Nigej (talk • contribs)
- In theory any changes to Shaun Micheel (Q1755828) should be visible to any editor watching Shaun Micheel. (When I tested this earlier it didn't seem to be working, so I will need to explore further.) Wikidata does handle references as you can see from the change I made. I think the link and any other text would be produced by the infobox template. I will look at putting some code in the sandbox shortly. — Martin (MSGJ · talk) 19:24, 2 October 2019 (UTC)
- Special:Preferences > Watchlist > Advanced options > Show Wikidata edits in your watchlist.
- Tried a quick check on Micheel - first line of Special:Permalink/919270768.
- In theory any changes to Shaun Micheel (Q1755828) should be visible to any editor watching Shaun Micheel. (When I tested this earlier it didn't seem to be working, so I will need to explore further.) Wikidata does handle references as you can see from the change I made. I think the link and any other text would be produced by the infobox template. I will look at putting some code in the sandbox shortly. — Martin (MSGJ · talk) 19:24, 2 October 2019 (UTC)
- You have, in a sense, highlighted one of our main concerns, which is how to keep tabs on the data. You've somehow gone in, added/changed the data without anyone in the golf project being away of it (presumably the change would not even come up on a watchlist). Further points: Can the wikidata system handle extra details like the reference proposed and possible hypertext link? Given our complete ignorance we would need help to make a system to get the data into wikidata and to change the infobox to actually use it. — Preceding unsigned comment added by Nigej (talk • contribs)
peak ranking {{format numeric span|{{#property:P1352}}}}
- Done I've done the code change, though I concur with Cabayi and MSGJ that Wikidata might be the best place for holding rankings. Once/if the Wikidata migration is done, feel free to edit request again. Nigej, you should be able to un-revert your edit to the highest ranking sub-template now, even if it's an interim measure pending said Wikidata migration. Sceptre (talk) 01:57, 3 October 2019 (UTC)
Problem with references for rankings
In many cases, the references being used for the peak ranking do not verify this fact. They only verify that the player reached that ranking on that week, not that is was the highest they ever reached. Discussion started at WT:GOLF#Problem with refs, but seems to be being ignored as an issue. 51.6.155.7 (talk) 10:04, 10 October 2019 (UTC)
Use of Wikidata
Following on from the discussion above there is a first draft of the code with an example at Template:Infobox golfer/testcases#Tiger Woods. I have still got the date and the reference to code. — Martin (MSGJ · talk) 08:52, 3 October 2019 (UTC)
- I've added the date now to the sandbox version, and I'm currently toying with the duration of that highest ranking. Why would you say 683 weeks? Would 13 yr be more appropriate? — Martin (MSGJ · talk) 21:19, 3 October 2019 (UTC)
- Thanks for your efforts. The rankings are updated weekly and normally the number of weeks at no. 1 is quoted in weeks, see: List of world number one male golfers#Weeks at number one. Obviously Tiger is an exceptional case; few golfers even get to 52. Nigej (talk) 04:37, 4 October 2019 (UTC)
@Nigej: I've finished coding this as can be seen on Template:Infobox golfer/testcases#Tiger Woods and Template:Infobox golfer/testcases#Greg Norman. Slight differences to your version:
- Date and duration in smaller font to save space
- Date shortened to just month and year, and month is abbreviated
- Pencil icon links straight to Wikidata where values can be edited
Ready for feedback! — Martin (MSGJ · talk) 20:55, 6 October 2019 (UTC)
- Thanks for your effort. Will have a look and make some comments soon. Nigej (talk) 06:04, 7 October 2019 (UTC)
- I was hoping I might be able to persuade you to stop working on Template:Infobox golfer/highest ranking and start editing Wikidata! — Martin (MSGJ · talk) 19:21, 7 October 2019 (UTC)
- I don't think that the two are incompatible. I'm currently in a data collection phase, nearly finished I think (8 left out of 399). I haven't looked sufficiently at what you've done to work out how to put all the data into wikidata. I'm assuming that there's some sort of (semi-)automated system for populating wikidata and that I don't have to go through everything my hand. I'm imagining that I'll simply have to rejig the current file into a different format and "push a button" somehow. Nigej (talk) 19:37, 7 October 2019 (UTC)
- I was hoping I might be able to persuade you to stop working on Template:Infobox golfer/highest ranking and start editing Wikidata! — Martin (MSGJ · talk) 19:21, 7 October 2019 (UTC)
Feedback
@MSGJ: Firstly I should say that I know nothing of Wikidata, so excuse my complete ignorance there. However it is clear that it is a much better approach than the one I developed. Mine involves a "switch" search every time someone looks at any golfer article with this template (3655 of them) while yours involves loading the data once a week and then simply using it.
I like the idea of hiving off the Template:Infobox golfer/ranking bit into a separate file. Depending on the protection it would (I assume) also enable us to edit it (which we can't do directly for the infobox itself. Mind you whether that's a good thing or not? The precise details of the file are something of a mystery to me of course.
I'm assuming that restricting the text to a single line is your own preference and that it could go onto two lines.
You've only considered the number 1s so far. Those who haven't reached number 1 have a somewhat different style. see eg Danny Willett. They don't have the "weeks" stuff but there is a second line "as of 6 October 2019" or "as of October 6, 2019" (for Americans and Canadians) showing how up-to-date the information is (the current number 1 Brooks Koepka also has this). This is currently only included for those who reached their highest ranking in the last 5 years. It is assumed that older golfers are unlikely to ever reach that level again, see eg Mark James (golfer).
Can we remove the "pencil" so that the data is not editable through this method?
Currently we have a separate "OWGR golf player ID" https://www.wikidata.org/wiki/Property:P3568 which gives the location of the player's page on the OWGR websute eg the 5321 part of http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=5321 I'm not sure whether these should be combined in some way, but that's probably for another day.
I've got no idea how to get data into Wikidata. Obviously we don't want to do the editing by hand. I know that Wikidata was populated by scanning through Wikipedia articles in some way. I'm assuming that there is some system whereby I can edit a single file on Wikipedia or Wikidata and somehow populate all the Wikidata entries in one go. In my system I'm planning to update the Template:Infobox golfer/highest ranking file once a week using an external editor (so that I can change say "as of 29 September 2019" to "as of 6 October 2019" all in one go). I did this for the first time yesterday using vim. Nigej (talk) 11:21, 8 October 2019 (UTC)
- Thanks for your comments. I would also be the first to admit that I am not an expert with Wikidata, but I am growing in confidence. I will answer your points.
- Protection of the subtemplate should probably match protection of the main template. If this is hindering you and you (broadly) meet the criteria at WP:TPEGRANT I can easily grant this.
- You're right I think. Nigej (talk) 10:42, 10 October 2019 (UTC)
- I will protect the subtemplate when deploying the new code. Again, do let me know if you meet the criteria and want the user right — Martin (MSGJ · talk) 10:30, 15 October 2019 (UTC)
- You're right I think. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Yes, the current format is my idea and can be tweaked easily according to the project's wishes.
- Can the wikidata text include mark-up stuff, eg line breaks, calls to templates (eg {{Date}}), etc or does it just get substituted? Nigej (talk) 10:42, 10 October 2019 (UTC)
- Wikidata holds the data only. The markup is handled by the template. Please let me know what changes you want made to the formatting.
- Can the wikidata text include mark-up stuff, eg line breaks, calls to templates (eg {{Date}}), etc or does it just get substituted? Nigej (talk) 10:42, 10 October 2019 (UTC)
- I concentrated on numbers 1s because these were the examples I found in the testcases. I will now study those other examples you have indicated and adjust the sandbox accordingly.
- The pencil is a feature that allows editors to update the data easily. It can of course be removed, but one of the main advantages of this system over the complex switch file is ease of updating without technical knowledge. Why did you want it removing, may I ask?
- We're only worried about keeping tabs on changes. Also if there was a bot populating the data every week, then I guess any change a user made would be overwritten by that anyway, making the edit rather pointless. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Okay I will remove the edit link for now, but I still think it is a good feature to allow editors to update the data easily. — Martin (MSGJ · talk) 10:30, 15 October 2019 (UTC)
- We're only worried about keeping tabs on changes. Also if there was a bot populating the data every week, then I guess any change a user made would be overwritten by that anyway, making the edit rather pointless. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Yes, Official World Golf Ranking player ID (P3568) can probably be employed in some useful fashion by the infobox, but this is probably better in a fresh discussion, and I am not sure it will affect the implementation of rankings.
- Perhaps something for later. Generally most relevant player articles have a link to their OWGR page in the external links part of their article, which I guess is where Wikidata got its data from. Nigej (talk) 10:42, 10 October 2019 (UTC)
- There are automated editing options in Wikidata, but I am not too familiar with them. If your highest ranking template is now complete, then I will post a request to the bot's noticeboard to ask for advice on mass importing this information to Wikidata.
- A bot seems like a good option, although I know nothing about it. Nigej (talk) 10:42, 10 October 2019 (UTC)
- All data has been imported by a script, see below — Martin (MSGJ · talk) 10:30, 15 October 2019 (UTC)
- A bot seems like a good option, although I know nothing about it. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Can I suggest that any system that requires an editor to update the data each week, is probably not sustainable in the long term. We should probably look for an automated method of doing this. I can see the benefit of a label which says "as of 9 October", but that could apply to a huge amount of timely information on Wikipedia, yet we don't routinely do this. I will think on this a bit more.
- This is why we've never done it in the past. Someone suggested this "highest ranking" idea and we're giving it a go. The tennis project adds current rankings too, which seems a very onerous task to me, but perhaps they have more effort available than the golf project does. We try to maintain up-to-date information (at least the winner) on all tournaments used by the OWGR ranking system (356 so far this year) so there's plenty of updating required there each week anyway. Of the entries in the "highest ranking" file (those who've ever reached the top 50) just one reached a new high in this our first week of updating (see Patrick Cantlay) so it didn't seem as onerous as much of the weekly updating we already do. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Finally can I suggest that we implement the rankings for women as well, otherwise the project could be accused of sexism ;)
- Yes. This also came up in the discussion. A problem is that the available data for the women is much less than for the men, despite them only having started in 2006. We maintain a list of world number 1s at Women's World Golf Rankings#World number ones, which could readily be added but it might seem a little odd if we restricted ourselves to just them. One of the other editors generally updates the women's rankings, so not my area of expertise. My plan was to review where we are in the new year and certainly the women need to be considered. Nigej (talk) 10:42, 10 October 2019 (UTC)
- Protection of the subtemplate should probably match protection of the main template. If this is hindering you and you (broadly) meet the criteria at WP:TPEGRANT I can easily grant this.
- Best regards — Martin (MSGJ · talk) 20:03, 9 October 2019 (UTC)
Data imported to Wikidata
@MSGJ: I have imported all the data from the template subpage to Wikidata. SixTwoEight (talk) 17:51, 12 October 2019 (UTC)
- This is brilliant, many thanks for your prompt assistance — Martin (MSGJ · talk) 07:14, 14 October 2019 (UTC)
@Nigej: Now that all the data has been imported, I think we are ready to deploy. I have responded to some of your points above. Please let me know if any more changes are needed to the output on the testcases. — Martin (MSGJ · talk) 10:42, 15 October 2019 (UTC)
@MSGJ: Will have a look to see where we are. No 100% sure what data has been imported to Wikidata. I note you refer to a "script". I've got no idea what this might look like. Is it something I could edit and run myself? Nigej (talk) 10:57, 15 October 2019 (UTC)
- I've just added some qids to the Template:Infobox golfer/testcases#Test highest ranking (about a dozen or so). (1) Still have just the month, not the exact day (2) Nothing appears for Nick Faldo (3) Weeks and "as of" info do not appear for Brooks Koepka (3) "as of" info not included for Bubba Watson and others (4) Wikidata already out of date for Matthew Fitzpatrick and two others I updated this week. Difficult for me to comment in detail since I'm still unsure how to populate Wikidata in a reliable way. Nigej (talk) 13:27, 15 October 2019 (UTC)
- Do you know if there is a simple way of finding the qids for a list of people. Currently I do a search in Wikidata and then cut and paste the Q number. Nigej (talk) 13:43, 15 October 2019 (UTC)
- Replies:
- The script was a one-time run by User:SixTwoEight to import the data in your /highest ranking subtemplate into Wikidata.
- I have added some more qids. Quickest way is probably to search in Wikidata, although there is a link to "Wikidata item" for each article. Note: these codes are only required on the test page and will not be needed in the actual article.
- Nick Faldo Fixed. For some reason the data had not imported for this person.
- Done Duration added for Koepka. Not sure why this was missed.
- "As of" not implemented yet. Why do some have this field and not others? Do you want one date to apply to all golfers (i.e. the date that you check/update all the data) or separate dates for each?
- Please update data on Wikidata when making changes, if possible.
- — Martin (MSGJ · talk) 15:04, 15 October 2019 (UTC)
- Replies:
@MSGJ: Thanks for the replies. I've had a play with the Template:Infobox golfer/ranking file. As you noted, the "as of" feature is missing. As you also noticed it is only included for some golfers. The logic is that, for active players, it is important for readers and editors to know whether the data is up-to-date or not. For golfers who were at their peak decades ago (some are dead) the "as of" feature is of no use. Currently those players who reached their peak ranking is the last 5 years have the "as of" date, earlier ones don't (currently 80 out of 400 have it). This 5 year cutoff is not ideal and is currently open to debate. The main issue is still the matter of how the data gets reliably into Wikidata. Currently User:SixTwoEight has populated it in some unknown way and you've made some changes too. We certainly need a much more transparent system where editors can see the data without wading through hundreds of Wikidata pages. We also need it make updating simpler. Changing the data for Matthew Fitzpatrick and two others + updating the Brooks Koepka weeks by 1 (this weeks changes), is simple enough but updating all the "as of" dates is not practical. And of course we're planning to add many more golfers in the future. So I'm still thinking that some script/bot which we can run weekly (hopefully) is required.
There is a difference between the "as of" for the number 1s compared to the others. For most (who've not reached number 1) the "as of" relates to the highest ranking whereas for the number 1s it relates to the weeks and is currently only included for the current number 1. Nigej (talk) 18:59, 16 October 2019 (UTC)
The way I've written it, the current number 1 (Koepka) and the current "as of" date are hard wired. Nigej (talk) 19:12, 16 October 2019 (UTC)
Post nonimals
Patricia Bridges has an OBE, but I cannot add this honorific to this infobox, unlike {{Infobox person}}. Can we please add the parameter for suffix and prefixes to this infobox? - Chris.sherlock (talk) 17:26, 5 March 2020 (UTC)
- I'm not sure why we'd want to add it to infobox golfer. It gets plenty of mentions in the text already. Having said that a number of users have added titles to the "name" field: eg Justin Rose. Nigej (talk) 17:52, 5 March 2020 (UTC)
Template-protected edit request on 27 April 2020
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please revert this most recent change [1]. The nowrap was added to prevent excessive wrapping everywhere (but as a trade-off, does require manual breaks in award labels). As such, it's removal has created more formatting/display issues than it has resolved. See Greg Norman in Template:Infobox golfer/testcases for an example, although there are more extreme examples where many "awards" are listed (Nick Faldo may be a good one). See also Template talk:Infobox golfer/Archive 1#Style overrides for an earlier discussion on this subject. Thanks. wjematherplease leave a message... 09:56, 27 April 2020 (UTC)
- Done I have restored the nowrap style to the labels, but it looks ridiculous. Needing to put line breaks into the labels is undocumented in the template's documentation, and it is less good than having the browser wrap the labels as appropriate. How are editors to know that this one infobox, unlike all of the others, requires manual line breaks to prevent the infobox from being ridiculously wide? I have added a test case without line breaks so that editors can compare the sandbox (with wrapping allowed) with the live template (forced nowrap and manual line breaks). – Jonesey95 (talk) 13:32, 27 April 2020 (UTC)
- Thanks. If there is a solution that allows removal of the nowrap that does not result in nonsensical wrapping of many static labels that would be great. However that would still require changes to a large number of articles that currently have manual line breaks in user-entered labels, in order to avoid wrapping problems with them. After removal of nowrap, some two line labels stretch to three without manual line breaks but double to four lines if the manual line breaks are not taken out. wjematherplease leave a message... 15:36, 27 April 2020 (UTC)
- Jonesey95 and wjemather, I changed the awards section to use a "subbox" which allows that the labels in that section to have a different width than the labels in the rest of the infobox. as far as I can tell, since the nowrap is still there, this doesn't negatively impact any existing articles. I have experimented with then removing the nowrap from the bottom awards section (now in the sandbox). you can see the result in the testcases. if we do eliminate the nowrap, we should probably add tracking for places where manual linebreaks are used per the example provided by wjemather. Frietjes (talk) 19:53, 27 April 2020 (UTC)
- Thanks. If there is a solution that allows removal of the nowrap that does not result in nonsensical wrapping of many static labels that would be great. However that would still require changes to a large number of articles that currently have manual line breaks in user-entered labels, in order to avoid wrapping problems with them. After removal of nowrap, some two line labels stretch to three without manual line breaks but double to four lines if the manual line breaks are not taken out. wjematherplease leave a message... 15:36, 27 April 2020 (UTC)
Edit request 25 September 2020
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per discussion at WT:GOLF#Medal table in infobox make the following change. The effect of the changes can be seen at {{Infobox golfer/testcases}} (add medal record at the bottom of the infobox, using test version at {{Infobox golfer/sandbox}}). Documentation at Template:Infobox golfer/doc is not protected, so I can make that change myself. Nigej (talk) 06:38, 25 September 2020 (UTC)
| below = {{#if:{{{awardssection|}}}|''(For a full list of awards, see [[{{{awardssection}}}|here]])''}}
to:
| data63 = {{#if:{{{awardssection|}}}|''(For a full list of awards, see [[{{{awardssection}}}|here]])''}} | header64 = {{Infobox medal templates | medals = {{{medaltemplates|}}} | expand = {{#ifeq:{{lc:{{{show-medals}}}}}|yes|yes|}} }}
- To editor Nigej: done, and thank you! Also added
|medaltemplates=
to the "Check for unknown parameters" invoked module so it would not appear in Show preview as an "unknown parameter". P.I. Ellsworth ed. put'r there 17:39, 25 September 2020 (UTC)- To editor Paine Ellsworth: Oops. Missed that. Thanks for spotting it. Nigej (talk) 17:42, 25 September 2020 (UTC)
- Just tested it again and had to add
|show-medals=
to the module as well. No problemo. P.I. Ellsworth ed. put'r there 17:52, 25 September 2020 (UTC)
- Just tested it again and had to add
- To editor Paine Ellsworth: Oops. Missed that. Thanks for spotting it. Nigej (talk) 17:42, 25 September 2020 (UTC)
Edit request 27 September 2020
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
There seems to be a minor bug. The problem can be seen in the top example at {{Infobox golfer/testcases}}. Specifying "|status=Amateur" does not result in any output even when yearpro is not specified. Currently the bug can be bypassed by adding an extra line "|yearpro=". Change required:
| data15 = {{#if:{{{yearpro}}}| |{{{status}}}}}
to:
| data15 = {{#if:{{{yearpro|}}}| |{{{status}}}}}
- Done — Martin (MSGJ · talk) 15:30, 27 September 2020 (UTC)
Edit request 18 March 2021
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add support for embedding this template into others. Sandbox edit. Nikkimaria (talk) 13:07, 18 March 2021 (UTC)
- Done — Martin (MSGJ · talk) 05:01, 19 March 2021 (UTC)
Template-protected edit request on 5 July 2021
This edit request to Template:Infobox golfer has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add parameters embed
and embedded
between parameters dumaurier | eurowins
in the last section of the template, "Check for unknown parameters" for an end result of dumaurier | embed | embedded | eurowins
The reason for this change is where this template is embedded correctly, it throws a "Page using Template:Infobox golfer with unknown parameter "embed" " warning like it doesn't understand what it did. Zinnober9 (talk) 18:47, 5 July 2021 (UTC)
- Partly done: I fixed it for
|embed=
.|embedded=
does not appear to be a supported parameter. – Jonesey95 (talk) 22:43, 5 July 2021 (UTC)
Discussion notice
There is a discussion at WT:GOLF#"Nationality" parameter in Infobox golfer regarding a possible renaming/clarification of the "Nationality" field label. wjematherplease leave a message... 11:30, 29 September 2021 (UTC)
Edit request 4 October 2021
This edit request to Template:Infobox golfer has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Following a discussion at WT:GOLF#"Nationality" parameter in Infobox golfer the outcome was that the text associated with "nationality" parameter should be changed from "Nationality" to "Sporting nationality". It seems logical that the "nationality" parameter should optionally be called "sporting_nationality".
This involves changing
| header1 = {{#if:{{{full_name|}}}{{{fullname|}}}{{{nickname|}}}{{{birth_date|}}}{{{death_date|}}}{{{height|}}}{{{weight|}}}{{{nationality|}}}{{{residence|}}}{{{spouse|}}}{{{partner|}}}{{{children|}}}|Personal information}}
to:
| header1 = {{#if:{{{full_name|}}}{{{fullname|}}}{{{nickname|}}}{{{birth_date|}}}{{{death_date|}}}{{{height|}}}{{{weight|}}}{{{sporting_nationality|}}}{{{nationality|}}}{{{residence|}}}{{{spouse|}}}{{{partner|}}}{{{children|}}}|Personal information}}
| label8 = '''Nationality''' | data8 = {{{nationality|}}}
to:
| label8 = '''Sporting nationality''' | data8 = {{{sporting_nationality|{{{nationality|}}}}}}
and adding sporting_nationality to the list of valid parameters (in the last line)
These are implemented at {{Infobox golfer/sandbox}} with testcases at {{Infobox golfer/testcases}}. Nigej (talk) 18:25, 4 October 2021 (UTC)
Redundant bolding
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
For each of the labels in this template, they're wrapped in bold markup. However, these labels are presented as table headers (<th>
) in the infobox, which are already shown in a heavy font weight. Please remove the triple quotes from all label names in this infobox. For example,
| label3 = '''Nickname'''
would be changed to:
| label3 = Nickname
You can compare to other infoboxes, e.g. {{Infobox writer}}, to see that this is standard. Opencooper (talk) 00:02, 22 April 2022 (UTC)
- Done * Pppery * it has begun... 01:28, 22 April 2022 (UTC)
- @Pppery: I just realized that this was being done intentionally so that everything past the Career section wouldn't be bolded, which is why
labelstyle
is set tofont-weight:normal;
. Apologies for being too hasty, could you revert? Opencooper (talk) 02:56, 22 April 2022 (UTC)
- @Pppery: I just realized that this was being done intentionally so that everything past the Career section wouldn't be bolded, which is why
Remove "retired" parameter
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Following a discussion at WT:GOLF#"Question about retirement date there was consensus to remove the "retired" parameter from this infobox. The required changes are implemented at {{Infobox golfer/sandbox}} with testcases at {{Infobox golfer/testcases}}. Nigej (talk) 04:37, 13 June 2022 (UTC)