Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
m Remove template per TFD outcome |
||
(44 intermediate revisions by 6 users not shown) | |||
Line 20:
For '''''res_col_header= ''''' can you also have '''Comments''' as per [[2014–15 Ukrainian First League#League table|2014–15 Ukrainian First League]] ? [[User:Brudder Andrusha|Brudder Andrusha]] ([[User talk:Brudder Andrusha|talk]]) 05:28, 7 November 2014 (UTC)
:{{ping|Brudder Andrusha}} Yes, see reply at [[WT:FOOTY]]:
{{#invoke:Sports table|main|style=
|team1=FDT
|result1=new
Line 33 ⟶ 32:
}}
It can be customized that way, although you might want to indicate the new status with footnotes instead:
{{#invoke:Sports table|main|style=
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
|result1=WC
Line 47 ⟶ 45:
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=Team 4
|name_EEE={{fb|GIB}}
Line 59 ⟶ 58:
:{{ping|Jkudlick}}This would be possible, do you want me to implement it for the group A to see whether my idea works? I think having values yes, y, true, t and 1 (independent of case) would catch all options, or should there be more options? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 15:21, 7 November 2014 (UTC)
::{{ping|CRwikiCA}}Those options should be enough. If you want to test it on Group A, I have no problem with that. -- [[User:Jkudlick|Jkudlick]] ([[User talk:Jkudlick|talk]]) 15:37, 7 November 2014 (UTC)
{{ping|Jkudlick}} Done:<pre>
{{2015 FIFA Women's World Cup Group A table}}
{{2015 FIFA Women's World Cup Group A table|only_pld_pts=yes}}</pre>
I kept the same parameter name to keep it easier to follow if people end up reading the Lua code. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 17:29, 7 November 2014 (UTC)
*You rock! -- [[User:Jkudlick|Jkudlick]] ([[User talk:Jkudlick|talk]]) 17:33, 7 November 2014 (UTC)
Line 76 ⟶ 75:
:{{ping|Asturkian}} That is the idea, when it has been rolled out to the football project and everything is working well (no errors) the plan is to spread the module to other sports as well. For example the table is currently called with {{para|style|football}} but also {{para|style|WL OT}} works (mainly as test) which is for tables without draw and has overtime wins (OTW) and overtime loss (OTL) instead (those names can be changed to i.e. shootout). The columns are decided in submodules (for example [[Module:Sports table/football]] or [[Module:Sports table/WL OT]]). I can give you example of thos kind of table.
:For {{para|style|football}} we get
:{{#invoke:Sports table|main|style=
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
Line 89 ⟶ 87:
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=DDD
|name_EEE=Team 4
}}
Line 106 ⟶ 105:
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=DDD
|name_EEE=Team 4
}}
Line 251:
Hi, people. Could it be possible to keep the option of showing any team without creating a new template for the table? E.g., in [[2014–15 Segunda División B]] I changed the tables for the new modules, but the <code>showteam</code> option is not available for these, for adding in the team season articles there are of three teams of the league. If possible, I don't want to create templates for the tables. [[User:Asturkian|Asturkian]] ([[User talk:Asturkian|talk]]) 11:45, 29 January 2015 (UTC)
:{{ping|Asturkian}} You can still use the {{para|showteam}} in those cases outside of the template, e.g.:
{{#invoke:Sports table|main|style=
|update=25 January 2015
|source=[http://www.futbolme.com/temporada.php?id=5 Futbolme.com]
Line 329:
::Versatility is why the module was created, right? I like your option to be able to create custom headers. — [[User:Jkudlick|Jkudlick]] <sup>[[User_talk:Jkudlick|t]]</sup><small>[[Special:Contributions/Jkudlick|c]]</small><sub>[[User:Jkudlick/sandbox|s]]</sub> 16:52, 19 December 2014 (UTC)
:::{{ping|Jkudlick}}I added the option {{para|draw_header}} to adjust this, example:
{{#invoke:Sports table|main|style=
|draw_header=<abbr title="Won after extra time or penalties">W+</abbr>}}
::::That will work perfectly! Thanks! — [[User:Jkudlick|Jkudlick]] <sup>[[User_talk:Jkudlick|t]]</sup><small>[[Special:Contributions/Jkudlick|c]]</small><sub>[[User:Jkudlick/sandbox|s]]</sub> 19:38, 19 December 2014 (UTC)
Line 364:
This is how it looks at the moment for the [[2017 UEFA European Under-21 Championship qualification|2017 tournament qualification]] page using your template:
<pre style="overflow:auto">{{2017 UEFA European Under-21 Championship qualification Group 1 |only_pld_pts=no |show_matches=yes}}</pre>
This is how it looked for the [[2015 UEFA European Under-21 Championship qualification|2015 equivalent]] using the old template:
<pre style="overflow:auto">{{2015 UEFA European Under-21 Championship qualification Group 1 |expanded=yes |fixtures=yes}}</pre>
On the page [[2017 UEFA European Under-21 Championship qualification]], the show_matches will be passed through the template.
Line 461:
|only_pld_pts=no |show_matches=no
|update=future |start_date=
Line 513 ⟶ 512:
At the start of the season the table would look like this.
<pre>
{{Fb cl header }}
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb cl footer |season_over=no |s=[http://www.ffa.am/en/competitions/armeniapremierleague/2010/ffa.am]}}
</pre>
Later in the season, it might look something like this.
<pre>
{{Fb cl header }}
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb
{{Fb cl footer |season_over=no |s=[http://www.ffa.am/en/competitions/armeniapremierleague/2010/ffa.am] |nt=<sup>1</sup>Winners of [[2011 Armenian Cup]].}}
</pre>
Line 574 ⟶ 573:
{{od}}I did change {{tl|2014–15 Eredivisie table}} to use the wildcard letters instead. That should clarify what is going on. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:21, 9 April 2015 (UTC)
{{ping|Qed237}}, I'm fine with the use of wildcard letters (X, Y, Z) for teams that have qualified for playoffs and yet may also be promoted as champions. Cheers. [[User:Delusion23|'''<
{{ping|Qed237}} There needs to be some indicator that a club has at least qualified for the playoffs. It doesn't matter at all what that indicator is, or if that club can still qualify for something better, but ignoring the fact that a club is certain to make the playoffs is poor. [[User:Bretonbanquet|Bretonbanquet]] ([[User talk:Bretonbanquet|talk]]) 17:02, 10 April 2015 (UTC)
Line 581 ⟶ 580:
:::That's why we have 'TQ'. In any case, I'd say it was very obvious if promotion hadn't been secured due to the lack of a 'P'. [[User:Bretonbanquet|Bretonbanquet]] ([[User talk:Bretonbanquet|talk]]) 17:29, 10 April 2015 (UTC)
On a similar note, could there be preference to have these letters show up before the team names? like '''x–'''AAA? Another option is using asterisks or other symbols such as daggers †? –'''[[User:Howard the Duck|<
:{{ping|Howard the Duck}} This option exists, call {{para|status_pos|before}} in the module call as seen in {{tl|2014–15 NHL Central Division standings}}. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 14:07, 24 April 2015 (UTC)
::The alternative is to use the standard footnote structure that can be used after the team name (the symbols are letters then). <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 14:13, 24 April 2015 (UTC)
:::Yes eventually the alternative footnote structure would have to be used in the end in this regard. How about asterisks and daggers? –'''[[User:Howard the Duck|<
::::Because numbering etc is all done automatically for footnotes one of the sets of [[WP:EXPLNOTE]] would have to be used in the current existing footnote structure (lower-alpha is currently used). The current TTT '''(X)''' might be used to incorporate none letter symbols as well for selected styles, but it would need to be tested to see how that would hold up. Is there a particular reason you would want to use these symbols? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 15:55, 24 April 2015 (UTC)
:::::The dagger (†) is used prominently in US NCAA basketball standing tables. See [[2014–15 Big East Conference men's basketball season]] and its sister articles. It's been in use for such a long time. I dunno where asterisks are used to denote something else other than footnotes, though. If this would ever get to have universal use it would have to be flexible enough to be accepted by every sports WikiProject. –'''[[User:Howard the Duck|<
::::::Those standings are a bit of an oddity anyway, because it uses a smaller font (for whatever reason?), and the style of the table is completely different (no lines, etc). I see other US college sports use a similar format. It beats me why the most important content of the page is reduced in size (it also seems to violate [[MOS:ACCESS]]). I would, however, think that the editors who edit those articles have a strong opinion about keeping that format. Outside of the US college sport tables anomaly, do other tables use the dagger? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 18:58, 24 April 2015 (UTC)
:::::::AFAIK there aren't any other leagues that use daggers. Other American leagues use x, y and z. –'''[[User:Howard the Duck|<
::::::::I think converting American college tables would take some extensive discussions, because the format is so different. So I don't know whether it is worth it to include that at this point. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 14:57, 27 April 2015 (UTC)
:::::::::Yes but it could be a project somewhere down the road. The tables are quite different, but could be done on this format. It's basically two "simple" tables together: one for conference opponents and one for all opponents. Basketball uses PCT but football ones don't (just straight up wins and losses). College basketball usually includes all teams in the conference playoffs, where the winner gets the "dagger"; in this case the playoff qualification colors aren't needed since everyone gets in, unless you're going to denote byes. College football usually makes the team at the top of the table the conference champion, unless it is divided into divisions where the two division winners play off for the conference championship. We could use the playoff qualification colors (or letters) as well. –'''[[User:Howard the Duck|<
::::::::::It's not hard technically, the issue will probably to find consensus with the editors of those articles, because they might not be willing to make such wholesale changes. If they are, then it would be easy to move forward. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:01, 27 April 2015 (UTC)
:::::::::::While I'll probably wait for their tables to look like everybody else's it's always handy to have these features working just in case... –'''[[User:Howard the Duck|<
{{od}} Having a dual W-L style (conference and overall) is feasible. I would base that on the current WL style then (so maybe without the dagger for now, if footnotes/status letters work). <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 19:02, 27 April 2015 (UTC)
== Tiebreaker column/s ==
Is this in the pipeline? I've noticed that tiebreaks are denoted by footnotes but this could be unwieldy if the process is particularly complex one. I'd also particularly like to limit footnotes to point deductions, withdrawals and other rare events. –'''[[User:Howard the Duck|<
:I'm agree with you. Footnotes are for rare events. When in an article there is a results table and also the rules for tiebreaking in a footnote, I don't see the need to add a footnote explaining the tiebreak. [[User:Asturkian|Asturkian]] ([[User talk:Asturkian|talk]]) 13:24, 25 April 2015 (UTC)
Line 604 ⟶ 603:
:::I particularly liked the system used on La Liga season pages before. There, the first tiebreaker was head-to-head points and not GD so they used a separate column for tiebreakers. There are some instances were you'd need multiple columns, or cram everything into one tiebreaker column. I was going to cite a tournament where the tie was broken on the final criterion: overall goal average but I can't find it.
:::Honestly I'm on the fence on "tiebreaker columns" as tiebreakers are not usually denoted this way. Either they're totally left out, or is at the bottom of the table (but not via footnotes). What I like about them is that they're pretty straightforward and you wouldn't have to scroll up and down unlike footnotes/notes. Plus the fact I'd reserve footnotes on something more important. –'''[[User:Howard the Duck|<
::::When consensus was formed to implement these tables for football articles, the vote was to use footnotes to indicate how ties were broken if necessary instead of having a separate (mostly empty) column. ([[Wikipedia_talk:WikiProject_Football/Archive_91#Footnotes|Archived discussion with unanimous support]]). <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 16:05, 27 April 2015 (UTC)
:::::Well, [[WP:CCC]], but that's football. There are supposedly many other sports that would be using this module, so I dunno how a discussion solely by football enthusiasts would be binding to rugby or hockey followers. Either way, it's a good bet that these templates were, for a lack of a better word, imposed on these articles (just as what we've been doing nowadays), and people just kinda liked it, were indifferent, or those who didn't, supporters would just point out the discussion with uninamous support that most people hadn't heard about until now.... so no more chance for a change because the same people would come out and say "UNANIMOUS SUPPORT BRO, JUST DEAL WITH IT."
:::::(Don't think that itself was wrong; there was no chance every football Wikipedian enthusiast would've heard of a discussion happening somewhere, and that a, for lack of a better word again, clique would do whatever it takes to impose what they've agreed upon because no one likes another round of discussion that could amend or undo, no matter how little the chances are, the changes. I did the same thing for basketball articles for the old standings template with a separate "tiebreaker column", and no one that I knew started a discussion to change it. This is unlike to say, what happened at [[Talk:2015 AFC Asian Cup#Remove superfluous info]].) –'''[[User:Howard the Duck|<
::::::I don't have a problem adding the option to add a switchable tiebreaker column (off by default) to some of the styles. It is up to individual table editors or wikiprojects to determine in which cases (if any) those should be used. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 19:07, 27 April 2015 (UTC)
Line 687 ⟶ 686:
{{#invoke:Sports table|main|style=WL
|status_pos=after
|team1=AAA|name_AAA=AAA
|status_AAA=L
|status_text_L=Lorem ipsum
Line 702 ⟶ 701:
:I'm not sure what others may say, but I would think first place should be green1. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 03:36, 26 May 2015 (UTC)
::If it would be coloured, it should be green1. Whether it should be coloured is a matter of personal preference, I have no strong opinion about it. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 14:41, 26 May 2015 (UTC)
:::Some people had used gold, silver and bronze bgcolor, but those are ugly and I personally hate it, that's I why I asked to use the {{gold1}} {{silver2}} {{bronze3}} icons to replace the numbered list. –'''[[User:Howard the Duck|<
== Champion but no Promotion/Qualification ==
Line 710 ⟶ 709:
== Advice on tables if last placed teams get to some kind of knockout round ==
If the last placed team gets to play after the group stage (not necessarily for the championship, or the consolation or classification round), that means all teams automatically qualify for that round, necessitating the use of "T" for all teams that aren't in last place, which gets a "Q". Is this correct? What happens if the team can no longer qualify for the championship, and can only (or had) qualify to the consolation round and having "QE" is all kinds of awkward? See for example, [[Basketball at the 2015 Southeast Asian Games – Men's tournament]]. –'''[[User:Howard the Duck|<
:{{ping|Howard the Duck}} I would not use T at all (what tournament have they qualified for?), and then use A for those in knockout stage and Q for the others when they qualified for the row they are on. For certain scenarios like "Team can not reach knockout stage, but may qualify for 5th-place match or 7th-place match" the extra letters X, Y and Z can be used. <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 00:36, 12 June 2015 (UTC)
::As for your 1st question, they qualified for what ever playoff the last-placed team qualifies? All teams in Group A had qualified for the 7th place match, and all Group B teams qualified to the 8th place match. For group A, "Team can not reach knockout stage, but may qualify for 7th-place match" doesn't make sense since all teams qualified for this stage. This is also the case for the [[2015 FIBA Asia Championship for Women]], where there are six teams in Level I, then the top 4 progress to the semifinals, and the bottom 2 play in the promotion/relegation round: All teams qualify to the promotion/relegation round by virtue of being there.
::As for your suggestion it's feasible except for the instance I cited above. –'''[[User:Howard the Duck|<
:::Okay so lets take this step-by-step.
:::*T (Tournament qualified but round not decided) – Should be used when there are qualification for tournament and when round has not yet been decided, for example in league tables when team has qualified for Champions League, but may start in group stage or playoff round. There is no sense in using it when all teams qualify for something.
Line 720 ⟶ 719:
:::*X,Y,Z (extra letters) – These extra letters can be set manually to explain further scenarios for example "team can not be relegated", "team can not advance to knockout stage" or whatever you want
:::Does this clear something up? <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 09:12, 12 June 2015 (UTC)
::::"There is no sense in using it when all teams qualify for something." Yeah, this is my question. When all teams qualify for something, it's "T", no question. I know how the other letters work, so thanks, I guess? –'''[[User:Howard the Duck|<
*<s>{{ping|Qed237}}, you reverted my changes of (A) to (Q). This is SOP, semifinalists get a (Q). This was what was done in the [[2015 AFC Asian Cup]] and [[2015 Africa Cup of Nations]] page. I'm of the impression that (A) is used for things such as promotion/relegation playoffs in leagues. What's up with that? –'''[[User:Howard the Duck|<
**Apparently, (A) is used, which is weird. (Q) is the most logical as the team "qualified to the semifinals". That's what even the description says. (A) "advances to further round" is unnecessarily ambiguous. –'''[[User:Howard the Duck|<
::::{{ping|Howard the Duck}} A is when you advance to next round and Q is when you qualify for something, like in [[2014–15 UEFA Champions League]] teams that advanced to knockout got A and the third-placed teams that qualified for Europa League got Q. In qualification stage you get A when moving to next round and a Q when you qualified for main tournament. <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 15:38, 12 June 2015 (UTC)
:::::Further guidance on the use of (A) and (Q). In the ongoing World Cup qualification, (Q) goes to the teams that qualify outright, and (A) goes to the team that plays in the playoffs. Is that correct? –'''[[User:Howard the Duck|<
::::::Yes that is true, if a team qualifies for main tournament ([[2018 FIFA World Cup]]) use Q, if they qualify for next round/playoffs use A. <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 00:13, 14 June 2015 (UTC)
Line 743 ⟶ 742:
*Eventual addition of more columns ("Home", "Road", "Conf", "Div", etc.)
:*This a pipeline further down the road, but seeing US league use these columns, they should be added eventually if this would be universally used.
–'''[[User:Howard the Duck|<
:All these changes are possible technically, I would like to add the default value when no games are played in the mix. Currently this displays an em dash (—), is this fine or should it be something else? <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 14:11, 24 April 2015 (UTC)
::Default value in what column? For GB, the #1 team is traditionally denoted with an emdash. For wins, losses PF, PA and PD, it's always zero. PCT's trickier because other people have edit warred on me because [[division by zero]] isn't zero but they insist it to be zero (I wanted it to be left blank; I could live with an emdash too). –'''[[User:Howard the Duck|<
:::I referred to the PCT column here, the others seem okay as standard. If there are no objections to your suggestions, I will start implementing them starting with the least controversial ones. {{ping|Asturkian}} has implemented the percentage style tables on some articles and might have an opinion about these points. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 15:59, 24 April 2015 (UTC)
:::The question isn’t really whether divide by zero is technically zero, it’s how that stat is usually indicated. —[[User talk:Wiki Wikardo|Wiki Wikardo]] 12:44, 5 June 2015 (UTC)
Line 756 ⟶ 755:
:*[[2014–15 NBA season|Wikipedia]]: W-L-PCT-GB-(Home-Road)-Div-GP (Home & road records omitted in conference standings)
:It's universal that W-L-PCT-GB, in that order, are the first 4 columns. There's a disagreement on what comes next: Home-Road (always in that order) or Conf-Div (could be reversed). Conference GB only appears on Y!Sports' division standings, but it becomes the "default" in conference standings. PF (PPG)-PA (OPP PPG)-Diff (PPG and OPP PPG being averages of PA and PD respectively) only shows up in 3rd party websites, and Wikipedia doesn't (shouldn't?) have "Last 10" and "Streaks" (which are pretty much worthless). Wikipedia has the "GP" (Games played) column in the end for conference standings but it should be before "Wins" if ever that'll be included.
:Since a full blown template would likely include, aside from the default 4 columns, Conf, Div, Home and Road records, and that Conf and Div records are actually used as tiebreakers, and that it would be used in "Division" standings where "Div" records are the next tiebreakers after head-to-head, I'd suggest W-L-PCT-GB-Div-Conf-Home-Road. PF and PA are optional columns that would always be there no matter what, so if someone wants that it could easily be added. These are all optional columns so we'd have flexibility on what to include. –'''[[User:Howard the Duck|<
::At least for NFL tables, I don’t think I’ve ever seen {{smallcaps all|DIV}}–{{smallcaps all|CONF}} before {{smallcaps all|HOME}}–{{smallcaps all|AWAY}}, and NBA’s site seems to be in the minority.—[[User talk:Wiki Wikardo|Wiki Wikardo]] 12:44, 5 June 2015 (UTC)
Line 764 ⟶ 763:
::Yeah I'm indifferent now on "PCT" vs. "Pct". Some countries use "Win%" or some other variation. Perhaps this should be customizable. Same with which comes first between Div-Conf and Home-Away.
::As for home and away records, most tables, such as the [http://www.bbc.com/sport/football/tables BBC]'s don't provide home and away records, although it's true that I had stumbled upon tables with such stats. In U.S. sports home and away records are always given. –'''[[User:Howard the Duck|<
:::Varying the order of Home–Away and Div–Conf would be more work for whoever has to program it, I’d think, for very little gain (and at the cost of consistency, I might add). Home and Road records seem to be more prominent in sports like American football and basketball, but less common in MLB tables.
:::There’s also a slight distinction in how ''PCT'' is calculated versus ''Win%''—draws count for .5 of a win in American sport, whereas a win percentage is simply the percentage of wins to total games played (and is actually expressed as a percentage). (In [[Australian Football League|AFL]] standings, however, Win% is a measure of points difference.) —[[User talk:Wiki Wikardo|Wiki Wikardo]] 07:44, 14 June 2015 (UTC)
Line 781 ⟶ 780:
local status_code, status_called = {}
status_code = { A='Advances to a further round'
...</blockquote>
</poem>
Line 837 ⟶ 836:
* for some old tournaments, where is lack of information, some extra fields, that users can fill by themselves, would be useful. For example, [[:lv:2006.—2007. gada LBL sezona|in these tables]] (OK, it isn't old and not enwiki, this was just an example) the point difference. So maybe some one column for free text?
* it would be useful to add tooltips for status letters. I'm not suggesting deleting the footer text, just adding tooltips, so it won't break accessibility (sometimes it takes time to understand, what for stands that or another letter, specially, if it's X, Y, Z and the table is huge). So there would be:
*: Team A '''({{
* enabling something similar to [[Module:Check for unknown parameters]] would be cool, I think.
* Noticed that in Greek basketball league tables there are extra columns for home/away games. See [[2014–15 Greek Basket League#Standings]].
Line 1,342 ⟶ 1,341:
::We have "point ratio" by using {{para|use_goal_ratio|yes}} but then 100% is 1.000. <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 20:14, 14 December 2015 (UTC)
:::{{replyto|Qed237}} Wow! Thanks for all this. Yeah, I was referring to that ladder and all the ones [[Template:AFL Ladder/Navcat|here]] and also there are state league ladders. I've played with it a bit in [[User:SuperJew/sandbox|my sandbox]] and it looks pretty great so far. The one issue still seems to be the percentage - goal ratio is the idea, but we'd need it multiplied by 100 and to change the heading to {{
:::and yeah I had a typo with the points. It's 4 for a win and 2 for a draw.
:::Also is there a way to account for special occasions? For example, [[Template:AFL_Ladder/2015|last season]], due to the death of [[Phil Walsh]] a match was cancelled and each team awarded two points.
Line 1,348 ⟶ 1,347:
::::{{replyto|SuperJew}} Note and points for special event is added in your sandbox (hope that is okay for me to edit). Points can be adjusted with {{para|adjust_points_TTT}} (where TTT is the team) and work both for positive and negative changes. A note can be added with {{para|note_TTT}} and if two teams have same note the second team can refer to the other team i.e. {{para|note_AAA|TTT}} (where AAA is the second team). I will look in to the percentage. Would not P% or something be better to explain, than just having %? <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 21:42, 14 December 2015 (UTC)
:::::{{replyto|Qed237}} Beautiful! No worries on editing the sandbox. I like it. Regarding % or P%, the hardcoded tables used % as does the [http://www.afl.com.au/ladder official AFL site], so I think it would be better to leave it as {{
::::::{{replyto|SuperJew}} I have now added more code in the module sandbox for percentage that I think should work. We should probably test it out before going "live" so we dont break something. If I may also come with some hints, I suggest adding comments in the code later to help editors with the updating, for example like [[:Template:2018 FIFA World Cup qualification – UEFA Group I table]]. <i style="font-family:Sans-serif">[[User:Qed237|<b style="color:blue">Qed</b><b style="color:red">237</b>]] [[User talk:Qed237|<b style="color:green">(talk)</b>]]</i> 22:17, 14 December 2015 (UTC)
Line 1,394 ⟶ 1,393:
! colspan="10" style="background:silver"| GFL South
|-
!width="25"| {{
! style="width:200px;"| Team
!width="25"| {{
!width="25"| {{
!width="25"| {{
!width="25"| {{
!width="30"| {{
!width="30"| {{
!width="30"| {{
|- style="background:#ace1af" align=center
| 1||align=left| [[Schwäbisch Hall Unicorns]]||1||1||0||0||26||21||'''1.000'''
Line 1,804 ⟶ 1,803:
A number of leagues use a percentage system instead of goal difference, where if you beat a team 10–5 you will have a percentage of 200%. The formula for this is <code>100/(points_against)*(points_for)</code> and can be enabled in this module via <code>|use_goal_percentage=yes</code> in the WDL style. You can see this at [[Template:AFL_Ladder/2017]] for a real-world example using the existing module.
However, some leagues (such as the [[SANFL]]) that use percentages use an absolute percentage system instead, where 100% is the maximum and means you scored 100% of the points in every match you played. The formula for this is <code>100/(points_against+points for)*(points_for)</code>. Would it be possible to have the `|use_goal_percentage=` param also accept "absolute" as input, resulting in the above format? [[User:Sellyme|<
== teams tied on all tiebreakers ==
Line 1,819 ⟶ 1,818:
==Bonus points==
Hi, there. Would it possible to add an optional column for bonus points? (see [http://www.bbc.co.uk/sport/rugby-union/super-rugby/table example]) The overall points total isn't a problem, as I can work around this using |adjust_points, but it would be helpful to show the bonus points in an additional "free format" column if it was possible to include this. [[User:J Mo 101|J Mo 101]] ([[User talk:J Mo 101|talk]]) 21:32, 6 July 2017 (UTC)
== Multiple qualifications/relegation scenarios ==
Is it possible to somehow include multiple qualification/relegation scenarios? I would like the colouring and content of the [[Module:Sports table/WDL#Results and status|"Qualification or relegation"-column]] to be more readable and clear to the reader. Right now, it seems, that it is only possible to get one colour and not two colours including not being able to split the qualification content into two rows. Examples of usage:
* [[2012–13 Premier League#League table]] (more precisely [[Wigan Athletic F.C.]]'s qualification to both the [[2013–14 UEFA Europa League group stage]] and relegation to the English tier 2)
* [[1926–27 KBUs Mesterskabsrække#League table]] (more precisely [[Boldklubben Fremad Amager|BK Fremad Amager]]'s qualification for both the [[1927–28 Danmarksmesterskabsturneringen]] and the relegation play-offs)
--[[User:Froztbyte|Froztbyte]] ([[User talk:Froztbyte|talk]]) 15:32, 12 August 2017 (UTC)
== Error ==
Says: As a default '''losses are listed before draws'''. To list losses first, use |loss_before_draw=true.
I think this should be '''draws are listed before losses'''
:{{done}} — [[User:Jkudlick|Jkudlick]] ⚓ [[User_talk:Jkudlick|t]] ⚓ [[Special:Contributions/Jkudlick|c]] ⚓ [[User:Jkudlick/sandbox|s]] 14:20, 6 September 2017 (UTC)
== Anything similar? ==
Are there any similar tables already on Wikipedia? We're trying to use one for a chess tournament at [[Candidates Tournament 2018#Standings]] but it's not really suitable. Specifically, we don't need the "Pld" column, and we need 3 extra columns on the right for 3 different types of tie breaks. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 05:37, 13 March 2018 (UTC)
: [[User:Adpete|Adpete]], can you provide a simple example showing the desired output? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:00, 13 March 2018 (UTC)
OK. Here is what we have at the moment. (The black and white squares indicate games with the black and white pieces (in chess, white moves first, which is a slight advantage, so every player plays every other player twice, once with white and once with black)).
{{#invoke:Sports table|main|style=WDL
|show_matches=true
|update=Round 3
|source=[http://theweekinchess.com/chessnews/events/fide-candidates-tournament-2018 FIDE Candidates Tournament 2018 at the The Week in Chess]
|only_pld_pts=yes
|team1=KRA |team2=MAM |team3=CAR |team4=GRI |team5=LIR |team6=KAR |team7=ARO |team8=SO
|win_KRA=2 |draw_KRA=1 |loss_KRA=0
|win_CAR=1 |draw_CAR=2 |loss_CAR=0
|win_ARO=0 |draw_ARO=2 |loss_ARO=1
|win_GRI=1 |draw_GRI=1 |loss_GRI=1
|win_KAR=0 |draw_KAR=2 |loss_KAR=1
|win_SO=0 |draw_SO=1 |loss_SO=2
|win_MAM=1 |draw_MAM=2 |loss_MAM=0
|win_LIR=0 |draw_LIR=3 |loss_LIR=0
|winpoints=1
|drawpoints=0.5
|losspoints=0
|team_header=Player
|name_KRA={{flagathlete|[[Vladimir Kramnik]]|RUS}} |short_KRA=KRA
|name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |short_CAR=CAR
|name_ARO={{flagathlete|[[Levon Aronian]]|ARM}} | short_ARO=ARO
|name_GRI={{flagathlete|[[Alexander Grischuk]]|RUS}} | short_GRI=GRI
|name_KAR={{flagathlete|[[Sergey Karjakin]]|RUS}} |short_KAR=KAR
|name_MAM={{flagathlete|[[Shakhriyar Mamedyarov|Shakhriyar Mamedyarov]]|AZE}} |short_MAM=MAM
|name_LIR={{flagathlete|[[Ding Liren]]|CHN}} |short_LIR=LIR
|name_SO={{flagathlete|[[Wesley So]]|USA}} |short_SO=SO
|match_KRA_CAR={{color box|White||Black}}{{color box|Black||White}}
|match_KRA_ARO={{color box|White||Black}}{{color box|Black|1|White}}
|match_KRA_GRI={{color box|White|1|Black}}{{color box|Black||White}}
|match_KRA_KAR={{color box|White|½|Black}}{{color box|Black||White}}
|match_KRA_SO={{color box|White||Black}}{{color box|Black||White}}
|match_KRA_MAM={{color box|White||Black}}{{color box|Black||White}}
|match_KRA_LIR={{color box|White||Black}}{{color box|Black||White}}
|match_CAR_KRA={{color box|White||Black}}{{color box|Black||White}}
|match_CAR_ARO={{color box|White||Black}}{{color box|Black||White}}
|match_CAR_GRI={{color box|White||Black}}{{color box|Black||White}}
|match_CAR_KAR={{color box|White||Black}}{{color box|Black||White}}
|match_CAR_SO={{color box|White|1|Black}}{{color box|Black||White}}
|match_CAR_MAM={{color box|White|½|Black}}{{color box|Black||White}}
|match_CAR_LIR={{color box|White||Black}}{{color box|Black|½|White}}
|match_ARO_KRA={{color box|White|0|Black}}{{color box|Black||White}}
|match_ARO_CAR={{color box|White||Black}}{{color box|Black||White}}
|match_ARO_GRI={{color box|White||Black}}{{color box|Black||White}}
|match_ARO_KAR={{color box|White||Black}}{{color box|Black||White}}
|match_ARO_SO={{color box|White||Black}}{{color box|Black||White}}
|match_ARO_MAM={{color box|White||Black}}{{color box|Black|½|White}}
|match_ARO_LIR={{color box|White|½|Black}}{{color box|Black||White}}
|match_GRI_KRA={{color box|White||Black}}{{color box|Black|0|White}}
|match_GRI_CAR={{color box|White||Black}}{{color box|Black||White}}
|match_GRI_ARO={{color box|White||Black}}{{color box|Black||White}}
|match_GRI_KAR={{color box|White||Black}}{{color box|Black|½|White}}
|match_GRI_SO={{color box|White|1|Black}}{{color box|Black||White}}
|match_GRI_MAM={{color box|White||Black}}{{color box|Black||White}}
|match_GRI_LIR={{color box|White||Black}}{{color box|Black||White}}
|match_KAR_KRA={{color box|White||Black}}{{color box|Black|½|White}}
|match_KAR_CAR={{color box|White||Black}}{{color box|Black||White}}
|match_KAR_ARO={{color box|White||Black}}{{color box|Black||White}}
|match_KAR_GRI={{color box|White|½|Black}}{{color box|Black||White}}
|match_KAR_SO={{color box|White||Black}}{{color box|Black||White}}
|match_KAR_MAM={{color box|White|0|Black}}{{color box|Black||White}}
|match_KAR_LIR={{color box|White||Black}}{{color box|Black||White}}
|match_SO_KRA={{color box|White||Black}}{{color box|Black||White}}
|match_SO_CAR={{color box|White||Black}}{{color box|Black|0|White}}
|match_SO_ARO={{color box|White||Black}}{{color box|Black||White}}
|match_SO_GRI={{color box|White||Black}}{{color box|Black|0|White}}
|match_SO_KAR={{color box|White||Black}}{{color box|Black||White}}
|match_SO_MAM={{color box|White||Black}}{{color box|Black||White}}
|match_SO_LIR={{color box|White|½|Black}}{{color box|Black||White}}
|match_MAM_KRA={{color box|White||Black}}{{color box|Black||White}}
|match_MAM_CAR={{color box|White||Black}}{{color box|Black|½|White}}
|match_MAM_ARO={{color box|White|½|Black}}{{color box|Black||White}}
|match_MAM_GRI={{color box|White||Black}}{{color box|Black||White}}
|match_MAM_KAR={{color box|White||Black}}{{color box|Black|1|White}}
|match_MAM_SO={{color box|White||Black}}{{color box|Black||White}}
|match_MAM_LIR={{color box|White||Black}}{{color box|Black||White}}
|match_LIR_KRA={{color box|White||Black}}{{color box|Black||White}}
|match_LIR_CAR={{color box|White|½|Black}}{{color box|Black||White}}
|match_LIR_ARO={{color box|White||Black}}{{color box|Black|½|White}}
|match_LIR_GRI={{color box|White||Black}}{{color box|Black||White}}
|match_LIR_KAR={{color box|White||Black}}{{color box|Black||White}}
|match_LIR_SO={{color box|White||Black}}{{color box|Black|½|White}}
|match_LIR_MAM={{color box|White||Black}}{{color box|Black||White}}
}}
And here is the sort of thing I want (but done manually). There is an extra "Tiebreaks" column, which is more or less equivalent to the "Qualification/Relegation" column that this template uses. (In this particular example, it was important, because Carlsen and Kramnik finished on equal points, and Carlsen only won on tiebreaks). I've been experimenting with the Qualification/Relegation column (via the res_col_header option) but can't get it to what I want. What I want is to be able to display whatever I want in the Qualification/Relegation column (and even better, it'd be nice to have two columns, like in this example).
:{| class="wikitable"
|+ Final standings of the 2013 Candidates Tournament
|-
!rowspan="2"|Rank!!rowspan="2"|Player
!colspan="2" rowspan="2"|CAR
!colspan="2" rowspan="2"|KRA
!colspan="2" rowspan="2"|SVI
!colspan="2" rowspan="2"|ARO
!colspan="2" rowspan="2"|GEL
!colspan="2" rowspan="2"|GRI
!colspan="2" rowspan="2"|IVA
!colspan="2" rowspan="2"|RAD
!rowspan="2"|Points !! colspan=2|Tiebreaks
|-
! {{Abbr|H2H|Head-to-head}} !! Wins
|-
|- align="center" style="background:white; color:black"
|style="background:#ccffcc;"|1||align="left" style="background:#ccffcc;"|{{flagathlete|[[Magnus Carlsen]]|NOR}}
|style="background:lightgray" colspan="2"|
|½||style="background:black; color:white"|½
|0||style="background:black; color:white"|1
|½||style="background:black; color:white"|½
|1||style="background:black; color:white"|1
|1||style="background:black; color:white"|½
|0||style="background:black; color:white"|½
|½||style="background:black; color:white"|1
|style="background:#ccffcc;"|8½|| style="background:#ccffcc;"|1 || style="background:#ccffcc;"|5
|- align="center" style="background:white; color:black"
|2||align="left"|{{flagathlete|[[Vladimir Kramnik]]|RUS}}
|½||style="background:black; color:white"|½
|style="background:lightgray" colspan="2"|
|1||style="background:black; color:white"|½
|½||style="background:black; color:white"|1
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|1
|½||style="background:black; color:white"|0
|1||style="background:black; color:white"|½
|8½||1||4
|- align="center" style="background:white; color:black"
|3||align="left"|{{flagathlete|[[Peter Svidler]]|RUS}}
|0||style="background:black; color:white"|1
|½||style="background:black; color:white"|0
|style="background:lightgray" colspan="2"|
|1||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|1||style="background:black; color:white"|½
|1||style="background:black; color:white"|½
|8||1½||4
|- align="center" style="background:white; color:black"
|4||align="left"|{{flagathlete|[[Levon Aronian]]|ARM}}
|½||style="background:black; color:white"|½
|0||style="background:black; color:white"|½
|½||style="background:black; color:white"|0
|style="background:lightgray" colspan="2"|
|1||style="background:black; color:white"|0
|½||style="background:black; color:white"|½
|1||style="background:black; color:white"|1
|1||style="background:black; color:white"|1
|8||½||5
|- align="center" style="background:white; color:black"
|5||align="left"|{{flagathlete|[[Boris Gelfand]]|ISR}}
|0||style="background:black; color:white"|0
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|1||style="background:black; color:white"|0
|style="background:lightgray" colspan="2"|
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|1
|6½||1||2
|- align="center" style="background:white; color:black"
|6||align="left"|{{flagathlete|[[Alexander Grischuk]]|RUS}}
|½||style="background:black; color:white"|0
|0||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|style="background:lightgray" colspan="2"|
|1||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|6½||1||1
|- align="center" style="background:white; color:black"
|7||align="left"|{{flagathlete|[[Vassily Ivanchuk]]|UKR}}
|½||style="background:black; color:white"|1
|1||style="background:black; color:white"|½
|½||style="background:black; color:white"|0
|0||style="background:black; color:white"|0
|½||style="background:black; color:white"|½
|½||style="background:black; color:white"|0
|style="background:lightgray" colspan="2"|
|1||style="background:black; color:white"|0
|6||— ||3
|- align="center" style="background:white; color:black"
|8||align="left"|{{flagathlete|[[Teimour Radjabov]]|AZE}}
|0||style="background:black; color:white"|½
|½||style="background:black; color:white"|0
|½||style="background:black; color:white"|0
|0||style="background:black; color:white"|0
|0||style="background:black; color:white"|½
|½||style="background:black; color:white"|½
|1||style="background:black; color:white"|0
|style="background:lightgray" colspan="2"|
|4||— ||1
|}
p.s. Thanks for replying, and I'm not expecting someone to spend hours on this. But if there's an easy solution or easy fix, that'd be great. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 23:03, 13 March 2018 (UTC)
: [[User:Adpete|Adpete]], I will see if I can get something started for you tomorrow. it will probably not be exactly what you want, but we can iterate after we have an initial module. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:24, 13 March 2018 (UTC)
::To be more precise: I think I just need one simple change: I want a way to hide the GF/GA/GD columns, without also hiding the qualifications column. At the moment, the only way I can see to hide the GF/GA/GD columns is the "|only_pld_pts=yes" option; and if I do that, there's no way to show the qualifications column, as far as I can see. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 05:58, 17 March 2018 (UTC)
::: still working on it, see [[User:Frietjes/chess]] for what I have so far. when I am finished, the matches will be formatted and the WDL will be automatically computed from the match data. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:41, 17 March 2018 (UTC)
::::I really, really appreciate that effort. But I don't want it to be in vain: you don't just need to please me, you need to please other editors at [[Candidates Tournament 2018#Standings]]. I think it's better to have the tie break columns more flexible. I mentioned in my first post that there is actually a 3rd tie break score, so we'd want a 3rd tie break column. Also if it's flexible, that allows it to be used in other tournaments which might have a different tie break method. That's why I think all I need - and perhaps what is best - is the ability to add extra columns and put whatever we want there. Also problematic would be the "+" signs in that table and the disappearance of the colours, though I'm guessing that's because you're still debugging. [[User:Adpete|Adpete]] ([[User talk:Adpete|talk]]) 22:44, 17 March 2018 (UTC)
==Colours in use==
See discussion at [[Talk:Candidates Tournament 2018#Advance to title match]]. [[Special:Contributions/91.124.117.29|91.124.117.29]] ([[User talk:91.124.117.29|talk]]) 20:29, 26 March 2018 (UTC)
* I have found [[Module_talk:Sports_table/Archive_1#Confusion_due_to_use_of_colour|this discussion]] for very good proposition about "confusion" due to use of colour. Any thoughts? [[Special:Contributions/91.124.117.29|91.124.117.29]] ([[User talk:91.124.117.29|talk]]) 20:42, 26 March 2018 (UTC)
== Problems with Module ==
When one taps onto the ''View, Talk, Edit'' links? one doesn't get taken to those areas. Instead the teams get randomly re-ordered in their positions. See example: {{tl|2017–18 NHL Eastern Conference standings}} <br> [[User:GoodDay|GoodDay]] ([[User talk:GoodDay|talk]]) 11:30, 27 March 2018 (UTC)
: [[User:GoodDay|GoodDay]], I started a [[Wikipedia:Village_pump_(technical)#Sortable_link_disables_navbar_links?|thread at VPT]] since this appears to be a larger issue. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:45, 27 March 2018 (UTC)
: [[User:GoodDay|GoodDay]], probably fixed now at the expense of the tooltips for the v-t-e links. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:27, 27 March 2018 (UTC)
::Ok, it's working correctly now. Thanks. [[User:GoodDay|GoodDay]] ([[User talk:GoodDay|talk]]) 19:35, 27 March 2018 (UTC)
::: I'm having a separate but related problem now, there are bracketed numbers in place of the "e." When you click on the numbers, an error message appears. What gives? –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 20:21, 21 April 2018 (UTC)
:::: Never mind, it seems that problem was fixed with the change. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 18:29, 5 May 2018 (UTC)
== Adding rounds and maps to for_against_style Suggestion ==
Thoughts on adding maps and rounds as an option for the for_against_style section? It would help accommodate eSports tournaments much better. Better yet, is there a way we could implement a custom for_against_style that could be specified in the module itself?
[[User:Whackyasshackysack|Whackyasshackysack]] ([[User talk:Whackyasshackysack|talk]]) 01:36, 20 April 2018 (UTC)
:I'm not sure what you mean, but the main module is basically a framework on which you can add additional styles (like the ones already in existance). Rounds have been incorporated previously as well: [[Module:Sports table/WDL#Matches|Example]]. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:44, 22 May 2018 (UTC)
== multiple hth notes ==
I just added support for multiple hth notes, so you can now say |hth_AAA=BBB,CCC if |hth_BBB and |hth_CCC are valid. should have zero impact on any prior existing uses of this module. please revert my changes to "Module:Sports table/sub" and let me know if there is a problem (so far nothing in the Pages with script errors category). for a real life usage, see [[Template:2013 Chinese Super League table]] where there is both a head-to-head note and a point-note for Tianjin Teda. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:10, 31 May 2018 (UTC)
== On extending this module ==
I think we should add more parts to these modules (like division record, conference record, home and road record, etc.) to help extend this to the baseball, basketball, and American football templates and centralize the many standings used by WikiProject Sports. I may speak with the respective wikiprojects about this idea. –[[User:Piranha249|Piranha249]] ([[User talk:Piranha249|talk]]) 18:04, 7 January 2018 (UTC)
:I agree. Even sports like Darts could benefit from that so that tables like [[2018_Premier_League_Darts#Table|this one]] can be generated through this module.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:27, 22 February 2018 (UTC)
:: [[User:Piranha249|Piranha249]] and {{U|Tvx1}} can you provide a simple example showing the desired output? this module can use sport-specific submodules, so we could probably design one for a particular sport. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:01, 13 March 2018 (UTC)
::: {{U|Frietjes}}, I posted here [[Module_talk:Sports_table/Archive_1#Absolute_percentage_parameter|about a year ago]] with a request that could make the template extensible for a few more sports. Figured I'd bring that up again while the topic was active since it seems like no-one saw the original post. You can find the desired output for that suggestion at [[2017 SANFL season#Ladder]]. [[User:Sellyme|<span style="color:#008080;">'''Sellyme'''</span>]]<sup>[[User talk:Sellyme|<span style="color:#009933;">'''Talk'''</span>]]</sup> 19:22, 13 March 2018 (UTC)
:::: {{U|Sellyme}}, see [[User:Frietjes/sanfl]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 21:40, 14 March 2018 (UTC)
::::: This seems to work perfectly, I've just updated the 2017 season template with it and nothing is on fire. Thanks for the update! [[User:Sellyme|<span style="color:#008080;">'''Sellyme'''</span>]]<sup>[[User talk:Sellyme|<span style="color:#009933;">'''Talk'''</span>]]</sup> 23:18, 14 March 2018 (UTC)
::: {{U|Frietjes}}, I linked to an example in my previous comment.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 19:51, 13 March 2018 (UTC)
:::: {{U|Tvx1}}, yes, but what is the mathematical relationship between the columns? obviously Pld = W + D + L, and it looks like +/- = LF - LA? what about the rest? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:48, 13 March 2018 (UTC)
::::: Yes Pld = W + D + L and LF,LA and +/- work like GF,GA and GD (+/- could be renamed to LD). There is no mathematical relationship between the remaining columns.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 22:29, 13 March 2018 (UTC)
:::::: {{U|Tvx1}}, I started something ... see [[User:Frietjes/darts]]. let me know if you have abbreviations tooltips for the columns. and, we can adjust the parameter names if they aren't optimal. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 23:22, 13 March 2018 (UTC)
::::::: I think it's perfect.[[User:Tvx1|T]][[User Talk:Tvx1|v]][[Special:Contributions/Tvx1|x]]1 02:58, 14 March 2018 (UTC)
::: Regarding me, I think we could add optional columns like the ones previously mentioned by me. For the NFL, we could also introduce a win percentage to the WDL submodule, just try to [[Template:2017 NFC standings|convert this]] while your at it (It's the NFC Conference standings). Lastly, are these optional columns a possibility? –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 23:44, 13 March 2018 (UTC)
:::: I was addressing that to {{U|Frietjes}}, by the way. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 22:47, 17 March 2018 (UTC)
::: Has anyone come up with some proposals since the last discussion, which was almost two months ago? –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 20:02, 27 May 2018 (UTC)
{{u|Piranha249}} I'm just seeing this dicussion now, in the NFL table some columns are not clear to me (SOS and SOV). The way it would look would be a bit different after conversion in terms of some of the style choices in that table, to what degree are the design elements set in stone in those articles? One example of some differences is [[Template:2017–18 NHL Western Conference standings]] vs [[Template:2013–14 NHL Western Conference standings]], but it could be a bigger difference in this case. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:21, 29 May 2018 (UTC)
:{{u|CRwikiCA}} SOS = Strength of schedule; SOV = Strength of victory. Both are tiebreakers for the Playoffs. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 00:36, 31 May 2018 (UTC)
::{{u|Piranha249}} Just trying to get the framing up in my limited spare time (without the extra columns for now) and limited entries. It should be possible to add "wildcard" columns to add some of the other columns (streak could be optional). Just take a look below and see what you like/don't like (points for/against probably needs to be dropped, etc.) and how something like this would go over in the articles:
{{#invoke:Sports table|main|style=WDL
|update = complete
|showteam={{{team|}}}
|matches_text=game(s)
|title=[[National Football Conference|NFC]]
|postitle=#
|loss_before_draw=true
|draw_header=<abbr title="Ties">T</abbr>
|show_groups=yes
|group_header=Division
|split4=yes
|split6=yes
|name_PHI=PHI
|name_MIN=MIN
|name_LAR=LAR
|name_NO =NO
|name_CAR=CAR
|name_ATL=ATL
|name_DET=DET
|name_SEA=SEA
|team1=PHI |team2=MIN |team3=LAR |team4=NO |team5=CAR |team6=ATL |team7=DET |team8=SEA
|result1=DIV |result2=DIV |result3=WC |result4=WC |result5=WC |result6=WC
|win_PHI=13 |loss_PHI=3
|group_LAR=West
|group_MIN=North
|group_NO=South
|group_PHI=East
|col_DIV=green1
|col_WC=green2
|status_PHI=z
|status_MIN=z
|status_LAR=y
|status_NO=y
|status_CAR=x
|status_ATL=x
|status_pos=before
|status_text_X=Clinched playoff berth
|status_text_Y=Clinched division
|status_text_Z=Clinched first-round bye
|note_PHI=Philadelphia claimed the No. 1 seed over Minnesota based on winning percentage vs. common opponents. Philadelphia's cumulative record against Carolina, Chicago, the Los Angeles Rams and Washington was 5–0, compared to Minnesota's 4–1 cumulative record against the same four teams.
|note_MIN=PHI
|note_LAR=The Los Angeles Rams claimed the No. 3 seed over New Orleans based on head-to-head victory. New Orleans clinched the NFC South division over Carolina based on head-to-head sweep.
|note_NO=LAR
|note_CAR=LAR
}}
<span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:01, 5 June 2018 (UTC)
:::For one, there are no points system, even though ties exist (they are half a win and half a loss). Other than that, I think it looks fine. –[[User:Piranha249|Piranha]][[User talk:Piranha249|249]] 02:26, 5 June 2018 (UTC)
== Navbar linebreak in Safari 11.1.1 ==
I'm noticing [https://imgur.com/a/kzhMekf extraneous linebreaks] in sports tables for football, for example, the World Cup group stage tables. Is this a problem with this module or the navbar module? '''[[User:Sceptre|Sceptre]]''' ([[User talk:Sceptre|talk]]) 17:30, 24 June 2018 (UTC)
==Can you add a new customized column?==
I dont understand, but can a customized column be created? Specifically something like fair-play points. [[User:Nergaal|Nergaal]] ([[User talk:Nergaal|talk]]) 00:55, 29 June 2018 (UTC)
: [[User:Nergaal|Nergaal]], where do you want to use this? you can show the bonus points with {{para|show_bonus_points|y}}. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:30, 29 June 2018 (UTC)
::I want to use it for the FIFA WC. The documentation is confusing. Can the header for bonus points be altered? [[User:Nergaal|Nergaal]] ([[User talk:Nergaal|talk]]) 14:57, 29 June 2018 (UTC)
::: [[User:Nergaal|Nergaal]], provide a link to where you want to use this. I cannot read your mind. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:11, 29 June 2018 (UTC)
::::{{tl|2018 FIFA World Cup Group H table}} [[User:Nergaal|Nergaal]] ([[User talk:Nergaal|talk]]) 17:15, 29 June 2018 (UTC)
:::::No column should be added, the current format using a note is enough. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 19:28, 29 June 2018 (UTC)
== Where does Sports_table get options from? ==
I started documenting the options such as <code>sortable_table</code> <code>source</code> and <code>update</code>, but when I look at the code, I don't see what part processes the "<code>sortable_table</code>" option to make the table sortable. So... does Module:Sports_table extend, and inherit options support from, some other more general table module or template? I don't want to duplicate (poorly) what might already be documented elsewhere.
Or if not, does anyone know how to make a list of all the options supported by Sports_table? [[User:Great floors|Great floors]] ([[User talk:Great floors|talk]]) 18:07, 29 July 2018 (UTC)
:Documentation appears available for the individual style templates, e.g [[Module:Sports_table/WDL]] [[User:Galobtter|Galobtter]] ([[User talk:Galobtter|pingó mió]]) 18:17, 29 July 2018 (UTC)
::Aha. Thanks again. For <code>sortable_table</code>, there's no documentation in WDL but I do see the part of the code the implements it. [[User:Great floors|Great floors]] ([[User talk:Great floors|talk]]) 00:34, 30 July 2018 (UTC)
:::{{u|Great floors}} Part of the documentation for each style calls a template for generic options (which are defined in the main part). I would urge you to understand the general structure as well to understand what to document where. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 01:48, 3 August 2018 (UTC)
::::Hi {{u|CRwikiCA}}. So, what page documents <code>sortable_table</code>? There's nothing here and nothing on the [[Module:Sports_table/WDL|WDL]] style. Can you clarify specifically what documentation you urge me to read? Thanks. [[User:Great floors|Great floors]] ([[User talk:Great floors|talk]]) 08:20, 3 August 2018 (UTC)
:::::{{reply|Great floors}} I didn't see it either. My comment was more general in nature, this Module and its documentation are each a combination of different files. I meant that understanding the structure of both (going beyond how to call it) is essential in writing effective documentation. I do agree that the documentation can be cleaned up quite a bit, some options do not appear to be documented at all. There might be some opportunities for refactoring as well, especially in allowing features from different styles to be shared more easily from a common code base. (Some of this might have been an oversight when I initially designed the module, although it has evolved quite a bit since I have severly reduced my Wikipedia time.) <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:11, 4 August 2018 (UTC)
{{u|Great floors}} How far did you get with this/do you have notes on this somewhere? I noticed some features were shared between styles and the documentation was not updated accordingly. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:23, 5 September 2018 (UTC)
== <s>Adjust points for WL</s> ==
<s>It seems that it's not working. See [[Template:2019 FIBA Basketball World Cup qualification (Americas) – Group F table]]. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 08:38, 19 September 2018 (UTC)</s>
:LOL it's working I'm just bad at math. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 08:43, 19 September 2018 (UTC)
== Template-protected edit request on 27 June 2018 ==
{{edit template-protected|Module:Sports table/WDL|answered=yes}}
Change:
local status_letters = 'ACSDEGHOPQRTXYZ'
to:
local status_letters = 'ACDEGHOPQRSTXYZ'
To maintain an alphabetical order below the table. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 01:57, 27 June 2018 (UTC)
: {{U|CRwikiCA}}, "S" is only used in Swedish football articles, where it is an abbreviation for "Swedish Champion". putting it after R would look strange. see [[1989 Allsvenskan]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:11, 27 June 2018 (UTC)
::{{U|Frietjes}}, it is only used on those articles at the moment. This Module has been a raging success and has been adopted widely, it is reasonable to expect someone to want to use it for some other purpose. In general it will be easiest to find letters back when ordered alphabetically, to change that default for a particular article (ignoring other possible use cases) makes it less of a general purpose Module. To keep this the most general (and in light of the use case of custom order) I would suggest:
::* Allow all letters as status letters (A-Z)
::* Have default order ABC...Z
::* Let the user customize this order (if desired)
::* Ensure no letters are missing from the user input
::That would make defaults reasonable while giving users maximum flexibility. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 01:43, 28 June 2018 (UTC)
:::{{U|CRwikiCA}}, okay, now changed so [//en.wikipedia.org/w/index.php?title=1989_Allsvenskan&type=revision&diff=847888742&oldid=847739727 this works]. this also enables letters not in the default list (any non-default letters must be listed or they will not appear). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:39, 28 June 2018 (UTC)
:::more changes so if you forget to put a letter in the list, it will still show, but will be listed after the ones that you list. and, now all letters will show, but with a '?' if the text is not defined (or one of the presets). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:25, 28 June 2018 (UTC)
::::{{U|Frietjes}} Great work! It's always best to incorporate stuff while the changes and code are still fresh in your mind. <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:14, 1 July 2018 (UTC)
Can a custom status letter be also added for "W"? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 08:49, 3 September 2018 (UTC)
:{{u|Howard the Duck}} Was already implemented (see below). <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:21, 5 September 2018 (UTC)
{{#invoke:Sports table|main|style=WDL
|status_pos=after
|team1=AAA
|result1=RRR
|status_AAA=W
|name_AAA=Team A
|res_col_header=PQR
|col_RRR= |text_RRR=Plain text
|status_text_W=Whatever
}}
::Many thanks! I'd suggest to allow every letter in the alphabet to be added as a status letter though, if that's possible, so that no one bugs you about this again... [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 07:24, 5 September 2018 (UTC)
:::That was the request above, which Frietjes implemented. I did not test it, but if anything is missing let us know. :) <span style="border:1px solid maroon; padding:0 2px">[[User:CRwikiCA|<span style="font-family:'Courier';color:maroon">CRwikiCA</span>]] [[User talk:CRwikiCA|<i style="color:navy">talk</i>]]</span> 02:43, 6 September 2018 (UTC)
::::I tried using all letters but some didn't show up, like "W". Maybe I didn't save it that's why I didn't see it. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 08:57, 8 September 2018 (UTC)
:::::I think it's not showing up for the WL style? Can somebody check it out? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 10:16, 25 September 2018 (UTC)
:::::: [[User:Howard the Duck|Howard the Duck]], should work now. it was never added to the WL module. we should really consider merging some of these modules, lots of code duplication. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:41, 25 September 2018 (UTC)
::::::: Thanks! Yes that's something you guys should look in to. WL can be easily merged with WDL (I think.) [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 10:12, 26 September 2018 (UTC)
== Merging modules ==
I have merged [[Module:Sports table/WL]] into [[Module:Sports table/WDL]] and turned [[Module:Sports table/WL]] into a wrapper for [[Module:Sports table/WDL]]. this should have zero impact on existing uses and will make these modules easier to maintain since there is far less code duplication. I already did the same for [[Module:Sports table/WLHA]] (wrapper for [[Module:Sports table/WDLHA]] ) and [[Module:Sports table/WL OT]] (wrapper for [[Module:Sports table/WDL OT]]). I will be watching for script errors, but please let me know if you see any problems. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:11, 28 September 2018 (UTC)
== Optional extra columns ==
{{ping|Frietjes}}To keep you busy. There are 2 parameters which affect the number of "points (Pts)". These parameters are "startpoints_XXX" and "adjust_points_XXX". They both work as they should. However if they're used to define a table, it's not visible just like that, that they have been used. Here are 2 examples:
* [[2016–17 Eredivisie (women)#Championship|2016–17 Eredivisie women championship]]: Without a comment in front of the table, it's not clear what the number of points for each team is based on. Compare the same table on the Dutch Wiki [[:nl: Eredivisie 2016/17 (vrouwenvoetbal)#Kampioensgroep|Eredivisie 2016/17 vrouwen Kampioensgroep]]
* [[2017–18 Tweede Divisie#League standings|2017–18 Tweede Divisie standings]]: Without the note, it's not clear what the number of points for [[Achilles '29]] is based on. Compare the same table on the Dutch Wiki [[:nl: Tweede divisie 2017/18#Eindstand|Tweede divisie 2017/18 Eindstand]]
On the Dutch Wiki, the module "Sports table" is not used but the tables are defined in the old fashioned way. But, on the Dutch Wiki, because of the extra column, in both scenario's is more clear what the number of points is based on.
Therefore it would be nice, if there would be parameters to add extra columns to the table for these scenario's. Something like "startpoints_column=(y/n)" and "adjust_points_column=(y/n)". The default for both should be "n". You can discuss whether it should be 2 separate columns or a single combined column if both scenario's occur at the same time. My preference would be 2 separate columns. Also, especially for the adjust_points column, it should be possible to define the header value/strings. Mostly it will deal with penalty points, but maybe in some sports it could be bonus points. Also, again especially for the adjust_points column, teams for which this value is not set, the cell should be left blank and not filled with a "0" (zero). --[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 23:54, 26 September 2018 (UTC)
*'''Oppose'''{{ping|Sb008}} You should discuss this proposal on [[WT:FOOTY]] first. This is a major change [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 09:37, 27 September 2018 (UTC)
*:You just add notes to tell readers about these. No more extra columns should be added unless there is a consensus in [[WT:FOOTY]]. The current style works well [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 09:50, 27 September 2018 (UTC)
*::{{re|Sb008}} For the second example, this is typically mentioned using a note, for example see the bottom two clubs in [[Template:2017–18 3. Liga table]]. The first example is quite strange given the points are halved, though adding a column may add to the confusion. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 10:15, 27 September 2018 (UTC)
*:::note that there is a {{para|show_bonus_points}} which is by default no. however, it makes no distinction between adjust_points and start_points. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 12:50, 27 September 2018 (UTC)
*::::You just add [https://en.wikipedia.org/w/index.php?title=2016%E2%80%9317_Eredivisie_(women)&diff=861439598&oldid=841398921 like this edit], clearly not needed adding extra columns [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 13:07, 27 September 2018 (UTC)
*:::::{{ping|Frietjes}} Can we set custom name for bonus points header? [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 13:15, 27 September 2018 (UTC)
*::::::shouldn't be hard to add. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:45, 27 September 2018 (UTC)
{{outdent|:::::::}} {{ping|Frietjes|Hhkohh}} First of all, somehow I overlooked {{para|show_bonus_points}}. It fills some of my needs, however:
* A custom header name would be desirable (as mentioned should be easy to fix)
* If both {{para|startpoints_XXX}} and {{para|adjust_points_XXX}} are used for a team, adjust_points_XXX overrules startpoints_XXX completely. ("local s_pts = tonumber(Args['adjust_points_'..team_code_ii]) or tonumber(Args['startpoints_'..team_code_ii]) or 0" First "or" case sets the value). Should be easy to fix as well.
* If the "bonus" column is used, and adjust/start points is set for e.g. just 1 or 2 teams, the value for all other teams in the bonus column will be "0" (zero). I would prefer "blank" unless explicitly set to "0".
* Still would prefer the option to have 2 separate columns if both start and adjust points is used.
* Last, I don't consider this a major change since these columns are optional and therefore none of the existing tables are affected.
--[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 22:28, 27 September 2018 (UTC)
:{{ping|Sb008}} I want to oppose your second proposal because blank will confuse to readers, they cannot know whether the points is 0 or author forget to write it or we cannot find this kind of information. But I support others [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 08:11, 28 September 2018 (UTC)
::{{ping|Hhkohh}} I would say it's exactly the opposite. The context makes it very clear whether indeed a blank or a zero is meant. On the other hand, a column with 17 0's in it and only 1 number is confusing because you have to search for that number. Let's look at the 2 possibilities again:
::* Startpoints: The cases I know, all teams receive them. In the case of Dutch women's football the starting points in the second round are half the points achieved in the first round. So if a team got 0 pts in the 1st round, it means half of 0 is 0 starting points in the 2nd round. The number of starting points for each team is '''defined'''. If it happens to be 0, it should be shown as 0. As we can see here [[2017–18 Eredivisie (women)#Placement|2017–18 Eredivisie women Placement]] for [[SBV Excelsior (women)|Excelsior/Barendrecht]]. And starting points don't only occur in Dutch women's football, also e.g. in Belgian men's football and handball.
::* Adjust points: If adjust points is used when teams are given penalty points, in general only 1 or 2 teams received penalty points. The other teams are given '''none'''. They are '''not''' given '''0'''. For those teams the value is '''undefined'''. Have a look here: [[:nl: Derde divisie 2017/18#Ranglijst 2|Derde divisie 2017/18 Ranglijst]]. To put a 0 in the penalty points column for all teams except [[OFC_Oostzaan|OFC]] not only looks terrible but will cause more confusion than blanks because the "-1" becomes a lot less visible.
::All in all, a blank if undefined and a 0 if defined as such. Quite common way to do it. --[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 14:31, 28 September 2018 (UTC)
:::{{u|Sb008}} I cannot see the article called [[:nl: Derde divisie 2017/18#Ranglijst 2|Derde divisie 2017/18 Ranglijst]], please fix it [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 14:40, 28 September 2018 (UTC)
::::{{ping|Hhkohh}} Fixed
:::::{{u|Sb008}} okay, I see. Now I think it is better that when using startpoints, it should not blank it, but using adjust points, it can blank it because we must write startpoints to tell how many points they are even they are 0 point started while adjust points can allow us to write how much the team will be punished or bonus and not all teams need writing on [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 15:28, 28 September 2018 (UTC)
::::::{{u|Sb008}} If you support my idea, just let {{u|Frietjes}} to work on it [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 15:35, 28 September 2018 (UTC)
{{outdent|::::::}} {{ping|Hhkohh}} Isn't that exactly what I'm saying from the start? In the adjust point (penalty point) scenario the table cell is left blank whenever the parameter is '''undefined''' (In the code there's '''no''' line "<s>adjust_points_XXX=</s>"). In the startpoint scenario a 0 is placed in the table cell because I '''define''' the value as 0 (In the code there '''is''' a line saying "startpoints_XXX=0"). Blank unless specifically defined as 0. --[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 16:45, 28 September 2018 (UTC)
:Aren't this what notes are for? Why add a column where only one team has an entry? You'd never see such a table in the newspaper. -[[User:Koppapa|Koppapa]] ([[User talk:Koppapa|talk]]) 11:59, 29 September 2018 (UTC)
== Non-numeric gf and ga ==
I have updated the WDL and WL styles to better handle non-numeric input. before the change, any non-numeric or missing input was converted to 0. after the change, any missing input is still converted to 0, but any non-numeric input is unchanged. but, if there is non-numeric input, clearly you can't calculate a goal difference or goal percentage or goal ratio, so an mdash is reported (consistent with what was done before if there was division by zero). let me know if you see any problems. we could do the same for wins, draws, losses, ... with the points left uncalculated if the input is non-numeric. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:44, 25 September 2018 (UTC)
:{{ping|Frietjes}} Seems there is an error in [[Template:2019 Chinese Super League table]]. When I write {{para|ga_XXX}}, it should be converted to 0, not just a blank [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 06:56, 1 October 2018 (UTC)
::{{ping|Frietjes}}But the table now only show 1 line, not 16 lines [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 14:21, 1 October 2018 (UTC)
:::should work now. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:50, 1 October 2018 (UTC)
== Additional optional columns ==
So that the U.S.-based teams can use these, perhaps adding Conference, Division, Home and Away columns, and making the text size smaller? [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 11:31, 27 September 2018 (UTC)
:{{ping|Howard the Duck}} Why not using [[Module:Sports table/WDLHA]]? [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 11:54, 27 September 2018 (UTC)
::like [[2007–08 Football Conference]]. Not sure this module applies {{para|show_groups|yes}} and {{para|group_name}} [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 11:56, 27 September 2018 (UTC)
:::Baseball and basketball do not have tied games. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 12:16, 27 September 2018 (UTC)
::::Oh, I suggest let {{u|Frietjes}} to create [[Module:Sports table/WLHA]] [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 12:36, 27 September 2018 (UTC)
:::::[[User:Howard the Duck|Howard the Duck]], in the spirit of reducing the number of submodules, I have added {{para|show_draw|no}} to [[Module:Sports table/WDLHA]]. but, I have also made [[Module:Sports table/WLHA]] a shortcut for this option, so you can use that as well (which has show_draw=no as the default). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 12:59, 27 September 2018 (UTC)
::::::The NBA and MLB do not use points in ranking teams; instead, both use [[winning percentage]] (PCT, denoted to the nearest hundredths) and [[games behind]] (GB). Points/runs scored either home or away are never included in league tables. Instead, one column is used for home record, away record, divisional record and conference record, all in W-L format. For example, if you'd use the [[2017–18 NBA season#Regular season]] Atlantic Division standings using that module, you'd get
{{#invoke:sports table|main|style=WLHA|res_col_header=Q
|team1=TOR|name_TOR=[[Toronto Raptors]]
|team2=BOS|name_BOS=[[Boston Celtics]]
|team3=PHI|name_PHI=[[Philadelphia 76ers]]
|team4=NY|name_NY=[[New York Knicks]]
|team5=BKN|name_BKN=[[Brooklyn Nets]]
|hwin_TOR=34|hloss_TOR=7|awin_TOR=25|aloss_TOR=16|status_TOR=Y
|hwin_BOS=27|hloss_BOS=14|awin_BOS=28|aloss_BOS=13|status_BOS=X
|hwin_PHI=30|hloss_PHI=11|awin_PHI=22|aloss_PHI=19|status_PHI=X
|hwin_NY=19|hloss_NY=22|awin_NY=10|aloss_NY=31|status_NY=
|hwin_BKN=15|hloss_BKN=26|awin_BKN=13|aloss_BKN=28|status_BKN=
|col_Y=green1|text_Y=Clinched division
|col_X=green2|text_X=Clinched playoffs
|result1=Y|result2=X|result3=X
|class_rules=1) Head-to-head record, 2) Division record, 3) Conference record, 4) Record against playoff teams, 5) Overall point differential
|update=complete
}}
::::::Which means absolutely nothing to a basketball fan. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 02:56, 2 October 2018 (UTC)
::::::FWIW, I tried coughing up the simplified conference table, and [[Talk:2018–19 NBA season#New template|it actually turned out neat]]. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 03:00, 2 October 2018 (UTC)
== WL module ==
If |hide_played=yes is added, games played is still showing up. Please fix. Thanks! [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 10:39, 4 October 2018 (UTC)
: [[User:Howard the Duck|Howard the Duck]], should be fixed. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:45, 4 October 2018 (UTC)
:: Thanks! [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 01:29, 5 October 2018 (UTC)
== Notes on column headers (e.g. Pts) ==
In the [[:Template:2018–19 Tahiti Ligue 1 table|2018–19 Tahiti Ligue 1 table]], which awards 4 points for a win, 2 points for a draw, 1 point for a defeat, I added a sentence so that the readers would be clear about the points system. But I think it would be aesthetically better if I can put this as a note next to the Pts column? Something like:
{| class="wikitable"
|-
!Pos!!Team!!Pld!!W!!D!!L!!GF!!GA!!GD!!Pts{{efn|4 points for a win, 2 points for a draw, 1 point for a defeat.}}!!Qualification or relegation
|}
{{notelist}}
And I can add the note using something like:
note_header_pts=4 points for a win, 2 points for a draw, 1 point for a defeat.
Also I think this may be helpful in the above discussions where many teams do not start with 0 points. We can just put all the starting points in this note and then there is no need for that extra column. What do you think? (pinging {{ping|Hhkohh|Frietjes|Sb008|S.A. Julio|Koppapa}}) [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 12:57, 15 October 2018 (UTC)
: For what you want, a parameter like "note_header_pts" would work. To use the same parameter to get a note indicating starting points, is not something I would prefer. This because the starting points are team specific and not, like in your case, a generic points rule. --[[User:Sb008|Sb008]] ([[User talk:Sb008|talk]]) 13:43, 15 October 2018 (UTC)
:: [[User:Chanheigeorge|Chanheigeorge]] and [[User:Sb008|Sb008]], the typical way to do this is with [//en.wikipedia.org/w/index.php?title=Template%3A2018–19_Tahiti_Ligue_1_table&type=revision&diff=864162456&oldid=864154610 class_rules], which is aesthetically better than having the note at the top. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:11, 15 October 2018 (UTC)
:::<s>Looks like using class rules is better to me</s> [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 14:16, 15 October 2018 (UTC)
::::But it is not a class rules? Also people in general do not read what is down at the bottom unless prompted. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 14:19, 15 October 2018 (UTC)
:::::Also seems weird to me you can add a note to the "Qualification or relegation" column header with "{{para|note_header_res}}", but adding a note to another column header is viewed as not aesthetically good. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 14:31, 15 October 2018 (UTC)
::::::{{u|Frietjes}} After I review that edit and above comments, maybe we should really add that parameter to make more sense [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 14:56, 15 October 2018 (UTC)
:::::::{{ping|Frietjes}} Nowadays people are reading Wikipedia on their tablets and smartphones, do you think some small prints at the bottom of the table is enough? [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 15:03, 15 October 2018 (UTC)
:::::::: you (1) want a footnote at the bottom of the table for the notes, which are always in small print, (2) you think that the notes should be at the top in large print. good luck making up your mind, I have better things to do. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:20, 15 October 2018 (UTC)
::::::::{{u|Chanheigeorge}}, for me just leave it at the bottom is better [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 15:24, 15 October 2018 (UTC)
== Easy Access to Full Table ==
In lots of articles a subset of the table (showing 5 teams) with the current club in the center is shown. I often find myself looking for a way to see the full table, which to do I need click at least 2 times, sometimes more and it isn't obvious. Therefore I have a suggestion.
'''SUGGESTION''': Have a line above the table that says something like "Full Table" that takes the reader to a full table for that league quickly. (Or that creates a popup showing the full table from the template). The easy thing to do is to have it link to the template page - but since that could lead to inadvertent editing on that page - I'd recommend the pop-up or a link to the table on the league's page for that season.
Thoughts? [[Special:Contributions/209.131.254.90|209.131.254.90]] ([[User talk:209.131.254.90|talk]]) 19:51, 21 November 2018 (UTC)
== More documentation ==
Anyone willing to help spruce up the documentation? I'm looking at starting to convert {{tl|Fb cl header}} transclusions to use this module but am a bit lost with how to actually use the module. Any chance we could get some more samples in the documentation? I'll absolutely contribute some myself but would be great if someone who is more familiar with the template could get the ball rolling. :-) --'''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 22:10, 3 December 2018 (UTC)
:.... And then I noticed all the subpages... If anyone needs me I'll be sitting over here in the corner with the ''idiot'' cap on... --'''[[User:Zackmann08|<span style="color:#00ced1">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange;">What I been doing</span>]]</sub>) 22:11, 3 December 2018 (UTC)
::{{u|Zackmann08}}, using [[User:Frietjes/fb.js]] may convert quickly [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 22:22, 3 December 2018 (UTC)
:::You mean {{u|Frietjes}} wrote a userscript?!? OF COURSE she did... Awesome! Thanks {{u|Hhkohh}}!!!<!-- Template:Unsigned --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Zackmann08|Zackmann08]] ([[User talk:Zackmann08#top|talk]] • [[Special:Contributions/Zackmann08|contribs]]) 22:27, 3 December 2018 (UTC)</small>
== Overtime note ==
Instead of "Matches with background in a lighter colour were decided after overtime," change to "Matches with background in a lighter shade were decided after overtime." or even "Matches with background in a lighter hue were decided after overtime." (First suggestion is first preference.) "Colour" is problematic since that word is spelled differently in English dialects. [[User:Howard the Duck|Howard the Duck]] ([[User talk:Howard the Duck|talk]]) 01:08, 3 January 2019 (UTC)
== Extra colour ==
{{ping|Frietjes}} I noticed you just added a missing colour to the module. On [[Wikipedia:WikiProject Football/League season#Table formatting]] (which is the general consensus on the use of colour), there is also another colour mentioned, #FEDCBA (see the column "Extra Color"). Would it be possible to define this colour as well in the module, given it is part of the adopted colouring scheme? Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 14:21, 9 February 2019 (UTC)
:[[User:S.A. Julio|S.A. Julio]], sure. do you want to call it "extra" or "orange1" or ? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:22, 9 February 2019 (UTC)
::{{u|Frietjes}}, maybe "orange1"? [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 14:27, 9 February 2019 (UTC)
:::[[User:S.A. Julio|S.A. Julio]], okay, added. and I added an orange2 computed using https://www.tutorialrepublic.com/html-reference/html-color-picker.php [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:42, 9 February 2019 (UTC)
::::Great, thanks! [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 17:09, 9 February 2019 (UTC)
== Optional links on Pld column ==
I suggest an option for each team to specify a link on the currently unlinked number in the "Pld" column which gives the number of played matches. The main use would be a section in a club season article with a list of the matches. For example, {{tl|2018–19 La Liga table}} might say <code><nowiki>|pld_BAR=2018–19 FC Barcelona season#Matches</nowiki></code> to make a link like "[[2018–19 FC Barcelona season#Matches|22]]" instead of an unlinked "22" in the row for FC Barcelona. As a reader I often miss easy access to this match information which often includes future matches. The suggestion would produce a lot of repetition like this in the example template:
<pre>|pld_ALA=2018–19 Deportivo Alavés season#Matches
|pld_ATH=2018–19 Athletic Bilbao season#Matches
|pld_ATM=2018–19 Atlético Madrid season#Matches
|pld_BAR=2018–19 FC Barcelona season#Matches
|pld_CEL=2018–19 Celta de Vigo season#Matches
|pld_EIB=2018–19 SD Eibar season#Matches
|pld_ESP=2018–19 RCD Espanyol season#Matches
|pld_GET=2018–19 Getafe CF season#Matches
|pld_GIR=2018–19 Girona FC season#Matches
|pld_HUE=2018–19 SD Huesca season#Matches
|pld_LEG=2018–19 CD Leganés season#Matches
|pld_LEV=2018–19 Levante UD season#Matches
|pld_RAY=2018–19 Rayo Vallecano season#Matches
|pld_BET=2018–19 Real Betis season#Matches
|pld_RMA=2018–19 Real Madrid CF season#Matches
|pld_RSO=2018–19 Real Sociedad season#Matches
|pld_SEV=2018–19 Sevilla FC season#Matches
|pld_VAL=2018–19 Valencia CF season#Matches
|pld_VLD=2018–19 Real Valladolid season#Matches
|pld_VIL=2018–19 Villarreal CF season#Matches
</pre>
There could be code to give default values for some of this with an override if the corresponding team parameter is set. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 19:48, 9 February 2019 (UTC)
:Wouldn't it be easier to link the team to the season article in the league table template? Not sure if that is wanted on wikipedia, just thorwing it out there like the NHL, NBA and NFL has it... [[User:Kante4|Kante4]] ([[User talk:Kante4|talk]]) 23:16, 9 February 2019 (UTC)
::It's better if both team and season can be linked when wanted. The "Pld" column gives a natural way to link the season when it has an article. It often doesn't. For example, [[:Category:Association football clubs 2018–19 season]] has many small subcategories. If it's only the team name which can have a link and it's used for season articles then in many leagues it would give an odd mix of team links and season links, or red links if the season is always linked. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 01:22, 10 February 2019 (UTC)
== Managerial record tables ==
After looking and couldn't find one, is there a sub-module that can produce the following two table styles (used at [[Jürgen Klopp#Managerial statistics]]):
{| class=wikitable style="text-align: center"
|+ Managerial record by team and tenure
|-
!rowspan=2|Team
!rowspan=2|From
!rowspan=2|To
!colspan=5|Record
!rowspan=2|{{abbr|Ref.|Reference}}
|-
!{{abbr|P|Matches played}}!!{{abbr|W|Matches won}}!!{{abbr|D|Matches drawn}}!!{{abbr|L|Matches lost}}!!{{abbr|Win %|Win percentage}}
|-
|align=left|[[1. FSV Mainz 05|Mainz 05]]
|align=left|27 February 2001
|align=left|30 June 2008
{{WDL|270|109|78|83|decimals=1}}
|
|-
|align=left|[[Borussia Dortmund]]
|align=left|1 July 2008
|align=left|30 June 2015
{{WDL|318|179|69|70|decimals=1}}
|
|-
|align=left|[[Liverpool F.C.|Liverpool]]
|align=left|8 October 2015
|align=left|''Present''
{{WDL|189|104|49|36|decimals=1}}
|
|-
!colspan=3|Total
{{WDLtot|777|392|196|189|decimals=1}}
!—
|}
{| class="wikitable" style="text-align:center"
|+ Managerial performance by club, season and competition
|-
!rowspan="2"|Club
!rowspan="2"|Season
!colspan="9"|League
!{{Tooltip|N. Cup|National Cup}}
!{{Tooltip|L. Cup|League Cup}}
!Europe
|-
!Division
!{{Tooltip|M|Matches coached}}
!{{Tooltip|W|Matches won}}
!{{Tooltip|D|Matches drawn}}
!{{Tooltip|L|Matches lost}}
!{{Tooltip|GF|Goals for}}
!{{Tooltip|GA|Goals against}}
!{{Tooltip|Win %|Winning percentage}}
!{{Tooltip|Pos.|Final position}}
!{{Tooltip|Pos.|Final position}}
!{{Tooltip|Pos.|Final position}}
!{{Tooltip|Pos.|Final position}}
|-
| rowspan="9"|[[1. FSV Mainz 05|Mainz 05]]
|[[2000–01 2. Bundesliga|2000–01]]
| [[2. Bundesliga]]
{{WDL|12|6|3|3|for=17|against=13}}
|{{Tooltip|14th|14th out of 18 teams.}}||{{Tooltip|2R|Second round}}||—||—
|-
|[[2001–02 2. Bundesliga|2001–02]]
| 2. Bundesliga
{{WDL|34|18|10|6|for=66|against=38}}
|{{Tooltip|4th|4th out of 18 teams.}}||{{Tooltip|R16|Round of 16}}||—||—
|-
|[[2002–03 2. Bundesliga|2002–03]]
| 2. Bundesliga
{{WDL|34|19|5|10|for=64|against=39}}
|{{Tooltip|4th|4th out of 18 teams.}}||{{Tooltip|1R|First round}}||—||—
|-
|[[2003–04 2. Bundesliga|2003–04]]
| 2. Bundesliga
{{WDL|34|13|15|6|for=49|against=34}}
|{{Tooltip|3rd|3rd out of 18 teams.}}||{{Tooltip|1R|First round}}||—||—
|-
|[[2004–05 Bundesliga|2004–05]]
| [[Bundesliga]]
{{WDL|34|12|7|15|for=50|against=55}}
|{{Tooltip|11th|11th out of 18 teams.}}||{{Tooltip|2R|Second round}}||—||—
|-
|[[2005–06 Bundesliga|2005–06]]
| Bundesliga
{{WDL|34|9|11|14|for=46|against=47}}
|{{Tooltip|11th|11th out of 18 teams.}}||{{Tooltip|QF|Quarter–finalist}}||—||{{Tooltip|1R|First round in UEFA Cup.}}
|-
|[[2006–07 Bundesliga|2006–07]]
| Bundesliga
{{WDL|34|8|10|16|for=34|against=57}}
|{{Tooltip|16th|16th out of 18 teams.}}||{{Tooltip|1R|First round}}||—||—
|-
|[[2007–08 2. Bundesliga|2007–08]]
| 2. Bundesliga
{{WDL|34|16|10|8|for=62|against=44}}
|{{Tooltip|4th|4th out of 18 teams.}}||{{Tooltip|2R|Second round}}||—||—
|-
!colspan="2"|Total
{{WDLtot|250|101|71|78|for=388|against=327}}
!colspan="4"|
|-
| rowspan="8"|[[Borussia Dortmund]]
|[[2008–09 Bundesliga|2008–09]]
| Bundesliga
{{WDL|34|15|14|5|for=60|against=37}}
|{{Tooltip|6th|6th out of 18 teams.}}||{{Tooltip|R16|Round of 16}}||—||{{Tooltip|1R|First round in UEFA Cup.}}
|-
|[[2009–10 Borussia Dortmund season|2009–10]]
| Bundesliga
{{WDL|34|16|9|9|for=54|against=42}}
|{{Tooltip|5th|5th out of 18 teams.}}||{{Tooltip|R16|Round of 16}}||—||—
|-
|[[2010–11 Borussia Dortmund season|2010–11]]
| Bundesliga
{{WDL|34|23|6|5|for=67|against=22}}
|{{Tooltip|1st|1st out of 18 teams.}}||{{Tooltip|1R|First round}}||—||{{Tooltip|GS|Group stage in Europa League.}}
|-
|[[2011–12 Borussia Dortmund season|2011–12]]
| Bundesliga
{{WDL|34|25|6|3|for=80|against=25}}
|{{Tooltip|1st|1st out of 18 teams.}}||{{Tooltip|W|Winner}}||—||{{Tooltip|GS|Group stage in Champions League.}}
|-
|[[2012–13 Borussia Dortmund season|2012–13]]
| Bundesliga
{{WDL|34|19|9|6|for=81|against=42}}
|{{Tooltip|2nd|2nd out of 18 teams.}}||{{Tooltip|R16|Round of 16}}||—||{{Tooltip|F|Losing finalist in Champions League.}}
|-
|[[2013–14 Borussia Dortmund season|2013–14]]
| Bundesliga
{{WDL|34|22|5|7|for=80|against=38}}
|{{Tooltip|2nd|2nd out of 18 teams.}}||{{Tooltip|F|Losing finalist}}||—||{{Tooltip|QF|Quarter–finalist in Champions League.}}
|-
|[[2014–15 Borussia Dortmund season|2014–15]]
| Bundesliga
{{WDL|34|13|7|14|for=47|against=42}}
|{{Tooltip|7th|7th out of 18 teams.}}||{{Tooltip|F|Losing finalist}}||—||{{Tooltip|R16|Round of 16 in Champions League.}}
|-
!colspan="2"|Total
{{WDLtot|238|133|56|49|for=469|against=248}}
!colspan="4"|
|-
| rowspan="6"|[[Liverpool F.C.|Liverpool]]
|-
| [[2015–16 Liverpool F.C. season|2015–16]]
| [[Premier League]]
{{WDL|30|13|9|8|for=55|against=40}}
|{{Tooltip|8th|Eighth out of 20 teams.}} || {{Tooltip|4R|Fourth round}} || {{Tooltip|RU|Runner–up}} || {{Tooltip|RU|Runner–up in Europa League.}}
|-
|[[2016–17 Liverpool F.C. season|2016–17]]
| Premier League
{{WDL|38|22|10|6|for=78|against=42}}
|{{Tooltip|4th|Fourth out of 20 teams.}} || {{Tooltip|4R|Fourth round}} || {{Tooltip|SF|Semi–final}} || —
|-
|[[2017–18 Liverpool F.C. season|2017–18]]
| Premier League
{{WDL|38|21|12|5|for=84|against=38}}
|{{Tooltip|4th|Fourth out of 20 teams.}} || {{Tooltip|4R|Fourth round}} || {{Tooltip|3R|Third round}} || {{Tooltip|F|Losing finalist in Champions League.}}
|-
|[[2018–19 Liverpool F.C. season|2018–19]]
| Premier League
{{WDL|26|20|5|1|for=59|against=15}}
|{{Tooltip|''1st''|First out of 20 teams.}} || {{Tooltip|3R|Third round}} || {{Tooltip|3R|Third round}} || {{Tooltip|''R16''|Round of 16 in Champions League.}}
|-
!colspan="2"|Total
{{WDLtot|132|76|36|20|for=276|against=135}}
!colspan="4"|
|-
!colspan="3"|Career total
{{WDLtot|620|310|163|147|for=1130|against=710}}
!colspan="4"|
|}
If there isn't and someone can help me with this, I'd appreciate it a lot. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 12:40, 17 February 2019 (UTC)
== WDL default ==
{{ping|Frietjes}} See [https://en.wikipedia.org/w/index.php?title=Template:2019_China_League_Two_tables&oldid=889080135 this revision], if we input nothing in {{para|win}} {{para|draw}} and {{para|loss}}, it should be 0, not just a blank [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 09:34, 23 March 2019 (UTC)
== Goal Ratio/Goal Average ==
Is there an option to have tables display something like "G. Ave" for "goal average" rather than "GR" for "goal ratio"? All of the older Scottish league tables have "GR" displayed, but the phrase "Goal Average" was always used in the UK football context. I assume Goal Ratio is used elsewhere, but it is not really historically accurate in this context. <!-- Template:Unsigned --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Craig1989|Craig1989]] ([[User talk:Craig1989#top|talk]] • [[Special:Contributions/Craig1989|contribs]]) 12:07, 19 March 2019 (UTC)</small>
: [[User:Craig1989|Craig1989]], probably possible, but there could be confusion with "Goals Against" which uses the GA abbreviation. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:29, 20 March 2019 (UTC)
::{{u|Frietjes}}, I believe "GAv" is the typical abbreviation, for example at [[1958 FIFA World Cup#Group stage]]. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 17:33, 20 March 2019 (UTC)
::: [[User:S.A. Julio|S.A. Julio]], we could do that. how about {{para|use_goal_average|y}} as an alternative to {{para|use_goal_ratio|y}} where both would be valid parameters. if both are used, we would default to "Goal Ratio" of course. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:04, 20 March 2019 (UTC)
::::{{u|Frietjes}}, sure sounds good! [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 09:15, 22 March 2019 (UTC)
::::: now implemented. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:47, 22 March 2019 (UTC)
:::::: Thank you for this. [[User:Craig1989|Craig1989]] ([[User talk:Craig1989|talk]]) 23:17, 2 April 2019 (UTC)
== Ability to display different qualification schemes? ==
I think it would be a good idea for the template to display different qualification schemes according to the needs of the article. For example, in [[2018–19 Argentine Primera División#League table]], we have the league table which displays how teams qualify for the 2020 South American competitions. And then in [[2019 Copa de la Superliga#Seeding]], we have the same league table which displays how teams qualify for the 2019 Copa de la Superliga. So now people have to update two tables. Maybe there is a way to solve this, like putting everything about qualification and status for the 2019 Copa de la Superliga with a mark "alt_":
|alt_res_col_header={{nowrap|Starting round}}
|alt_result1=R16 |alt_result2=R16 |alt_result3=R16 |alt_result4=R16 |alt_result5=R16 |alt_result6=R16 |alt_result7=FR |alt_result8=FR |alt_result9=FR |alt_result10=FR |alt_result11=FR |alt_result12=FR |alt_result13=FR |alt_result14=FR |alt_result15=FR |alt_result16=FR |alt_result17=FR |alt_result18=FR |alt_result19=FR |alt_result20=FR |alt_result21=FR |alt_result22=FR |alt_result23=FR |alt_result24=FR |alt_result25=FR |alt_result26=FR
|alt_col_R16=green1 |alt_text_R16=[[#Round of 16|Round of 16]]
|alt_col_FR=blue1 |alt_text_FR=[[#First round|First round]]
|alt_status_ALD=Q |alt_status_ARG=Q ....
And then calling some template parameter like "qualification=alt". So basically when I call the "alt", the "alt_XXX" parameter overrides the original "XXX" parameter. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 13:57, 1 April 2019 (UTC)
:Pinging {{u|Frietjes}} [[User:Hhkohh|Hhkohh]] ([[User talk:Hhkohh|talk]]) 13:59, 1 April 2019 (UTC)
::[[User:Chanheigeorge|Chanheigeorge]], definitely possible. your suggestion for the syntax is close to what I would implement. we should be able to do this with some simple input preprocessing where we filter out the unprefixed values, and then unprefix the prefixed values. after that, the rest of the module code can proceed without changes. I will start looking at this later today. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:12, 1 April 2019 (UTC)
:::{{ping|Frietjes}} Thank you for your quick response. Please updated when you have any progress. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 14:16, 1 April 2019 (UTC)
::::{{ping|Frietjes}} I have thought more about this. I think the best way to implement this is to have a parameter simply called "alt", and then you call say, "alt=COPA", and then put all the parameters above as:
|alt_COPA_res_col_header={{nowrap|Starting round}}
|alt_COPA_result1=R16 |alt_COPA_result2=R16 ....
|alt_COPA_col_R16=green1 |alt_COPA_text_R16=[[#Round of 16|Round of 16]]
|alt_COPA_col_FR=blue1 |alt_COPA_text_FR=[[#First round|First round]]
|alt_COPA_status_ALD=Q |alt_COPA_status_ARG=Q ....
This way theoretically the template can support even multiple alternative qualification schemes. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 17:09, 1 April 2019 (UTC)
: [[User:Chanheigeorge|Chanheigeorge]], I decided to use {{para|result_prefix}} since <code>alt</code> is usually for alternative text for images. so, if you add {{para|result_prefix|COPA}} then it will look for {{para|COPA_res_col_header}}, {{para|COPA_result1}}, ... instead of the unprefixed versions. let me know if you see an problems. I am also planning to add some basic parameter error checking, but that will take more time. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:07, 3 April 2019 (UTC)
::{{ping|Frietjes}} Thank you. I will check later and let you know if there are any problems. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 13:17, 3 April 2019 (UTC)
:::{{ping|Frietjes}} I have tried your code. For example, see [[:Template:2018 Copa América Femenina Final stage]]. The table at [[2018 Copa América Femenina]] displays the original qualification scheme with World Cup, Olympics and PanAm Games qualification. I use {{para|result_prefix|WC}} for the table at [[2019 FIFA Women's World Cup qualification#CONMEBOL]] to display only World Cup qualification, and {{para|result_prefix|OL}} at [[Football at the 2020 Summer Olympics – Women's qualification#2018 Copa América]] to display only Olympic qualification. So this part works. However, I don't think I can override statuses, so even if I use {{para|result_prefix}} the other table displays the same statuses as the original table. For example, in [[2018–19 Argentine Primera División#League table]] and [[2019 Copa de la Superliga#Seeding]], they display different statuses (since the league is ongoing). I think it is necessary to override statuses cos otherwise it is only good when the league has finished but not when it is still ongoing. [[User:Chanheigeorge|Chanheigeorge]] ([[User talk:Chanheigeorge|talk]]) 17:13, 5 April 2019 (UTC)
::::[[User:Chanheigeorge|Chanheigeorge]], okay, I extended the result_prefix to apply to status 'status_' as well. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:16, 10 April 2019 (UTC)
== Wording for competitions starting in future ==
For some competitions, only the starting month of the competition may be known, for example [[Template:2020 Copa América group tables]]. If the <code>start_date</code> parameter has the value [Month] [Year], could the wording output by the module be changed to "will be played in"? Thanks, [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 17:37, 10 April 2019 (UTC)
== Automatic V-T-E links ==
I have boldly added automatic V-T-E links which will appear when the parent of the module is not the same as the pagename, or when the transclusion is in a non-article namespace. please let me know if you see any problems with this. I can add the ability to turn this feature off, or tweak the logic if necessary, but this is very helpful for finding the table when it is transcluded in an article other than the main parent article. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:04, 20 March 2019 (UTC)
:{{ping|Frietjes}} I had to remove it from the imported module on it.wp because it doesn't work. You might want to make it at least optional. --[[User:Sannita|Sannita]] - <small>''[[User talk:Sannita|not just another it.wiki sysop]]''</small> 23:57, 8 May 2019 (UTC)
== To show a determined number of teams ==
Is there any possibility to show in one of these tables, a determined number of teams without bolding anyone. E.g, in the [[Template:2018–19 Primera División (women) table|Spanish women's league table]], to show teams than can be yet relegated, 11th to 16th. Thank you. [[User:Asturkian|Asturkian]] ([[User talk:Asturkian|talk]]) 08:26, 25 April 2019 (UTC)
: [[User:Asturkian|Asturkian]], in that case, you could use "|highest_pos=11". I could probably add a lowest_pos parameter, but right now, it just shows all below the highest_pos. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:15, 25 April 2019 (UTC)
:: {{u|Frietjes}}, a lowest_pos parameter would also be useful to allow transcluding on articles like this one: [[2015 Football League play-offs#Championship]]. Thanks, [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 17:25, 15 May 2019 (UTC)
::: {{U|Blaixx}}, you could use <code><nowiki>{{2014–15 Football League Championship table|highest_pos=3|showteam=NOR|show_limit=4}}</nowiki></code> for that particular case, although the colouring and notes will be transcluded from the table as well. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 20:34, 15 May 2019 (UTC)
:::: Thanks for the suggestion, although that also bolds the indicated team. It might be acceptable in this specific case (as the 3rd place team won the playoff), but it would be strange for when the 5th or 6th team was the winner. [[User_talk:Blaixx|<b style="color: #329604">B</b><b style="color: #FD8F42">L</b><b style="color: #0096FF">A</b><b>IXX</b>]] 22:43, 15 May 2019 (UTC)
::::: which is why I said "for that particular case". however, since it's not that difficult to add, I have now implemented {{para|lowest_pos}}, along with some other arg-processing simplifications. let me know if you see anything strange happening. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:57, 16 May 2019 (UTC)
== Cleaning needed ==
Some articles are showing "Lua error in package.lua at line 80: module 'Module:Sports table/...' not found" due to confusion over use of the <code>style</code> parameter. I gather that a code of some kind is needed but the following have css, and that is documented as ok in the template.
*[[2008–09 A-League]] <nowiki>{{A-League 2008-09 Position Ladder|style=...}}</nowiki> [[Template:A-League 2008-09 Position Ladder]]
*[[2008–09 Melbourne Victory W-League season]] <nowiki>{{W-League 2008-09 Position Ladder|MV=yes|style=...}}</nowiki> [[Template:W-League 2008-09 Position Ladder]]
*[[2009 Melbourne Victory W-League season]] <nowiki>{{W-League 2009 Position Ladder|MV=yes|style=...}}</nowiki> [[Template:W-League 2009 Position Ladder]]
*[[2011–12 Adelaide United W-League season]] <nowiki>{{W-League 2011-12 Position Ladder|AU=yes|style=...}}</nowiki> [[Template:W-League 2011-12 Position Ladder]]
*[[2011–12 in Australian soccer]] <nowiki>{{W-League 2011-12 Position Ladder|style=...}}</nowiki> [[Template:W-League 2011-12 Position Ladder]]
*[[2012–13 in Australian soccer]] <nowiki>{{W-League 2012-13 Position Ladder|style=...}}</nowiki> [[Template:W-League 2012-13 Position Ladder]]
Would someone who understands what is needed please fix. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 05:15, 17 May 2019 (UTC)
: [[User:Johnuniq|Johnuniq]], should be fixed now by removing the invalid style parameter. yesterday, I simplified how "frame args" and "parent args" are processed. unfortunately, this caused the previously ignored invalid style parameter to clobber the correct value upstream. we could go back to the old code, but it would be better (in my opinion) to just fix the transclusions. thank you for the detailed report. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 12:24, 17 May 2019 (UTC)
::Thanks. I made a couple of changes at [[Template:2008–09 A-League table/doc]] that I infer are now needed. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 01:13, 18 May 2019 (UTC)
== Suppressing the goal difference/average column ==
I think it would be useful to have an option allowing the goal difference/average column to be excluded from the output. I've been editing [[1895–96 Western Football League]] and have found that for this season the league abandoned the use of goal average to decide league positions and instead introduced an end-of-season play-off for teams tied on points. With this in mind it doesn't really make sense for goal average to be included in the article, but I can't see any way of removing it (without goal difference appearing instead).
Is this already an option and I've just missed it, or if not does anyone else feel that this would be useful? — '''[[User:Gasheadsteve|<span style="background:blue; color:white;">Gas</span><span style="background:white; color:blue;">Head</span><span style="background:blue; color:white;">Steve</span>]] <sub>[[User talk:Gasheadsteve|[TALK]]]</sub>''' 11:19, 18 July 2019 (UTC)
: {{ping|Gasheadsteve}} I checked the module code, and it looks like someone needs to add support for {{para|use_goal_diff|no}} to the module for that to work. Otherwise, that column cannot be suppressed. It's either Goal Ratio, Goal Average, Goal Percentage, or Goal Difference. Perhaps {{U|Frietjes}} can help? [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 17:22, 20 July 2019 (UTC)
== Source ==
Hi, is that possible to make the "source" part optional ? for example take a look at this [[2019 Copa América#Final_ranking]], there is no "source" for the general ranking, this is statistic based on results inside the article (all of them well sourced) and also there are some other cases when other sources inside the article already covers that table too. in short I think maybe it's better to make it optional, I just don't think that's a good idea to have "citation needed" in an article like that. right now the only way to avoid that is to add a random link which is also a bad idea. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 15:22, 16 July 2019 (UTC)
: [[User:Mohsen1248|Mohsen1248]], I have seen cases where one just links to the other sections in the article that contain the sources. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:34, 16 July 2019 (UTC)
:: I see but what about the example of Copa America ?! that's just statistics from results inside the page. what are you going to use as source for that ?! I just think having that option to not use that source thing for certain articles doesn't hurt. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 20:38, 16 July 2019 (UTC)
::: in that case, it should probably be removed as [[WP:OR]]. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:00, 17 July 2019 (UTC)
:::: maybe but it's not removed. but that's not my point, OK let me try it another way, take a look at this template [[Template:Football box]] probably used more than any other sport template, there is a "report" section, which should be filled but if you leave it blank it won't return a "citation needed". this one probably needs a reference more than the table. the same goes for sports templates in other sports such as basketball, Handball etc. to me this is double standard. another example is [[Template:Medals table]] probably more similar to this one, still it doesn't force you for a source. you can put the reference anywhere in the article you see fit. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 13:12, 17 July 2019 (UTC)
::::: citation needed doesn't force you to add a source. citation needed tells you that you should add a citation. all information added to WP should have a reliable and verifiable source. the fact that football box doesn't automatically add citation needed but "needs a reference more than the table" is a clear indication that it should tag unsourced information with citation needed. this sports table module is used for handball, basketball, etc. so there is no "double standard". [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:18, 17 July 2019 (UTC)
:::::: I'm talking about the handball/basketball box template not this sports table, similar to [[Template:Football box|Football box]] and It's indeed double standard, you don't automatically add that to those templates if someone leaves the report part blank unlike this one, if it's not a double standard then why for example this one [[Template:Medals table]] is different ? why there is no automatically "citation needed" for unsourced tables with that template ? sorry but this is really disappointing to me, I was expecting a better response from you. I really don't think you are even reading what I'm saying here. (the last line of your response clearly proves that, this is completely irreverent to my point, I didn't say it's double standard between football and those sports) I think it was better if you would answer "I'm the boss, and I like it this way, and I'm not changing it no matter what" instead of this answer, that could save both of us time. next time if I ask for some changes and you don't like it, simply write that. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 17:43, 17 July 2019 (UTC)
::::::: the automatic addition of the citation needed has been there since this module was created by {{U|CRwikiCA}} in 2014. your response to someone who doesn't agree with you is indeed disappointing. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 22:05, 17 July 2019 (UTC)
:::::::: Not more than answering someone without even reading his argument. What else you can say when you have no answer to my legitimate question about double standard. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 23:30, 17 July 2019 (UTC)
:::::::::Without going into the specifics of any page or sport subject - if you present a table with data, that data must be sourced. If it was already previously sourced, then use <nowiki><ref name="name" /></nowiki>. I'm not sure I understand what the problem is, unless the problem is that you don't want the tag to show up in your article, which if that is the case, is not a valid reason. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:43, 18 July 2019 (UTC)
:::::::::: Yes, data tables should always have a source. Seems like there is valid reason to suppress the citation needed tag if there is no citation. Thanks! [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 17:24, 20 July 2019 (UTC)
== Relegation points table? ==
Hello! I've already created the table template for the Argentine Primera División standings ([https://en.wikipedia.org/wiki/Template:2019%E2%80%9320_Argentine_Primera_Divisi%C3%B3n_table here]) that is used for showing tables in a seasons article, but I am having difficulty in creating one for the relegation/average points table that Argentine football uses ([https://en.wikipedia.org/wiki/2019%E2%80%9320_Argentine_Primera_Divisi%C3%B3n#Relegation here]). I'm inexperienced when it comes to these type of templates so haven't a clue how to create one/if one exists; I don't see a relegation table listed at Module:Sports table so assume it doesn't. Any help would be much appreciated. [[User:R96Skinner|R96Skinner]] ([[User talk:R96Skinner|talk]]) 00:22, 16 June 2019 (UTC)
: {{U|R96Skinner}}, as far as I can tell, there is no module or submodule for generating that type of table. Perhaps {{U|Frietjes}} can help (apologies for all the pings :)). [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 17:25, 20 July 2019 (UTC)
== Templates are being placed in Category:Templates needing substitution checking ==
The module, specifically, the WDL style (might be others also) is adding the templates to [[:Category:Templates needing substitution checking]]. I have no idea how to fix this, but from what I can tell, it has to do with the use of {{tl|Citation needed}}, which uses {{tl|Fix}} which is the one placing the templates in the category. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 19:55, 20 May 2019 (UTC)
:[[User:Gonnym|Gonnym]], strange. As far as I can tell there is no obvious way to suppress the category. However, if all of these tables are eventually merged with the articles, then I suppose the problem will be effectively eliminated. [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 17:27, 20 July 2019 (UTC)
== New table format for cricket competitions ==
Could anyone help me (either by guidance on how to code myself, or start things off for me to tweak) to create a module to show tables for [[cricket]] tournaments.
As an example of current usage there are {{tl|2019 Cricket World Cup points table}}, {{tl|2019 Indian Premier League Points table}} and {{tl|2015 Cricket World Cup Pool A}}
As an explanation:
*The most common results are Wins (generally worth 2 points) and Losses
*There are then separate results for Ties (scores are exactly the same, reasonably rare) and No Results (game is washed out by rain or similar, a lot more common than Ties). The points awarded for the last 2 results are generally the same (1 point).
* The NRR / [[Net run rate]] column is used to rank teams equal on points and is obtained by subtracting the overall run rate a team has conceded whilst bowling from the net run rate whilst batting. This calculation uses 4 totals from the games played by a team : <math>\frac {\sum RunsScored}{\sum OversFaced} - \frac {\sum RunsConceded}{\sum OversBowled} </math>. Initially we could just allow for the calculated total to be entered, or have 4 variables per team for each of these sums. [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 11:16, 20 May 2019 (UTC)
: {{U|Spike 'em}}: Has this problem been resolved? [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 17:28, 20 July 2019 (UTC)
:: Yes:I braved it and wrote it myself! [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 18:21, 20 July 2019 (UTC)
== Some other suggestions ==
Hi there, first of all thanks a lot for this work. I'm trying extensively this module on it.wp, to see if it's possible to adopt it as a standard for sports table.
I've got some suggestions/requests to be considered, if possible:
# move the "points" column before the "played" column, and make it optional (like "show_pts = no", for final classification tables);
# create separate fields for bonus points and penalties (the two things may happen at the same time, unfortunately);
# adding the possibility of showing a "−" instead of "0" when the field is compiled that way (for excluded/retired teams/players);
# if possible at all, adding the possibility of compiling "played" and "points" columns (yeah, I found such a case too...).
Please, ping me if you need any clarification, I'm more than happy to help!
Cheers. [[User:Sannita|Sannita]] - <small>''[[User talk:Sannita|not just another it.wiki sysop]]''</small> 09:22, 8 May 2019 (UTC)
:#I have added {{para|pts_first|y}} (or {{para|perc_first|y}} when using percentages)
:#I would think this is what hth notes are for, but I could be wrong. you should provide an example in an article.
:#This should generally work right now.
:#You should provide an example in an article.
:[[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:28, 11 May 2019 (UTC)
:::{{Ping|Frietjes}} Thank you for your work again. Sorry for answering two months late, but I needed time to overwrite the old version of the modules and re-check all the tests I did up until now.
:::So, about the bonus/penalty points, I have to rephrase that: my request is to separate {{para||s_pts}} into three different fields (bonus, penalties, and starting points) and allow to show explicitly bonus and starting points (penalties can be treated with {{para||hth_note}} or such). I provided a couple of examples in my [[User:Sannita/sandbox|sandbox]].
:::About the possibility of compiling the "played" and "points" columns, <del>it's a more complex thing and I still have to trace back that example, so for the moment let's put it apart</del> I've found again the examples, you can find them in the sandbox just below the first ones.
:::Thanks again! --[[User:Sannita|Sannita]] - <small>''[[User talk:Sannita|not just another it.wiki sysop]]''</small> 11:06, 21 July 2019 (UTC)
== Baseball/Softball ==
Hi, I wanted to use the module for baseball/softball pages, there is a small problem here, it seems our options are sets/games/goals/points/frames/matches, but in those sports it's about '''runs'''. is this possible to add that to the options ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 22:17, 13 August 2019 (UTC)
: any answer ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 10:01, 18 August 2019 (UTC)
::It looks like it should be simple enough in the WDL module, by adding the below condition:
::{{syntaxhighlight|lang=lua|code= if for_against_style==}}
::{{syntaxhighlight|lang=lua|code= elseif for_against_style=='r' or for_against_style=='run' or for_against_style=='runs' then
fa_letter = 'R'
fa_word_sing = 'Run'
fa_word_plur = 'Runs'}}
::I can't do this myself as I'm not a template editor, but it is possible to add an edit request for this. Is it the WDL version that you want to use? [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 10:40, 19 August 2019 (UTC)
::: Yes exactly. as simple as that. I thought that already existed for ''sets''' but I was wrong, in some sports (like beach handball) it's about winning sets. I know it's possible to use the "volleyball format" but having that option for sets is even better. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 10:45, 19 August 2019 (UTC)
::::I've added this code to {{ml|Sports table/WDL/sandbox}}, so can you try this (by doing <code>{{#invoke:Sports table|main|style=WDL/sandbox|for_against_style=R/run/runs|...</code> and if that works then I'll make an edit request. As an example
{{#invoke:Sports table|main|style=WDL/sandbox
|showteam={{{showteam|no}}} |only_pld_pts={{{only_pld_pts|no}}} |show_matches={{{show_matches|no}}}|for_against_style=R
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
|win_FDT=5 |loss_FDT=0 |gf_FDT=10 |ga_FDT=0
|win_BBB=3 |draw_BBB=1 |loss_BBB=1 |gf_BBB= 3 |ga_BBB=2
|win_CCC=3 |loss_CCC=2 |gf_CCC= 3 |ga_CCC=3
|win_DDD=1 |draw_DDD=1 |loss_DDD=3 |gf_DDD= 1 |ga_DDD=4
|win_EEE=0 |loss_EEE=5 |gf_EEE= 0 |ga_EEE=6
|name_FDT=[[FIFA World Cup Dream Team]]
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=DDD
|name_EEE={{fb|GIB}}
}}
::::[[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 11:45, 19 August 2019 (UTC)
::::: Thanks, that worked well. even though I had to try it with <code>{{#invoke:Sports table|main|style=WL/sandbox</code> because there is no "draw" in those sports. the outcome was the same though. I really appreciate your answer. and while you are doing this, is that possible fix some codes for "sets" this is probably just a mistake
::{{syntaxhighlight|lang=lua|code= elseif for_against_style=='m' or for_against_style=='set' or for_against_style=='matches' then
fa_letter = 'M'
fa_word_sing = 'Match'
fa_word_plur = 'Matches'}}
::::: I assume someone wanted to create different codes for sets and matches but mixed them together by mistake. I think there should be separate codes for sets like this:
::{{syntaxhighlight|lang=lua|code= elseif for_against_style=='s' or for_against_style=='set' or for_against_style=='sets' then
fa_letter = 'S'
fa_word_sing = 'Set'
fa_word_plur = 'Sets'}} [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 12:13, 19 August 2019 (UTC)
::::::I had noticed that and was in the process of changing that in the sandbox version (so please try again)! The WL module just calls the WDL one with one of the necessary parameters set, so any change to the live version will do the same. I'll go ahead and make the edit request and see if anyone answers that. [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 12:22, 19 August 2019 (UTC)
== Template-protected edit request on 19 August 2019 ==
{{edit template-protected|Module:Sports table/WDL|answered=yes}}
As per discussion above, and as tested in WDL/sandbox, in the code block starting:
{{syntaxhighlight|lang=lua|code=for_against_style = string.lower(for_against_style)
if for_against_style=='g' or for_against_style=='goal' or for_against_style=='goals' then}}
change the following (which originated [https://en.wikipedia.org/w/index.php?title=Module:Sports_table/WL&diff=next&oldid=835250345 here]) from
{{syntaxhighlight|lang=lua|code=elseif for_against_style=='m' or for_against_style=='set' or for_against_style=='matches' then}}
to
{{syntaxhighlight|lang=lua|code=elseif for_against_style=='m' or for_against_style=='match' or for_against_style=='matches' then}}
and add 2 new options for sets and runs:
{{syntaxhighlight|lang=lua|code=elseif for_against_style=='s' or for_against_style=='set' or for_against_style=='sets' then
fa_letter = 'S'
fa_word_sing = 'Set'
fa_word_plur = 'Sets'
elseif for_against_style=='r' or for_against_style=='run' or for_against_style=='runs' then
fa_letter = 'R'
fa_word_sing = 'Run'
fa_word_plur = 'Runs'
}}
before
{{syntaxhighlight|lang=lua|code= elseif for_against_style=='none' then}} [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 12:38, 19 August 2019 (UTC)
: probably done. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 13:16, 19 August 2019 (UTC)
::Thank you, looks good in the test I setup. [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 13:33, 19 August 2019 (UTC)
== Additional column with bonus points ==
Hi, I'm thinking of using <code>Module:Sports table</code> in articles related to motorcycle speedway. But in many leagues there is a additional bonus points column. I like the <code>WDL</code> style table, but it must have extra bonus column. Please tell me what should I do. I need to create a new WDL based module with extra column? Or it's more complex problem and some changes in <code>Module:Sports table</code> are needed? [[User:Klima|Klima]] ([[User talk:Klima|talk]]) 11:28, 2 October 2019 (UTC)
:If you use WDL, you can use {{para|show_bonus_points|yes}} in the module setup to display a bonus points column and {{para|adjust_points_AAA|0}} and {{para|adjust_points_BBB|1}} to assign bonuses to the individual teams in the data. [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 11:59, 2 October 2019 (UTC)
:e.g.
{{#invoke:Sports table|main|style=WDL
|show_bonus_points=yes|for_against_style=P
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
|win_FDT=5 |loss_FDT=0 |gf_FDT=10 |ga_FDT=0
|win_BBB=3 |draw_BBB=1 |loss_BBB=1 |gf_BBB= 3 |ga_BBB=2|adjust_points_BBB=-1
|win_CCC=3 |loss_CCC=2 |gf_CCC= 3 |ga_CCC=3
|win_DDD=1 |draw_DDD=1 |loss_DDD=3 |gf_DDD= 1 |ga_DDD=4
|win_EEE=0 |loss_EEE=5 |gf_EEE= 0 |ga_EEE=6|adjust_points_EEE=3
|name_FDT=Team A
|name_BBB=Team 2
|name_CCC=Team 3
|name_DDD=DDD
|name_EEE=The E's
}} [[User:Spike 'em|Spike 'em]] ([[User talk:Spike 'em|talk]]) 12:05, 2 October 2019 (UTC)
::Thanks a lot. I study module documentation, but missed {{para|show_bonus_points}} parameter. [[User:Klima|Klima]] ([[User talk:Klima|talk]]) 16:44, 6 October 2019 (UTC)
== Input arg check ==
I added an initial attempt at input argument parameter checking to find typos or other unintended output. this is definitely a work in progress, but at the moment, it should be only generating false positives, and only using hidden tracking categories (and notes in preview). please let me know if you see any serious problems. I will be working on making the tracking more meaningful and accurate of the next several days. the base category for the tracking is [[:Category:Sports table tracking]] with subcategories for various issues. I would definitely note worry about the "ignored parameters" category right now, since some of those are parameters which may be implemented in the future. I will try to document each category as soon as the categories fill up. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:48, 22 October 2019 (UTC)
== Team list ==
Basic usage of WDL module for listing 20 team positions is like:
|team1=ARS |team2=AVL |team3=BOU|team4=BHA |team5=BUR |team6=CHE |team7=CRY |team8=EVE|team9=LEI|team10=LIV |team11=MCI |team12=MUN |team13=NEW |team14=NOR |team15=SHU |team16=SOU |team17=TOT |team18=WAT |team19=WHU |team20=WOL
Updating team positions after a single match is played is awkward: See [https://en.wikipedia.org/w/index.php?title=Template:2019%E2%80%9320_Premier_League_table&diff=next&oldid=909752199]
|team1=<span style='background:cyan'>LIV</span> |team2=<span style='background:cyan'>ARS</span> |team3=<span style='background:cyan'>AVL</span> |team4=<span style='background:cyan'>BOU</span> |team5=<span style='background:cyan'>BHA</span> |team6=<span style='background:cyan'>BUR</span> |team7=<span style='background:cyan'>CHE</span> |team8=<span style='background:cyan'>CRY</span> |team9=<span style='background:cyan'>EVE</span> |team10=<span style='background:cyan'>LEI</span> |team11=<span style='background:cyan'>MCI</span> |team12=<span style='background:cyan'>MUN</span> |team13=<span style='background:cyan'>NEW</span> |team14=<span style='background:cyan'>SHU</span> |team15=<span style='background:cyan'>SOU</span> |team16=<span style='background:cyan'>TOT</span> |team17=<span style='background:cyan'>WAT</span> |team18=<span style='background:cyan'>WHU</span> |team19=<span style='background:cyan'>WOL</span> |team20=<span style='background:cyan'>NOR</span>
Wouldn't it be possible to allow a parameter team_list? like:
|team_list==ARS,AVL,BOU,BHA,BUR,CHE,CRY,EVE,LEI,LIV,MCI,MUN,NEW,NOR,SHU,SOU,TOT,WAT,WHU,WOL
That would make changes easier to handle:
|team_list==<span style='background:cyan'>LIV,</span>ARS,AVL,BOU,BHA,BUR,CHE,CRY,EVE,LEI,MCI,MUN,NEW,SHU,SOU,TOT,WAT,WHU,WOL<span style='background:cyan'>,NOR</span>
Cheers,--[[User:Tykyheg|Tykyheg]] ([[User talk:Tykyheg|talk]]) 07:53, 17 October 2019 (UTC)
:[[User:Tykyheg|Tykyheg]], okay, this should work now, but using {{para|team_order|LIV, ARS, ...}} I have also been thinking we could probably make the team ordering automatic with some keyword, but that would require more work. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:03, 20 October 2019 (UTC)
::If the order is based on the points column (as an example), then that can be used to initially sort the data into an array then continue with the rest of the code based on that. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:33, 20 October 2019 (UTC)
::: This change in articles edited by experienced editors who have been using this module for years may come with some resistance, I wonder if it should be discussed somewhere where more responses would be expected. I like the automatic ordering idea, but it sounds difficult considering the different tie-breaking rules in each league. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 15:50, 20 October 2019 (UTC)
::::Could you give an example of a league table you'd think would be hard to implement it for? From the various tables I've seen, there seems to always be a column that the team order is based on. --[[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 15:53, 20 October 2019 (UTC)
::::: if I recall, we had about 7 different orderings in the old {{tl|fb cl footer}} so we could have something like {{para|team_order|Pts/GD/GF}} which would mean 1) points, 2) goal difference, 3) Goals for. of course, the default would be to have the order manually specified. unfortunately, the way that the module currently works, it will require either 2 passes, or some post processing to fix the order after the first pass. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:56, 20 October 2019 (UTC)
:::::: I imagine implementation may be more difficult when head-to-head is the tie-breaker, which many leagues use, some as the first tie-breaker. Maybe it's easier than I assume, though. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 16:01, 20 October 2019 (UTC)
::::::: no, you are correct, making head-to-head work automatically would be difficult, and probably not possible to code for all the cases. the question is if it's worth it to have the option to auto sort for some cases. just because we can't make automatic sorting work for all cases doesn't mean we can't have as an option for some cases. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 16:12, 20 October 2019 (UTC)
:::::::: Like I said, I like the idea, I just wasn't sure how difficult it would be. If it was done automatically and editors have to adjust manual for head-to-head, I'm sure it would work smoothly. Adjustments and notes are already needed to deal with head-to-head anyway. [[User:Equineducklings|Equineducklings]] ([[User talk:Equineducklings|talk]]) 16:54, 20 October 2019 (UTC)
{{od|::::::::}} I do think this would be an extremely useful option to have. I'm also curious if it would be possible to have an entire table built from all the match results? Basically formatting the information as done with [[Module:Sports results]], except the module would then calculate each team's W/D/L/GF/GA from these results. [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 18:45, 24 October 2019 (UTC)
:Agree, would make it much easier to have it kind of automatic. With the results or "just" by adding the data. [[User:Kante4|Kante4]] ([[User talk:Kante4|talk]]) 18:30, 25 October 2019 (UTC)
== Volleyball ==
I want to ask for some changes for '''Module:Sports table/Volleyball'''
: 1) In general in tables for football and other sports, you have that option to sometimes leave it blank or put something like "—" in case all results are not available, this option is not possible with volleyball, the table replaces it with a Zero. I hope this can be the same as other sports, for both Sets and Points.
: 2) If Sl or Spl = 0 and sw/spw has a value (and not zero) the outcome for SR/SPR should be "MAX" and not "—", this is how it works for FIVB tables.
: 3) I'm not sure if this one is possible but it doesn't hurt asking, in past for a period time, SPR has adventage over SR as the first tiebreaker , is it possible to have that option to have those columns of SPW/SPL/SPR before SW/SL/SR ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 14:18, 23 October 2019 (UTC)
: 1) Blank defaults to zero per [[Module_talk:Sports_table/Archive_1#WDL_default|this comment]] from {{U|Hhkohh}} which I don't agree with. However, making it so '-' works shouldn't be a problem (now done). 2) probably done now. 3) for football, we have {{para|loss_before_draw|y}} so we could probably do something similar here, just need to decide on the parameter. how about {{para|setpoints_before_sets|y}}? [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:41, 24 October 2019 (UTC)
:: Thanks. 1 and 2 changes look very good. and that's also a good parameter, I just want to ask something more if possible. is it possible to simply remove the SPW/SPL/SPR columns in case most results are not available in details (pages like [[Nine-a-side volleyball at the 1958 Asian Games – Men|this]]) ? [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 01:21, 25 October 2019 (UTC)
:::[[User:Mohsen1248|Mohsen1248]], okay, this should work now: {{para|setpoints_before_sets|y}} (default no), {{para|show_sets|n}} (default yes), and {{para|show_setpoints|n}} (default yes). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:36, 25 October 2019 (UTC)
:::: Thanks, works perfectly. [[User:Mohsen1248|Mohsen1248]] ([[User talk:Mohsen1248|talk]]) 19:34, 25 October 2019 (UTC)
== Qualification notes ==
{{ping|Frietjes}} Would it be possible to hide the notes that are displayed [[2019 UEFA Nations League Final#Route to the final|here]]? As the qualification column is not meant to be displayed on this page, the note is "stranded". [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 00:08, 31 October 2019 (UTC)
:[[User:S.A. Julio|S.A. Julio]], fixed for that particular case. the code for that aspect is not very robust. for example, it looks like it may do the same thing if that column is entirely empty but not explicitly suppressed with the {{para|only_pld_pts|y}} option. I will work on it more later. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 12:05, 31 October 2019 (UTC)
::Great, thank you! [[User:S.A. Julio|S.A. Julio]] ([[User talk:S.A. Julio#top|talk]]) 16:12, 31 October 2019 (UTC)
|