Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
m Archiving 1 discussion(s) from Module talk:Sports table) (bot |
||
Line 1,799:
Could it be possible to add a parameter such as <code>|points_first=yes</code> to generate the table with that order of columns? That would help to increase adoption of the module in the [[Portuguese Wikipedia]]. Thanks. [[User:Alan Moraes|— Alan Moraes]] ([[User talk:Alan Moraes|talk]]) 02:27, 13 January 2017 (UTC)
== Absolute percentage parameter ==
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|<font color="#008080">'''Sellyme'''</font>]]<sup>[[User talk:Sellyme|<font color="#009933">'''Talk'''</font>]]</sup> 12:46, 16 April 2017 (UTC)
|