Module talk:Sports table/Archive 1: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot
m Archiving 5 discussion(s) from Module talk:Sports table) (bot
Line 2,639:
: [[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? &mdash; '''[[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>]]&nbsp;<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 &#39;em|Spike &#39;em]] ([[User talk:Spike &#39;em|talk]]) 11:16, 20 May 2019 (UTC)
: {{U|Spike &#39;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 &#39;em|Spike &#39;em]] ([[User talk:Spike &#39;em|talk]]) 18:21, 20 July 2019 (UTC)