Jump to content

Module talk:Sports table/WDL

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CRwikiCA (talk | contribs) at 21:16, 20 December 2014 (Beach soccer). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

@CRwikiCA: Would it be possible to add an option to change the headers for beach soccer to W, W+, L instead of the default? Looking at the code, it seems as simple as adding an option for |beach=yes, y, true, t, 1, then when creating the header, adding a simple If..Then..Else statement. I was about to being working on FIFA Beach Soccer World Cup when I noticed that they have no draws in beach soccer. |draw_TTT= doesn't need to change, and I know we can easily set |draw_points=2, but the header is the visual element that would need to change.

I'd do it, but I'm not comfortable enough in Lua to make changes without thinking I'll break it. I know I can simply revert, but I'd still rather not possibly break dozens of articles and templates, no matter how temporary. — Jkudlick tcs 13:31, 19 December 2014 (UTC)[reply]

@Jkudlick: I would prefer to create an option to overwrite the draw column header instead with a custom header, that would reduce the clutter in the Lua-code and be a more versatile solution. I have also toyed with the idea of renaming the football style WDL, to give it a more generalized function (not every sport needs their own style, it should depend on the match result options). Would such a solution work in your eyes? CRwikiCA talk 16:33, 19 December 2014 (UTC)[reply]
Versatility is why the module was created, right? I like your option to be able to create custom headers. — Jkudlick tcs 16:52, 19 December 2014 (UTC)[reply]
@Jkudlick:I added the option |draw_header= to adjust this, example:
Pos Team Pld W W+ L GF GA GD Pts
Updated to match(es) played on unknown. Source: [citation needed]
That will work perfectly! Thanks! — Jkudlick tcs 19:38, 19 December 2014 (UTC)[reply]
@CRwikiCA: And of course, FIFA has to go and complicate it this year with a 3-2-1-0 point structure (Regulation Win-AET Win-PKSO Win-Loss). All previous World Cups were the standard 3-2-0 point structure used in beach soccer (Regulation Win-AET/PKSO Win-Loss). I was about to change the tables in 2015 FIFA Beach Soccer World Cup when I noticed the change. I'll look at WL OT to see if that could be used. *sigh* — Jkudlick tcs 13:24, 20 December 2014 (UTC)[reply]
A similar change could probably be made there to accomplish that. :) CRwikiCA talk 21:16, 20 December 2014 (UTC)[reply]