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!
== Usage == ===Basic usage=== In its simplest form only several parameters need to be used to build a table. {| 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}} }}</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}} }} |} The main command is the <nowiki>{{#invoke:Sports table|main|style=Chess}}</nowiki> statement which calls the module with the Chess style 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> as the team codes if you want, but using short codes (as in the example) can make it easier. For each team, you now define the {{para|name_TTT}} parameters (with TTT replaced by the team code) which determine what name is shown in the table; you can use wiki markup and templates in here as well, as shown in the example. The points and wins will default to 0 if no match data is provided. See [[#Points]] to see how to provide this data. See [[#Footer options]] and [[#Dating]] to see how to change the source and update date. ===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. ===Crosstable=== Because the match data already needs to be provided for use with this style, very little additional data is needed to create the crosstables. {| 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 |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 |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 |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 {{para|show_matches}} parameter determines whether the crosstable is shown, and defaults to no. In the crosstable, the values given by {{para|match_XXX_YYY}} are shown. The headers for the columns are given by {{para|short_XXX}}. If no value for {{para|short_XXX}} is given, then one is created automatically from the team code, with appropriate wikilinks and <nowiki>{{flagathlete}}</nowiki> data included. It is recommended to set the value of {{para|short_XXX}} using the <nowiki>{{Abbr}}</nowiki> template with a short abbreviation (possibly the player's initials) to appear in header of the columns of the crosstable. ====Customizing the crosstable==== There are a few parameters that can be used to customize crosstables. {| 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}} |show_matches=yes |crosstable_fractions=yes |short_style=noflag |solid_cell=silver |match_AAA_BBB=1+0+½+½ |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=2 |match_BBB_AAA=1+0+½+½ |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=2 |match_CCC_AAA=0+½ |bgcol_CCC_AAA=B+W |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+ |bgcol_CAR_AAA=W+W+W+W+W+W+W+W+W |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 |short_CCC={{Abbr|3|Team 3}} |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |show_matches=yes |crosstable_fractions=yes |short_style=noflag |solid_cell=silver |match_AAA_BBB=1+0+½+½ |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=2 |match_BBB_AAA=1+0+½+½ |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=2 |match_CCC_AAA=0+½ |bgcol_CCC_AAA=B+W |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+ |bgcol_CAR_AAA=W+W+W+W+W+W+W+W+W |match_CAR_BBB= +½ }} |} {| 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}} |show_matches=yes |use_pos_short=yes |short_style=nocountry |colorbg=no |solid_cell=silver |match_AAA_BBB=1+0+½+½ |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=2 |match_BBB_AAA=1+0+½+½ |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=2 |match_CCC_AAA=0+½ |bgcol_CCC_AAA=B+W |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+ |bgcol_CAR_AAA=W+W+W+W+W+W+W+W+W |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 |short_CCC={{Abbr|3|Team 3}} |name_DDD=Team 4 |name_CAR={{flagathlete|[[Fabiano Caruana]]|USA}} |show_matches=yes |use_pos_short=yes |short_style=nocountry |colorbg=no |solid_cell=silver |match_AAA_BBB=1+0+½+½ |match_AAA_CCC=1+½ |match_AAA_DDD=½+ |match_AAA_CAR= +0 |hth_AAA=2 |match_BBB_AAA=1+0+½+½ |match_BBB_CCC=½+½ |match_BBB_DDD=½+0 |match_BBB_CAR=½ |hth_BBB=2 |match_CCC_AAA=0+½ |bgcol_CCC_AAA=B+W |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+ |bgcol_CAR_AAA=W+W+W+W+W+W+W+W+W |match_CAR_BBB= +½ }} |} As shown in this example, no parameter is needed to determine the number of games per match. This is calculated automatically from the largest number of plus signs in the match data. If the {{para|use_pos_short}} parameter is set to "yes", then the automatically generated short name is generated from the position in the table rather than the team code. In the previous example, when no {{para|short_XXX}} parameter was given for a team whose {{para|name_XXX}} contained a <nowiki>{{flagathlete}}</nowiki> template, a short column header was created containing the appropriate flag. However, when {{para|short_style}} is set to "noflag", then no flag is displayed in the automatically created header. If instead {{para|short_style}} is set to "nocountry", then no country code is displayed in the automatically created header as well as no flag. Column headers explicitly defined by {{para|short_XXX}} are not affected by {{para|use_pos_short}} or {{para|short_style}}. If the parameter {{para|crosstable_fractions}} is set to yes, then draws in the crosstable will be displayed as {{frac|1|2}} instead of using the unicode character ½. While the games in a match typically show the white background first, and the black background second, this behavior can be changed using the {{para|bgcol_XXX_YYY}} parameter. When no {{para|bgcol_XXX_YYY}} data is present, the background alternates between white and black for each successive game. If the {{para|colorbg}} parameter is set to no, then no cells in the crosstable will be colored black, even if there is {{para|bgcol_XXX_YYY}} data present. The {{para|solid_cell}} parameter determines the color of the cells of the crosstable's main diagonal. Currently, {{para|solid_cell}} may take on the values "gray", "grey", "lightgray", "lightgrey", or "silver", as well as "#xxx" or "#xxxxxx" where the x indicates a valid [[hexadecimal]] digit. If no value or an invalid value is given, then the entries on the main diagonal will display an [[Em dash]] in a cell with the table background color. ===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]]. ===Special case for only two players=== When there are only two players, the module enters a special case. The data for the following table comes from the [[2014 World Chess Championship]]. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Anand vs Carlsen, 2014 |url=https://www.chessgames.com/perl/chess.pl?tid=84885|accessdate=9 April 2020}} |update=complete |title=World Chess Championship 2014 |show_positions=no |hide_played=yes |only_pld_pts=yes |show_matches=yes |team1=MC |team2=VA |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |name_VA={{flagathlete|[[Viswanathan Anand]]|India}} |match_MC_VA=½+1+0+½+½+1+½+½+½+½+1+— |bgcol_MC_VA=B+W+B+W+B+W+W+B+W+B+W+B |match_VA_MC=½+0+1+½+½+0+½+½+½+½+0+— |bgcol_VA_MC=W+B+W+B+W+B+B+W+B+W+B+W |game1_header=<small>[http://www.chessbomb.com/arena/2014-wcc/01-Anand_Viswanathan-Carlsen_Magnus Game 1]<br />8 Nov.</small> |game2_header=<small>[http://www.chessbomb.com/arena/2014-wcc/02-Carlsen_Magnus-Anand_Viswanathan Game 2]<br />9 Nov.</small> |game3_header=<small>[http://www.chessbomb.com/arena/2014-wcc/03-Anand_Viswanathan-Carlsen_Magnus Game 3]<br />11 Nov.</small> |game4_header=<small>[http://www.chessbomb.com/arena/2014-wcc/04-Carlsen_Magnus-Anand_Viswanathan Game 4]<br />12 Nov.</small> |game5_header=<small>[http://www.chessbomb.com/arena/2014-wcc/05-Anand_Viswanathan-Carlsen_Magnus Game 5]<br />14 Nov.</small> |game6_header=<small>[http://www.chessbomb.com/arena/2014-wcc/06-Carlsen_Magnus-Anand_Viswanathan Game 6]<br />15 Nov.</small> |game7_header=<small>[http://www.chessbomb.com/arena/2014-wcc/07-Carlsen_Magnus-Anand_Viswanathan Game 7]<br />17 Nov.</small> |game8_header=<small>[http://www.chessbomb.com/arena/2014-wcc/08-Anand_Viswanathan-Carlsen_Magnus Game 8]<br />18 Nov.</small> |game9_header=<small>[http://www.chessbomb.com/arena/2014-wcc/09-Carlsen_Magnus-Anand_Viswanathan Game 9]<br />20 Nov.</small> |game10_header=<small>[http://www.chessbomb.com/arena/2014-wcc/10-Anand_Viswanathan-Carlsen_Magnus Game 10]<br />21 Nov.</small> |game11_header=<small>[http://www.chessbomb.com/arena/2014-wcc/11-Carlsen_Magnus-Anand_Viswanathan Game 11]<br />23 Nov.</small> |game12_header=<small>Game 12<br />25 Nov.</small> }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Anand vs Carlsen, 2014 |url=https://www.chessgames.com/perl/chess.pl?tid=84885|accessdate=9 April 2020}} |update=complete |title=World Chess Championship 2014 |show_positions=no |hide_played=yes |only_pld_pts=yes |show_matches=yes |team1=MC |team2=VA |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |name_VA={{flagathlete|[[Viswanathan Anand]]|India}} |match_MC_VA=½+1+0+½+½+1+½+½+½+½+1+— |bgcol_MC_VA=B+W+B+W+B+W+W+B+W+B+W+B |match_VA_MC=½+0+1+½+½+0+½+½+½+½+0+— |bgcol_VA_MC=W+B+W+B+W+B+B+W+B+W+B+W |game1_header=<small>[http://www.chessbomb.com/arena/2014-wcc/01-Anand_Viswanathan-Carlsen_Magnus Game 1]<br />8 Nov.</small> |game2_header=<small>[http://www.chessbomb.com/arena/2014-wcc/02-Carlsen_Magnus-Anand_Viswanathan Game 2]<br />9 Nov.</small> |game3_header=<small>[http://www.chessbomb.com/arena/2014-wcc/03-Anand_Viswanathan-Carlsen_Magnus Game 3]<br />11 Nov.</small> |game4_header=<small>[http://www.chessbomb.com/arena/2014-wcc/04-Carlsen_Magnus-Anand_Viswanathan Game 4]<br />12 Nov.</small> |game5_header=<small>[http://www.chessbomb.com/arena/2014-wcc/05-Anand_Viswanathan-Carlsen_Magnus Game 5]<br />14 Nov.</small> |game6_header=<small>[http://www.chessbomb.com/arena/2014-wcc/06-Carlsen_Magnus-Anand_Viswanathan Game 6]<br />15 Nov.</small> |game7_header=<small>[http://www.chessbomb.com/arena/2014-wcc/07-Carlsen_Magnus-Anand_Viswanathan Game 7]<br />17 Nov.</small> |game8_header=<small>[http://www.chessbomb.com/arena/2014-wcc/08-Anand_Viswanathan-Carlsen_Magnus Game 8]<br />18 Nov.</small> |game9_header=<small>[http://www.chessbomb.com/arena/2014-wcc/09-Carlsen_Magnus-Anand_Viswanathan Game 9]<br />20 Nov.</small> |game10_header=<small>[http://www.chessbomb.com/arena/2014-wcc/10-Anand_Viswanathan-Carlsen_Magnus Game 10]<br />21 Nov.</small> |game11_header=<small>[http://www.chessbomb.com/arena/2014-wcc/11-Carlsen_Magnus-Anand_Viswanathan Game 11]<br />23 Nov.</small> |game12_header=<small>Game 12<br />25 Nov.</small> }} |} As can be seen from this example, the crosstable now displays a column header for each game in the match, instead of the normally displayed column header for each player. As such, there is no longer a main diagonal of NULL matches. Also, if {{para|short_XXX}} were defined, its value would never be used. Instead, headers in the match table are determined by the {{para|gameN_header}} parameter for each number N corresponding to a game. The default value for this parameter is the number specified by N. It is highly recommended to use {{para|bgcol_XXX_YYY}} in two player tables, so that each column can represent a distinct game, in the order that they are played. It is also recommended that the H2H, Wins, and played columns be hidden in a two player table, because this information is easily discerned from the points. For information on the {{para|source}} and {{para|update}} parameters used in this table, see [[#Footer options]]. ===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. ===Tiebreak matches=== In many tournaments, if there is a tiebreak between the top players, additional tiebreak games are played. This module is able to handle these tiebreak games. The data for the following table comes from the [[2018 World Chess Championship]]. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Chess |source={{cite web|title=World Chess Championship 2018: Carlsen vs Caruana |url=https://www.chess.com/article/view/world-chess-championship-2018-carlsen-caruana|accessdate=9 April 2020}} |class_rules={{cite web|title=RULES & REGULATIONS FOR THE FIDE WORLD CHAMPIONSHIP MATCH |url=https://www.fide.com/FIDE/handbook/regulations_match_2018.pdf|accessdate=9 April 2020}} |update=complete |title=World Chess Championship 2018 |show_positions=no |show_hth=no |show_win=no |hide_played=yes |show_matches=yes |team1=MC |team2=FC |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |name_FC={{flagathlete|[[Fabiano Caruana]]|USA}} |match_MC_FC=½+½+½+½+½+½+½+½+½+½+½+½ |bgcol_MC_FC=B+W+B+W+B+W+W+B+W+B+W+B |match_FC_MC=½+½+½+½+½+½+½+½+½+½+½+½ |bgcol_FC_MC=W+B+W+B+W+B+B+W+B+W+B+W |tb_numplayers=2 |extra_cols=1 |extra_header1=[[rapid chess|Rapid]] |tbmatch_MC_FC=1+1+1 |extra1_MC=3 |tbmatch_FC_MC=0+0+0 |extra1_FC=0 |tbbgcol_FC_MC=B+W+B }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Chess |source={{cite web|title=World Chess Championship 2018: Carlsen vs Caruana |url=https://www.chess.com/article/view/world-chess-championship-2018-carlsen-caruana|accessdate=9 April 2020}} |class_rules={{cite web|title=RULES & REGULATIONS FOR THE FIDE WORLD CHAMPIONSHIP MATCH |url=https://www.fide.com/FIDE/handbook/regulations_match_2018.pdf|accessdate=9 April 2020}} |update=complete |title=World Chess Championship 2018 |show_positions=no |show_hth=no |show_win=no |hide_played=yes |show_matches=yes |team1=MC |team2=FC |name_MC={{flagathlete|[[Magnus Carlsen]]|Norway}} |name_FC={{flagathlete|[[Fabiano Caruana]]|USA}} |match_MC_FC=½+½+½+½+½+½+½+½+½+½+½+½ |bgcol_MC_FC=B+W+B+W+B+W+W+B+W+B+W+B |match_FC_MC=½+½+½+½+½+½+½+½+½+½+½+½ |bgcol_FC_MC=W+B+W+B+W+B+B+W+B+W+B+W |tb_numplayers=2 |extra_cols=1 |extra_header1=[[rapid chess|Rapid]] |tbmatch_MC_FC=1+1+1 |extra1_MC=3 |tbmatch_FC_MC=0+0+0 |extra1_FC=0 |tbbgcol_FC_MC=B+W+B }} |} The data for the following table comes from the [[Tata_Steel_Chess_Tournament#2018_2|Tata Steel Chess India Blitz tournament in 2018]]. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Tata Steel India Chess 2018_Blitz |url=http://chess-results.com/tnr391775.aspx?lan=1&art=2&flag=30|accessdate=9 April 2020}} |class_rules={{cite web|title=Tata Steel India Chess 2018_Blitz |url=http://chess-results.com/tnr391775.aspx?lan=1&art=4&flag=30|accessdate=9 April 2020}} |postitle=Rank |hide_played=yes |show_win=no |show_sb=yes |sb_iff_hth=yes |extra_cols=1 |extra_header1=Playoff |short_style=nocountry |show_matches=true |solid_cell=silver |disp_fractions=no |update=complete |result1=WIN |col_WIN=green1 |team1=VA |team2=HN |team3=LA |team4=WS |team5=SM |team6=PH |team7=VSG |team8=SK |team9=SSG |team10=PR |name_VA={{flagathlete|[[Viswanathan Anand]]|IND}} |name_HN={{flagathlete|[[Hikaru Nakamura]]|USA}} |name_LA={{flagathlete|[[Levon Aronian]]|ARM}} |name_WS={{flagathlete|[[Wesley So]]|USA}} |name_SM={{flagathlete|[[Shakhriyar Mamedyarov]]|AZE}} |name_PH={{flagathlete|[[Pentala Harikrishna]]|IND}} |name_VSG={{flagathlete|[[Vidit Santosh Gujrathi]]|IND}} |name_SK={{flagathlete|[[Sergey Karjakin]]|RUS}} |name_SSG={{flagathlete|[[Surya Shekhar Ganguly]]|IND}} |name_PR={{flagathlete|[[Praggnanandhaa Rameshbabu]]|IND}} |matchrow_VA= ———,½+½,0+½,1+½,½+1,1+½,1+1,½+0,1+1,1+1 |extra1_VA=1.5 |matchrow_HN= ½+½,———,½+½,1+½,1+1,1+0,½+1,½+1,1+1,½+½ |extra1_HN=0.5 |matchrow_LA= ½+1,½+½,———,½+½,1+½,1+0,½+1,1+½,½+½,1+1 |matchrow_WS= ½+0,½+0,½+½,———,1+1,1+0,½+½,½+1,1+0,½+1 |matchrow_SM= 0+½,0+0,½+0,0+0,———,½+½,1+1,½+½,0+1,1+1 |hth_SM=3 |nosb_SM=yes |matchrow_PH= ½+0,1+0,1+0,1+0,½+½,———,0+½,0+½,1+0,1+½ |hth_PH=1.5 |matchrow_VSG= 0+0,0+½,0+½,½+½,0+0,½+1,———,½+1,½+1,½+1 |hth_VSG=1.5 |matchrow_SK= 1+½,0+½,½+0,0+½,½+½,½+1,0+½,———,½+0,0+1 |matchrow_SSG= 0+0,0+0,½+½,1+0,0+1,1+0,0+½,1+½,———,0+0 |matchrow_PR= 0+0,½+½,0+0,0+½,0+0,½+0,0+½,0+1,1+1,——— |tb_numplayers=2 |tbmatch_VA_HN=1+½ |tbmatch_HN_VA=0+½ |tbbgcol_HN_VA=B+W }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Chess |source={{cite web|title=Tata Steel India Chess 2018_Blitz |url=http://chess-results.com/tnr391775.aspx?lan=1&art=2&flag=30|accessdate=9 April 2020}} |class_rules={{cite web|title=Tata Steel India Chess 2018_Blitz |url=http://chess-results.com/tnr391775.aspx?lan=1&art=4&flag=30|accessdate=9 April 2020}} |postitle=Rank |hide_played=yes |show_win=no |show_sb=yes |sb_iff_hth=yes |extra_cols=1 |extra_header1=Playoff |short_style=nocountry |show_matches=true |solid_cell=silver |disp_fractions=no |update=complete |result1=WIN |col_WIN=green1 |team1=VA |team2=HN |team3=LA |team4=WS |team5=SM |team6=PH |team7=VSG |team8=SK |team9=SSG |team10=PR |name_VA={{flagathlete|[[Viswanathan Anand]]|IND}} |name_HN={{flagathlete|[[Hikaru Nakamura]]|USA}} |name_LA={{flagathlete|[[Levon Aronian]]|ARM}} |name_WS={{flagathlete|[[Wesley So]]|USA}} |name_SM={{flagathlete|[[Shakhriyar Mamedyarov]]|AZE}} |name_PH={{flagathlete|[[Pentala Harikrishna]]|IND}} |name_VSG={{flagathlete|[[Vidit Santosh Gujrathi]]|IND}} |name_SK={{flagathlete|[[Sergey Karjakin]]|RUS}} |name_SSG={{flagathlete|[[Surya Shekhar Ganguly]]|IND}} |name_PR={{flagathlete|[[Praggnanandhaa Rameshbabu]]|IND}} |matchrow_VA= ———,½+½,0+½,1+½,½+1,1+½,1+1,½+0,1+1,1+1 |extra1_VA=1.5 |matchrow_HN= ½+½,———,½+½,1+½,1+1,1+0,½+1,½+1,1+1,½+½ |extra1_HN=0.5 |matchrow_LA= ½+1,½+½,———,½+½,1+½,1+0,½+1,1+½,½+½,1+1 |matchrow_WS= ½+0,½+0,½+½,———,1+1,1+0,½+½,½+1,1+0,½+1 |matchrow_SM= 0+½,0+0,½+0,0+0,———,½+½,1+1,½+½,0+1,1+1 |hth_SM=3 |nosb_SM=yes |matchrow_PH= ½+0,1+0,1+0,1+0,½+½,———,0+½,0+½,1+0,1+½ |hth_PH=1.5 |matchrow_VSG= 0+0,0+½,0+½,½+½,0+0,½+1,———,½+1,½+1,½+1 |hth_VSG=1.5 |matchrow_SK= 1+½,0+½,½+0,0+½,½+½,½+1,0+½,———,½+0,0+1 |matchrow_SSG= 0+0,0+0,½+½,1+0,0+1,1+0,0+½,1+½,———,0+0 |matchrow_PR= 0+0,½+½,0+0,0+½,0+0,½+0,0+½,0+1,1+1,——— |tb_numplayers=2 |tbmatch_VA_HN=1+½ |tbmatch_HN_VA=0+½ |tbbgcol_HN_VA=B+W }} |} If {{para|tb_numplayers}} is a number greater than 1, then a second crosstable will be displayed which may be used for tiebreak match data. The {{para|tb_numplayers}} parameter determines how many players are involved in the tiebreak matches. Note that tiebreak matches only apply to the players at the top of the table. For tiebreak match data, the parameters {{para|tbmatch_XXX_YYY}}, {{para|tbbgcol_XXX_YYY}}, {{para|tbmatchrow_XXX}}, and {{para|tbbgcolrow_XXX}} are used in place of {{para|match_XXX_YYY}}, {{para|bgcol_XXX_YYY}}, {{para|matchrow_XXX}}, and {{para|bgcolrow_XXX}}, respectively. The second crosstable is then displayed following the same rules as the first crosstable. Note that no information on wins or points is automatically calculated from tiebreak match data. For information on the {{para|source}}, {{para|class_rules}}, and {{para|update}} parameters used in these tables, see [[#Footer options]]. ===Generic Customization=== There are many customization options that are available regardless of which style is used in [[Module:Sports table]]. These are presented below. {{Module:Sports table/styledoc|style_option=Chess}} Note that match notes do not show up properly at this time when the number of games per match is not 1. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Sports modules]] }}</includeonly>
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)