Module:Sports table/Volleyball/doc

This style for Lua-based Module:Sports table is meant to build group and league tables for competitions with a volleyball format. Note that this module is used extensively, so test potential changes rigorously in the sandbox and please ensure consensus exists before implementing major changes. The rest of this documentation explains how to use this module with the WL style in an article or template, check the table of contents for specific items.

Basic usage
In its simplest form only several parameters need to be used to build a table The main command is the statement which basically calls the module and enables you to set everything up. Then you list the positions of the teams as team1, team2, etc for however many teams you need in the table. You can use full team names there without spaces if you want, but using codes (as in the example) can make it easier. For each team you now define the big wins small wins, small losses, big losses, sets won, sets lost, setpoints won and setpoints lost by using bwin_TTT, swin_TTT, sloss_TTT, bloss_TTT, sw_TTT, sl_TTT, spw_TTT and spl_TTT respectively (with TTT replaced by the team code). Alternatively, you can define win3s_TTT, win4s_TTT, win5s_TTT, loss5s_TTT, loss4s_TTT, loss3s_TTT for 3-set-wins, 4-set-wins, 5-set-wins, 5-set-losses, 4-set-losses, and 3-set-losses. Note that,  is the same as "small wins" and  /  are the same as "big wins". You should not use both the  and  /  syntax simultaneously. If you do not define any of these numbers, they are automatically assumed to be 0. It is good practice though to include them anyway and to align the columns using appropriate spaces (as in the example), so the code is easy to read. The last step now is to define the name_TTT parameters which determine what name is shown in the table, you can use wiki markup and templates in here as well. See to see how to change the update date.

Customization
Several things can be customized in these tables

Hiding played column
Setting yes hides the played column.

Hiding the sets columns
Setting no hides the sets columns.

Hiding the setpoints columns
Setting no hides the setpoints columns.

Showing the setpoints columns first
Setting yes moves the setpoints columns before the sets colums.

Wins or points
By default teams are ranked by wins, but also list points which can be adjusted as follows: As a default a big win is worth 3 points, a small win 2 points, a small loss 1 point and a big loss 0 points, these values can be overwritten to what you need by bwinpoints, swinpoints, slosspoints and blosspoints. Teams can also start the season with bonus or penalty points, this can be included by using adjust_points_TTT for that specific team.

Alternatively teams can also be ranked by points (set points to bold that row instead)