Content deleted Content added
→Basic usage: no longer used |
|||
Line 6:
===Basic usage===
In it's simplest form only several parameters need to be used to build a table
{| class="wikitable" style="background:white;"
|+ Big/small win/loss input style
Line 86 ⟶ 85:
|}
The main command is the <nowiki>{{#invoke:Sports table|main|style=Volleyball}}</nowiki> statement which basically calls the module and enables you to set everything up. Then you list the positions of the teams as {{para|team1}}, {{para|team2}}, etc for however many teams you need in the table. You can use full team names there <u>without spaces</u> 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 {{para|bwin_TTT}}, {{para|swin_TTT}}, {{para|sloss_TTT}}, {{para|bloss_TTT}}, {{para|sw_TTT}}, {{para|sl_TTT}}, {{para|spw_TTT}} and {{para|spl_TTT}} respectively (with TTT replaced by the team code). Alternatively, you can define {{para|win3s_TTT}}, {{para|win4s_TTT}}, {{para|win5s_TTT}}, {{para|loss5s_TTT}}, {{para|loss4s_TTT}}, {{para|loss3s_TTT}} for 3-set-wins, 4-set-wins, 5-set-wins, 5-set-losses, 4-set-losses, and 3-set-losses. Note that, <code>win5s</code> is the same as "small wins" and <code>win4s</code>/<code>win3s</code> are the same as "big wins". You should not use both the <code>bwin</code> and <code>win4s</code>/<code>win3s</code> 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 {{para|name_TTT}} parameters which determine what name is shown in the table, you can use wiki markup and templates in here as well. See [[#Dating]] to see how to change the update date.
===Customization===
|