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!
===Customizing columns=== Several columns can be customized in these tables. ====Altering default columns==== You may choose not to display some of the default columns. {| 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}} |hide_played=yes |score_over_played=yes |show_hth=no |show_win=no |postitle=Rank |player_header=Player list |score_width=90 |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |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}} |hide_played=yes |score_over_played=yes |show_hth=no |show_win=no |postitle=Rank |player_header=Player list |score_width=90 |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |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 column for the number of games played can be hidden with the {{para|hide_played}} parameter. Whether or not that column is hidden, score can be displayed as score / games played by using the {{para|score_over_played}} parameter. This parameter should be set to yes only when {{para|hide_played}} is set to yes, in order to avoid duplicated information. To hide the H2H and Wins columns, just set {{para|show_hth}} and {{para|show_win}}, respectively, to no. Similar behavior may be obtained by using the {{para|only_pld_pts}} parameter to only show the games played and score columns to the right of the player name. For more information on {{para|only_pld_pts}}, or on the {{para|postitle}} parameter used in this table, see [[#Appearance]]. The leftmost column, which specifies the position of each player, may be hidden using the {{para|show_positions}} parameter. The {{para|player_header}} parameter may be used to give the player column a custom header, instead of the default value of Player seen in other examples on this page. ====Wins, Draws, and Losses==== For backwards compatibility with the WDL style, it is possible to choose whether to display the Wins, Draws, and Losses columns. {| 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}} |show_win=yes |show_draw=yes |show_loss=yes |wdl_iff_hth=yes |hth_before_w=no |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=1 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=1 |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}} |show_win=yes |show_draw=yes |show_loss=yes |wdl_iff_hth=yes |hth_before_w=no |match_AAA_BBB=1+0 |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=1 |match_BBB_AAA=1+0 |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=1 |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= +½ }} |} We saw the {{para|show_win}} parameter in the previous example, but there are also {{para|show_draw}} and {{para|show_loss}} parameters, which similarly determine whether the Draws and Losses columns, respectively, will be shown. The default value of {{para|show_win}} is yes, while the default values of {{para|show_draw}} and {{para|show_loss}} are no. As seen in previous tables, the H2H column usually appears before the Wins column. If you wish the H2H column to show up immediately after whichever of the Wins, Draws, and Losses columns are present, you may set the {{para|hth_before_w}} parameter to no. If the parameter {{para|wdl_iff_hth}} is set to yes, then any wins, draws, or losses will only be displayed if head to head data has been defined for a given player. ====Sonneborn–Berger score==== In addition to other automatic calculations done by this module, there is also the possibility to calculate the [[Sonneborn–Berger score]]. {| 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 |show_sb=yes |sb_iff_hth=yes |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 |nosb_BBB=yes |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 |show_sb=yes |sb_iff_hth=yes |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 |nosb_BBB=yes |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 {{para|show_sb}} parameter shows a column containing the [[Sonneborn–Berger score]] of each player calculated from their match results. The Sonneborn–Berger score is calculated by taking the number of points gained against a given opponent multiplied by the total number of points that opponent scored, and then summing this product over all of the players. If the parameter {{para|sb_before_w}} is set to yes, then the column containing the Sonneborn–Berger score of each player appears immediately before the win column. If {{para|hth_before_w}} is also set to yes, the column containing the [[Sonneborn–Berger score]] of each player comes after the HTH column. If the parameter {{para|sb_before_w}} is set to the default value of no, then this column comes after both the H2H column as well as whichever of the Wins, Draws, and Losses columns are present. The values in this column are always given as decimals regardless of {{para|disp_fractions}}. If the parameter {{para|sb_iff_hth}} is set to yes, then a calculated Sonneborn–Berger score will only be displayed if head to head data has been defined for a given player. Additionally, you may set the {{para|nosb_XXX}} parameter to yes for any given player with team code XXX in order to prevent that particular player's Sonneborn–Berger score from being displayed. ====Other additional columns==== The data for this table comes from the 3rd [[Sinquefield Cup]], which was a single [[round-robin tournament|round-robin]] event held in 2015. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Sinquefield Cup 2015 |url=https://www.chessgames.com/perl/chess.pl?tid=86250&crosstable=1&kpage=44|accessdate=9 April 2020}} |class_rules={{cite web|title=Tie Break Regulations Grand Chess Tour |url=https://grandchesstour.org/tie-break-regulations|accessdate=9 April 2020}} |title=3rd Sinquefield Cup, 22 August – 3 September 2015, [[St. Louis]], [[Missouri]], [[United States]] |postitle=Rank |hide_played=yes |show_rating=yes |rate_date=Aug. 2015{{refn|group=lower-alpha|https://grandchesstour.org/2015-sinquefield-cup/overview}} |hth_before_w=no |show_sb=yes |extra_cols=2 |extra_header1={{Abbr|[[Glossary of chess#performance rating|TPR]]|Tournament performance rating}} |extra_header2=[[Grand Chess Tour|Tour Points]] |show_matches=true |solid_cell=silver |update=complete |result1=WIN |col_WIN=green1 |team1=ARO |team2=MC |team3=NAK |team4=MVL |team5=GIR |team6=GRI |team7=TOP |team8=FC |team9=ANA |team10=WSO |name_ARO={{flagathlete|[[Levon Aronian]]|ARM}} |short_ARO={{Abbr|LA|Levon Aronian}} |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |short_MC={{Abbr|MC|Magnus Carlsen}} |name_NAK={{flagathlete|[[Hikaru Nakamura]]|USA}} |short_NAK={{Abbr|HN|Hikaru Nakamura}} |name_MVL={{flagathlete|[[Maxime Vachier-Lagrave]]|FRA}} |short_MVL={{Abbr|MVL|Maxime Vachier-Lagrave}} |name_GIR={{flagathlete|[[Anish Giri]]|NED}} |short_GIR={{Abbr|Giri|Anish Giri}} |name_GRI={{flagathlete|[[Alexander Grischuk]]|RUS}} |short_GRI={{Abbr|AG|Alexander Grischuk}} |name_TOP={{flagathlete|[[Veselin Topalov]]|BUL}} |short_TOP={{Abbr|VT|Veselin Topalov}} |name_FC={{flagathlete|[[Fabiano Caruana]]|USA}} |short_FC={{Abbr|FC|Fabiano Caruana}} |name_ANA={{flagathlete|[[Viswanathan Anand]]|IND}} |short_ANA={{Abbr|VA|Viswanathan Anand}} |name_WSO={{flagathlete|[[Wesley So]]|USA}} |short_WSO={{Abbr|WS|Wesley So}} |rating_ARO=2765 |extra1_ARO=2923 |extra2_ARO=13 |rating_MC=2853 |extra1_MC=2831 |extra2_MC=10 |rating_NAK=2814 |extra1_NAK=2835 |extra2_NAK=8 |rating_MVL=2731 |extra1_MVL=2845 |extra2_MVL=7 |rating_GIR=2793 |extra1_GIR=2838 |extra2_GIR=6 |rating_GRI=2771 |extra1_GRI=2797 |extra2_GRI=5 |rating_TOP=2816 |extra1_TOP=2792 |extra2_TOP=4 |rating_FC=2808 |extra1_FC=2713 |extra2_FC=3 |rating_ANA=2816 |extra1_ANA=2712 |extra2_ANA=2 |rating_WSO=2779 |extra1_WSO=2671 |extra2_WSO=1 |matchrow_ARO= —,½,1,½,½,½,½,1,½,1 |matchrow_MC= ½,—,½,1,½,0,0,1,½,1 |hth_MC=½ |matchrow_NAK= 0,½,—,½,½,1,0,½,1,1 |hth_NAK=½ |matchrow_MVL= ½,0,½,—,½,½,1,½,½,1 |matchrow_GIR= ½,½,½,½,—,1,½,½,½,½ |matchrow_GRI= ½,1,0,½,0,—,½,1,1,0 |matchrow_TOP= ½,1,1,0,½,½,—,0,½,½ |matchrow_FC= 0,0,½,½,½,0,1,—,½,½ |matchrow_ANA= ½,½,0,½,½,0,½,½,—,½ |matchrow_WSO= 0,0,0,0,½,1,½,½,½,— }} {{reflist|group=lower-alpha}}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Sinquefield Cup 2015 |url=https://www.chessgames.com/perl/chess.pl?tid=86250&crosstable=1&kpage=44|accessdate=9 April 2020}} |class_rules={{cite web|title=Tie Break Regulations Grand Chess Tour |url=https://grandchesstour.org/tie-break-regulations|accessdate=9 April 2020}} |title=3rd Sinquefield Cup, 22 August – 3 September 2015, [[St. Louis]], [[Missouri]], [[United States]] |postitle=Rank |hide_played=yes |show_rating=yes |rate_date=Aug. 2015{{refn|group=lower-alpha|https://grandchesstour.org/2015-sinquefield-cup/overview}} |hth_before_w=no |show_sb=yes |extra_cols=2 |extra_header1={{Abbr|[[Glossary of chess#performance rating|TPR]]|Tournament performance rating}} |extra_header2=[[Grand Chess Tour|Tour Points]] |show_matches=true |solid_cell=silver |update=complete |result1=WIN |col_WIN=green1 |team1=ARO |team2=MC |team3=NAK |team4=MVL |team5=GIR |team6=GRI |team7=TOP |team8=FC |team9=ANA |team10=WSO |name_ARO={{flagathlete|[[Levon Aronian]]|ARM}} |short_ARO={{Abbr|LA|Levon Aronian}} |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |short_MC={{Abbr|MC|Magnus Carlsen}} |name_NAK={{flagathlete|[[Hikaru Nakamura]]|USA}} |short_NAK={{Abbr|HN|Hikaru Nakamura}} |name_MVL={{flagathlete|[[Maxime Vachier-Lagrave]]|FRA}} |short_MVL={{Abbr|MVL|Maxime Vachier-Lagrave}} |name_GIR={{flagathlete|[[Anish Giri]]|NED}} |short_GIR={{Abbr|Giri|Anish Giri}} |name_GRI={{flagathlete|[[Alexander Grischuk]]|RUS}} |short_GRI={{Abbr|AG|Alexander Grischuk}} |name_TOP={{flagathlete|[[Veselin Topalov]]|BUL}} |short_TOP={{Abbr|VT|Veselin Topalov}} |name_FC={{flagathlete|[[Fabiano Caruana]]|USA}} |short_FC={{Abbr|FC|Fabiano Caruana}} |name_ANA={{flagathlete|[[Viswanathan Anand]]|IND}} |short_ANA={{Abbr|VA|Viswanathan Anand}} |name_WSO={{flagathlete|[[Wesley So]]|USA}} |short_WSO={{Abbr|WS|Wesley So}} |rating_ARO=2765 |extra1_ARO=2923 |extra2_ARO=13 |rating_MC=2853 |extra1_MC=2831 |extra2_MC=10 |rating_NAK=2814 |extra1_NAK=2835 |extra2_NAK=8 |rating_MVL=2731 |extra1_MVL=2845 |extra2_MVL=7 |rating_GIR=2793 |extra1_GIR=2838 |extra2_GIR=6 |rating_GRI=2771 |extra1_GRI=2797 |extra2_GRI=5 |rating_TOP=2816 |extra1_TOP=2792 |extra2_TOP=4 |rating_FC=2808 |extra1_FC=2713 |extra2_FC=3 |rating_ANA=2816 |extra1_ANA=2712 |extra2_ANA=2 |rating_WSO=2779 |extra1_WSO=2671 |extra2_WSO=1 |matchrow_ARO= —,½,1,½,½,½,½,1,½,1 |matchrow_MC= ½,—,½,1,½,0,0,1,½,1 |hth_MC=½ |matchrow_NAK= 0,½,—,½,½,1,0,½,1,1 |hth_NAK=½ |matchrow_MVL= ½,0,½,—,½,½,1,½,½,1 |matchrow_GIR= ½,½,½,½,—,1,½,½,½,½ |matchrow_GRI= ½,1,0,½,0,—,½,1,1,0 |matchrow_TOP= ½,1,1,0,½,½,—,0,½,½ |matchrow_FC= 0,0,½,½,½,0,1,—,½,½ |matchrow_ANA= ½,½,0,½,½,0,½,½,—,½ |matchrow_WSO= 0,0,0,0,½,1,½,½,½,— }} {{reflist|group=lower-alpha}} |} If the {{para|show_rating}} parameter is set to yes, then a column is shown immediately after the player names with values defined by {{para|rating_XXX}} for each team code XXX. Similarly, if the {{para|extra_cols}} parameter is set to some number N, then N columns are shown just before the crosstable, if one is present, with values defined by {{para|extraN_XXX}} for each column N and each team code XXX. The header of any extra column may be set using {{para|extra_headerN}} for each N. The header of the rating column also includes some information that may be chosen by a parameter. The contents of the {{para|rate_date}} parameter will be displayed in small text below the word "Rating" in the header. Note that it is possible to include the <nowiki>{{refn}}</nowiki> template inside any of these custom headers. Because all other notes in this module use the "lower-alpha" group, it is recommended that any use of <nowiki>{{refn}}</nowiki> in a parameter in this module also use the "lower-alpha" group. If any notes are generated by the module, then a <nowiki>{{reflist|group=lower-alpha}}</nowiki> template will also be generated at the end of the module. However, if no notes are generated by the module, then you will have to call this yourself as shown at the end of the example. There is no detriment to calling this twice, so it is a good idea to include this template yourself whenever you call <nowiki>{{refn}}</nowiki> in a parameter. For more information on notes in this module, see [[#Notes]]. For information on using {{para|matchrow_XXX}} instead of {{para|match_XXX_YYY}} see [[#Matchrow]]. For information on {{para|source}}, {{para|class_rules}}, and {{para|update}} used in this table, see [[#Footer options]].
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)