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 16:34, 19 December 2014 (Beach soccer: r). 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]