I've attempted a similar template: Template:WDLpts that has additional its column and pts% column, so we can see the percentage of points taken out of the total available, which I find much more insightful. However, the template I made isn't perfect, and it'd probably be better to just implement maybe optional columns into this one. If anyone can do it, it'd be greatly appreciated! --Adam (talk) 07:36, 31 August 2011 (UTC)[reply]
I was just looking at the Quique Flores article and it seems this template has a bit of an issue distinguishing between positive and negative numbers. A few times, it's displaying a negative goal difference when it should be positive and vice-versa. Any ideas? – PeeJay20:12, 7 August 2015 (UTC)[reply]
Wouldn't it be possible to generate the total number of games played as the arithmetic sum of the numbers of wins, draws and losses? Seems like we're adding an extra parameter to the template for no reason... – PeeJay10:17, 7 October 2017 (UTC)[reply]
Oh yeah, I understand that, I just think it's a shame it wasn't realised that the total column could be filled in using an arithmetic operation when the template was first put together. – PeeJay08:44, 9 October 2017 (UTC)[reply]
The current winning percentage for this template is calculated by dividing the total wins by the total games played. However, isn't it standard to factor in half of the draws into winning percentage? I believe the full credit should be:
(wins + (draws/2))/total games played = winning percentage
In "Module:WDL," it think it would look something like this:
return displayWinPercent(frame, 100 * (won or 0) + ((drawn or 0) / 2) / (((won or 0) + (drawn or 0) + (lost or 0)) or 1), decimals)
elseif tonumber(played) <= 0 then
return '!—'
else
return displayWinPercent(frame, 100 * (won or 0) + ((drawn or 0) / 2) / played, decimals)
end
– — Preceding unsigned comment added by Adamng87 (talk • contribs) 20:02, 6 May 2024 (UTC)[reply]
Can you provide any examples of sources that treat draws as half a win for the purposes of calculating win percentages? Most sources I have come across do not do that. – PeeJay22:24, 6 May 2024 (UTC)[reply]
Wikipedia's own page on winning percentage states that "a draw counts as a 1/2 win." There is a carve out for association football managers, but there is no citation given. It just links to the association football page, which has no reference to calculating winning percentage. – Adamng87(talk) 15:10, 8 May 2024 (UTC)[reply]
Wikipedia cannot act as a source for itself. I have no doubt that in some circumstances draws are treated as half-wins, but that is a very American thing. Perhaps we should find a way of incorporating both calculations into this template (assuming that's not already been done). – PeeJay13:40, 10 May 2024 (UTC)[reply]
I'm not sure what's going on with this, editor Microwave Anarchist. First I changed the color in the module sandbox to your suggested color, that is, from to . I checked the Jürgen Klopp#Managerial statistics in preview and could not see a difference. I then tried to test a green color, , for the background and still do not see a difference. With the template sandbox at Template:WDL/sandbox set to invoke the module sandbox, I can't see why no difference in background color is shown. Any ideas? I must be missing something? P.I. Ellsworth , ed.put'er there06:06, 14 March 2025 (UTC)[reply]
@Paine Ellsworth: Honestly I'm really not sure why that didn't work - it quite clearly seems to be the part responsible for the colour of the total cells. I've got very little idea how this works otherwise unfortunately so don't know what to do from here. Microwave Anarchist (talk) 05:08, 15 March 2025 (UTC)[reply]
I wonder if there's a reason why the background color is the way that it is. It distinguishes the background, so that might be useful? SWinxy (talk) 00:19, 22 March 2025 (UTC)[reply]
@Paine Ellsworth: no, the requested edit is for the background colour to be changed where it forms a total row i.e. where {{WDLtot}} is used - it is inconsistent with default table styling. Where {{WDL}} is used it should still render a standard row rather than a header row. Sorry if this was unclear. Microwave Anarchist (talk) 21:04, 30 March 2025 (UTC)[reply]