Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sports table/Chess/doc
(section)
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!
===Points=== Points are calculated using match data. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Chess |team1=AAA |team2=BBB |team3=CCC |team4=DDD |team5=CAR |name_AAA=[[Grandmaster (chess)|Grandmaster]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |winpoints=2 |drawpoints=1 |losspoints=-0.1 |disp_fractions=no |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=1.9 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=1.9 |match_CCC_AAA=½+0 |match_CCC_BBB=½+½ |match_CCC_DDD=1 |match_CCC_CAR= |match_DDD_AAA= +½ |match_DDD_BBB=1+½ |match_DDD_CCC= +0 |match_CAR_AAA=1+ |match_CAR_BBB= +½ }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Chess |team1=AAA |team2=BBB |team3=CCC |team4=DDD |team5=CAR |name_AAA=[[Grandmaster (chess)|Grandmaster]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |winpoints=2 |drawpoints=1 |losspoints=-0.1 |disp_fractions=no |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=1.9 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=1.9 |match_CCC_AAA=½+0 |match_CCC_BBB=½+½ |match_CCC_DDD=1 |match_CCC_CAR= |match_DDD_AAA= +½ |match_DDD_BBB=1+½ |match_DDD_CCC= +0 |match_CAR_AAA=1+ |match_CAR_BBB= +½ }} |} The match data that is used to calculate points is given by {{para|match_XXX_YYY}} where XXX and YYY are different team codes. This parameter takes a value of W+B, where W is the result as white and B is the result as black. The results use the character 1 for a win, ½ for a draw, and 0 for a loss. Note that incomplete information such as ½+ is allowed, and still calculates correctly. As a default, a win is worth 1 point, a draw 0.5 points and a loss 0 points, these values can be overwritten to what you need by {{para|winpoints}}, {{para|drawpoints}} and {{para|losspoints}}, if such parameters are provided. Head-to-head values are not calculated automatically, and are given by the parameter {{para|hth_XXX}}. The parameter {{para|disp_fractions}} determines whether the calculated points and head-to-head values (if any are given) are displayed as fractions or decimals. Note that this parameter should only be set to yes if {{para|winpoints}}, {{para|drawpoints}} and {{para|losspoints}} are a multiple of {{frac|1|2}}. Otherwise, an incorrect fraction will be displayed.
Summary:
Please note that all contributions to Stockhub 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
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)