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!
===Matchrow=== There are occasions in which it may be preferable to enter all match data corresponding to one row using one parameter. {| 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 |short_CCC={{Abbr|3|Team 3}} |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |winpoints=2 |drawpoints=1 |losspoints=-0.1 |disp_fractions=no |show_matches=yes |matchrow_AAA= ---,1+0,1+½,½+ , +0 |hth_AAA=1.9 |matchrow_BBB= 1+0,---,½+½,½+0,½ |hth_BBB=1.9 |matchrow_CCC= ½+0,½+½,---,1 |matchrow_DDD= +½,1+½, +0 |matchrow_CAR= 1+ , +½ |bgcolrow_CCC= B+W,B+W,---,W+B,B+B |bgcolrow_CAR= W+W, }}</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 |short_CCC={{Abbr|3|Team 3}} |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |winpoints=2 |drawpoints=1 |losspoints=-0.1 |disp_fractions=no |show_matches=yes |matchrow_AAA= ---,1+0,1+½,½+ , +0 |hth_AAA=1.9 |matchrow_BBB= 1+0,---,½+½,½+0,½ |hth_BBB=1.9 |matchrow_CCC= 0+½,½+½,---,1 |matchrow_DDD= +½,1+½, +0 |matchrow_CAR= 1+ , +½ |bgcolrow_CCC= B+W,B+W,---,W+B,B+B |bgcolrow_CAR= W+W, }} |} Using the {{para|matchrow_XXX}} parameter, only one parameter is needed for the match data per row, rather than a number of parameters equal to the number of players per row. Note that {{para|matchrow_XXX}} data is comma separated, with each value between commas equal to the previously discussed {{para|match_XXX_YYY}} data, with the addition of data for the main diagonal. This value for the main diagonal is a dummy value which is never used and only exists to line matches up so that parameter inputs are easier to read. The dummy value is needed even for the two player special case, when no main diagonal is displayed in the crosstable. For this reason, it is advised that {{para|matchrow_XXX}} not be used in competitions with only 2 players. Additionally, if you use {{para|matchrow_XXX}}, then all match data needs to be changed each time you change the rank of any player. With {{para|match_XXX_YYY}}, no data needs to be changed when re-ordering players. For this reason, it is advised that {{para|matchrow_XXX}} only be used in already completed tournaments, where there is no possibility of changing the order of players. The parameter {{para|bgcolrow_XXX}} works similarly to {{para|matchrow_XXX}} in that the data is comma separated, except that each value between commas equal to the previously discussed {{para|bgcol_XXX_YYY}} data.
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)