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!
===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]].
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)