Content deleted Content added
syntaxhighlight lang="wikitext" |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 5:
== Usage ==
===Basic usage===
In
{| class="wikitable" style="background:white;"
|+ Big/small win/loss input style
|-
|'''What you type'''
|<
|team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE
Line 26 ⟶ 25:
|name_DDD=Team 4
|name_EEE={{vb|AUS}}
}}</
|-
|'''What it looks like'''
Line 50 ⟶ 49:
|-
|'''What you type'''
|<
|team1=FDT|team2=BBB|team3=CCC|team4=DDD
Line 65 ⟶ 64:
|col_A=#ccffcc|result1=A|result2=A
|col_E=#ffcccc|result3=E|result4=E
}}</
|-
|'''What it looks like'''
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===
Line 142 ⟶ 102:
|-
|'''What you type'''
|<
|ranking_style=points
Line 166 ⟶ 126:
|slosspoints=-0.1
|blosspoints=-0.8
}}</
|-
|'''What it looks like'''
Line 198 ⟶ 158:
Alternatively teams can also be ranked by points (set {{para|ranking_style|points}} to bold that row instead)
{{Module:Sports table/
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Sports modules]]
}}</includeonly>
|