Editing
Module:Sports table/doc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Usage== The basic command is <code><nowiki>{{#invoke:Sports table|main|style=XXX}}</nowiki></code> ===Style=== The <code>XXX</code> in <code>style=XXX</code> is to be replaced by one of the following available styles: ====General styles==== * [[Module:Sports table/WDL|WDL]] β For tables with a win-draw-loss system * [[Module:Sports table/WL|WL]] β For tables with a win-loss system * [[Module:Sports table/WL PK|WL PK]] β For tables with a win-loss system that gives different weights to wins and losses from a penalty kick shootout * [[Module:Sports table/WL OT|WL OT]] β For tables with a win-loss system that gives different weights to overtime wins * [[Module:Sports table/WL OTL tiebreak|WL OTL tiebreak]] β For tables with a win-loss-OT loss system and a separate tiebreak column * [[Module:Sports table/WL goal points|WL goal points]] β For tables with a win-loss system that gives additional points for goals * [[Module:Sports table/WDLHA|WDLHA]] β For tables with separate home and away win-draw-loss accounting * [[Module:Sports table/WLHA|WLHA]] β For tables with separate home and away win-loss accounting * [[Module:Sports table/WDL OT|WDL OT]] β For tables with a win-loss system which allow draws or overtime wins in certain situations * [[Module:Sports table/PP|PP]] β For simple tables which only show games played and number of points * [[Module:Sports table/RR|Round robin]] * [[Module:Sports table/Custom|Custom]] β For tables in which the number of columns and all column headers are specified as inputs, for greater customization ====Sport or league specific styles==== * [[Module:Sports table/Volleyball|Volleyball]] β For tables with volleyball system, including sets, set-points and different points for different types of wins * [[Module:Sports table/Darts|Darts]] * [[Module:Sports table/Badminton individual|Badminton individual]] * [[Module:Sports table/Badminton team|Badminton team]] * [[Module:Sports table/Chess|Chess]] * [[Module:Sports table/CricketRR|CricketRR]] β Cricket table with Net Run Rate * [[Module:Sports table/CricketCC|CricketCC]] β Cricket table for County Championship with batting and bowling bonus points * [[Module:Sports table/CricketRT|CricketRT]] β Cricket table for Ranji Trophy with batting, bowling bonus points and Runs per wicket ratio. * [[Module:Sports table/Fencing|Fencing]] * Football (soccer) was the first creation. This style is renamed to [[Module:Sports table/WDL|WDL]] ====More styles==== The module uses [[WP:Lua|Lua]] to create the tables. Most functionality is obtained from the main module, but specific column formatting comes from the style sub-modules. The existing styles can handle a lot of different options. In case you need additional options it could be useful to create a new style. Note that some tweaking of an existing style could give you the functionality you need, rather than creating a completely new style. In case you do create a new style, you might want to refer to the [[mw:Extension:Scribunto/Lua reference manual|Lua reference manual]]. ===Other options=== Other options can be used, for example: <code>{{#invoke:Sports table|main|style=WL OT |sortable_table = yes |source=[https://www.internationalchampionscup.com/en/standings ICC] |update=July 28, 2018</code> ====sortable_table==== "<code>yes</code>" makes the table columns sortable ====source==== Adds a link which should point to a web resource with the information for verifying or updating the table ====update==== Gives the date when the table info was last updated. This is to be set manually β it's not automatically changed when someone changes the table. For a final table set "<code>complete</code>". ====float==== Set to left or right to float the table to the left or right on the page ====title_source==== To append a reference to the title and suppress the need for a source at the foot of the table
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information