Module talk:Sports table/WDL
@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)
- @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)
- 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)