Template talk:Chess diagram

From Wikipedia, the free encyclopedia

This article is within the scope of WikiProject Chess, a collaborative effort to improve Wikipedia's coverage of chess. For more information, visit the project page, where you can join the project and/or contribute to the discussion.
Template This article has been rated as template-Class on the quality scale.
NA This article has been rated as NA-Importance on the importance scale.

Standard chess diagram template is a result of discussions and votings which took place in meta:WikiProject Chess. It is based on Template: chess position widely used in English Wikipedia. Both the template and the images of pieces were modified.

On this page I am going to place description of further modifications (if any). Please post your comments or questions in WikiProject Chess on Meta-Wiki. --Klin 21:50, 7 August 2005 (UTC)

Syntax & examples moved to template:Chess diagram/doc.

Contents

[edit] Questions

[edit] How to use special symbols

How can I use symbol '=' in the caption? When I tried to use it directly, I see sjust something like "{ { 65 } }". I need this for GBR code. The caption should say in fact "GBR code of this study: =0323.12g3g1". Andreas Kaufmann 21:54, 9 August 2005 (UTC)

You can use <nowiki>=</nowiki> in the bottom caption. I'm not sure why it's necessary, but at least it works. Anyway, I updated the article to fix the problem. — Bcat (talkemail) 22:11, 9 August 2005 (UTC)

[edit] Use of template on another Wiki

Can I use this template on another wiki, by chance? Or no? I thought I'd ask first. -- Zalethon (Talk) 00:52, 19 December 2006 (UTC)

The template is under GFDL. You can use it, but need to put texts, which use the template, under GFDL as well. Andreas Kaufmann 14:06, 21 December 2006 (UTC)
Could you point me in the right direction for instructions on how to grab the template to install on another wiki? Oayfer 18:48, 8 February 2007 (UTC)

First you need to make sure that another Wiki is running on the same version of MediaWiki software as Wikipedia does (some older version might work as well). Then you need to copy the template:

  • Start article "Template:Chess diagram" in your Wiki
  • Switch to "template" on top of this page, do "edit this page", copy and paste the template text to "Template:Chess diagram" in your Wiki. Then you also need to download all chess pieces images and upload to your Wiki. Andreas Kaufmann 20:05, 8 February 2007 (UTC)

[edit] featured discussion / featured template

Was thinking, this template is a prime example of community colloboration to achieve an ingenious and pragmatic solution to a significant problem. Well, we do have featured articles, and featured pictures, but I was wondering, is there such thing as featured discussions or featured templates? Anyhow, it's been a long road since April 2004 since this was thought up, with a myriad of harmonic contributions from many Wikipedians to the entire template, lots of discovery and evolution of it since then, from the template itself, to different implementations of it (such as Template:Game of Go Position and Template:Xiangqi position which is under development mainly for the images), and then, across different languages. I would like to thank you all, for making this possible. Hurrah! :-) -- Natalinasmpf 07:15, 24 August 2005 (UTC)

[edit] Tools

FEN2Wikipedia converts FEN data (that you create directly or via a chess program) into the "Chess diagram" format.

[edit] use of Template:switch and Template:if

I was thinking, we can eliminate the need for separate templates for different boards totally if we could use the templates if and switch. We could even have the template switch boards at will:

Ie. we have another parameter, ie. "board=", that if not filled in will result in the default, if filled in, be casablanca, etc. We could even have it reversed (for each type), ie. it could be put in "perspective=" be "black" or "white", and would be the same template structure, just that the 64th parameter is now at the 8th, 32nd at the 31st, for a mirror image. However, if and case is very esoteric, so I need assistance with this. Any ideas? I also hope to introduce this for Template:Game of Go Position and Template:Xiangqi position (when it is completed). -- Natalinasmpf 18:09, 4 December 2005 (UTC)

I think we need something like for here to eliminate much of duplicate code. Is something like this possible in templates? Andreas Kaufmann 19:21, 4 December 2005 (UTC)
I don't think so - yet..."for" would require use of variables which can change - "if" simply uses parameters, which doesn't change as long as the argument to the template remains the same. A new wiki function should really make it easier to program templates. -- Natalinasmpf 21:55, 4 December 2005 (UTC)
We may iterate chess diagrams for switching background colours. I dont know if the foreach/for can read board sizes variables but if it works, we may use a for field iterator that recursively switches background colours. A switch that recursively changes them is already good enough - or what about a field that bypasses them? The next problem would be the variable counting. I have an idea that could make recursive calls quite nice...
Pseudocode:

Board diagram:
{{{chessfield_black|{{{size}}}|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|...}}}
{{{chessfield_white|{{{size}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|...}}}

switch {{{boardsize}}} is greater than 2, do the same as above
...

template:chessfield_black:
{{{stone|{{{1}}}black|{{{size}}}}}}
switch {{{2}}} is neither empty nor unset, call chessfield_white with similar parameters to above

template:chessfield_white:
{{{stone|{{{1}}}white|{{{size}}}}}}
switch {{{2}}} is neither empty nor unset, call chessfield_black with similar parameters to above

template:stone:
just draw a table cell containing the stone with the specified background colour

Well, we still have a problem with counting, any ideas?
Got it! Ever thought of how powerful #sub might be? What if we use variables for each line and use the recursive algorythm as from above?
Pseudocode:

Board diagram:
{{chessline_firstblack|{{{pixels}}}|{{{1}}}}}
{{chessline_firstwhite|{{{pixels}}}|{{{2}}}}}
#switch {{{boardsize}}} is greater than 2, iterate as shown above...

template:chessline_firstblack:
{{chessfield_black|{{{1}}}|{{{#sub|{{{2}}}|0|2}}}|{{{#sub|{{{2}}}|2}}}}}
//          steal first two characters and append the trail
1 is size 2 is trailing stones

template:chessfield_black
{{stone|{{{1}}}|{{{2}}}black}}
1 is size 2 is piece identifer
#switch {{{3}}} is not empty, call chessfield_white template as shown above
3 is trailing stones
Note that we can now also use similar systems for working with abcdefgh and 12345678 :) please leave comments!
--Lazer erazer 18:58, 17 October 2006 (UTC)
I was also getting annoyed with the multiple templates for multiple sizes and never being able to find the one you needed. From this, i made some javascript to render add different types of chess templates off of many types of input. You should check it out, the use and ability has been documented on my talk page. let me know what you think MatthewYeager 17:00, 11 October 2007 (UTC)

[edit] PNG -> SVG

I posted an RFC at meta:Talk:WikiProject Chess and Wikipedia talk:WikiProject Chess. Please feel free to comment.

Image:chess zhor 26.png
Image:chess zver 26.png a8 rd b8 nd c8 bd d8 qd e8 kd f8 bd g8 nd h8 rd Image:chess zver 26.png
a7 pd b7 pd c7 pd d7 pd e7 pd f7 pd g7 pd h7 pd
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 pl b2 pl c2 pl d2 pl e2 pl f2 pl g2 pl h2 pl
a1 rl b1 nl c1 bl d1 ql e1 kl f1 bl g1 nl h1 rl
Image:chess zhor 26.png
PNG using {{Chess diagram}}
Image:chess_zhor_26.png
Image:chess_zver_26.png
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess_zver_26.png
Image:chess_zhor_26.png
SVG using {{Chess diagram/temp}}

Cburnett 04:05, 2 January 2007 (UTC)

the white horse is missing... --Lazer erazer 11:51, 4 February 2007 (UTC)

[edit] Any idea why this template doesn't work for me on another MediaWiki site?

I've copied across the Chess diagram template to a wiki on editthis.info. And I believe I've copied across the individual piece and square images.

Yet when I display the template, none of these images show up. Instead almost the entire screen is consumed by an orange block containing image ... instructions in each cell of the table. Thegn 11:34, 22 February 2007 (UTC)

Hm, images seems to be missing (see http://editthis.info/wiki/Template_talk:Chess_diagram) Are you sure that you uploaded images to the correct place? Andreas Kaufmann 19:15, 23 February 2007 (UTC)
Andreas, thanks for looking into this. Actually the wiki is at http://editthis.info/chess/Template:Chess_diagram . I believe I've copied across all the images, but I could be wrong. Thegn 22:38, 23 February 2007 (UTC)
Can you paste this code
 {{Chess diagram
 | tright
 | 
 |= 
 8 |rd|nd|bd|qd|kd|bd|nd|rd|=
 7 |pd|pd|pd|pd|  |pd|pd|pd|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |pd|  |  |  |=
 4 |  |  |  |  |pl|pl|  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |pl|pl|pl|pl|  |  |pl|pl|=
 1 |rl|nl|bl|ql|kl|bl|nl|rl|=
    a  b  c  d  e  f  g  h  
 | The King's Gambit
 }}
to the discussion page of that template there so we can see what is it that really happens when you try to use it? --ZeroOne (talk | @) 00:12, 24 February 2007 (UTC)
OK, done. I've also reset the contorl panel so that anonymous IP addresses can edit pages. Thegn 08:59, 24 February 2007 (UTC)
OK, I've got it figured for you. Your wiki is using an old version of the MediaWiki software - version 1.5.5. The template was using default values for the arguments. However, the support for default values was added to MediaWiki in version 1.6. I have removed the default values now and the template seems to be functioning well, although it seems that you have forgotten to upload the pawn images. --ZeroOne (talk | @) 11:56, 24 February 2007 (UTC)
Many thanks. It's all now working, I think. Somehow, yes, I neglected to upload the Pawn images. Thegn 14:07, 24 February 2007 (UTC)

[edit] Black points of view

I was wondering if there is an (easy) way of showing the board (with coordinates) from black points of view. Thanks a lot for any info on this Voorlandt 20:44, 28 April 2007 (UTC)

No, there isn't. —This comment was added by Sibahi (talkcontribs) 21:36, April 28, 2007 (UTC)
As a matter of fact it is.. I might put the solution up here one of these days.. Its almost finished on my personal wiki (based on this template, for which I d like to thank everyone involved - & sorry for these multiple edits here, but I forgot to sign & date) - Gen 15:39, 21 July 2007 (UTC)

(outdent) Seems to me that all that's needed is to recreate, upload and use the two images showing the coordinates but with them reversed (originals Image:Chess zver 26.png and Image:Chess zhor 26.png). I am not sure if the third piped argument in the 64 square listings needs to be changed (e.g., from "a8" to "h1"), but if so that is even easier. Baccyak4H (Yak!) 13:46, 17 August 2007 (UTC)

[edit] WordPress Port

For anyone who's interested, I've ported this most excellent template to WordPress. Details can be found right here. --Viper007Bond 10:41, 6 September 2007 (UTC)

[edit] Why is there so much padding

Image:chess zhor 26.png
Image:chess zver 26.png a8 rd b8 nd c8 bd d8 qd e8 kd f8 bd g8 nd h8 rd Image:chess zver 26.png
a7 pd b7 pd c7 d7 e7 pd f7 pd g7 pd h7 pd
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 pd e5 f5 g5 h5
a4 b4 c4 d4 pl e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 pl b2 pl c2 d2 e2 pl f2 pl g2 pl h2 pl
a1 rl b1 nl c1 bl d1 ql e1 kl f1 bl g1 nl h1 rl
Image:chess zhor 26.png
Slav Exchange Variation
Image:chess zhor 26.png
Image:chess zver 26.png a8 rd b8 nd c8 bd d8 qd e8 kd f8 bd g8 h8 rd Image:chess zver 26.png
a7 pd b7 pd c7 d7 e7 pd f7 pd g7 pd h7 pd
a6 b6 c6 pd d6 e6 f6 nd g6 h6
a5 b5 c5 d5 pd e5 f5 g5 h5
a4 b4 c4 pl d4 pl e4 f4 g4 h4
a3 b3 c3 d3 e3 pl f3 nl g3 h3
a2 pl b2 pl c2 d2 e2 f2 pl g2 pl h2 pl
a1 rl b1 nl c1 bl d1 ql e1 kl f1 bl g1 h1 rl
Image:chess zhor 26.png
Slav Declined

Notice the enormous gulf between the diagrams. It looks like the chess diagrams are set up to pad 6 pixels on top, and 10 on the bottom. This seems to leave a very unsightly gap when trying to stack diagrams (both paddings are applied) and causes diagram float layout problems on any page that wants to use several diagrams. The tleft and tright CSS classes already set margins (based on the font size, not absolute pixels as the diagram template does), so why do we pad so heavily (or even at all)? Quale 02:31, 7 September 2007 (UTC)

I guess so, though some padding is always good to be certain, and anyway 16px isn't much gain. The problem is rather vertical margin: (set in MediaWiki:Common.css, supplementing http://en.wikipedia.org/skins-1.5/monobook/main.css that has none:
div.tright {
    border: none;
    margin: 0.5em 0 0.8em 1.4em;
}

div.tleft {
    border: none;
    margin: 0.5em 1.4em 0.8em 0;
}

I guess we could decrease these manually - 1.4em on the side seems too much as well, anyway. --Malyctenar (talk) 12:52, 28 January 2008 (UTC)

Have removed padding (and also doubled use of tright/tleft classes in two nested divs): doesn't seem to have hurt anything, and the gap on the right seems quite reasonable now. --Malyctenar (talk) 21:09, 9 February 2008 (UTC)

[edit] Not working

User:Hairchrm posted a message on my talk page saying that the template is not displaying correctly on one of my userpages. I looked into this, and it would appear that this template is not displaying properly on any page. All empty black squares, and all normal pieces except the following are displaying as broken links:

White king on white square
Black king on black square
White queen on black square
Black queen on white square
Black rook on black square

Seeing as it is not just me who is having problems, I think it is likley that there is something wrong with the template. Is anyone else having problems? --GW_SimulationsUser Page | Talk 17:04, 15 September 2007 (UTC)

Oh, by the way, the experimental SVG version (above) seems to work fine, so if there is a major and unrectifiable problem with the PNG version, then it could be resolved by replacing it with the SVG version. --GW_SimulationsUser Page | Talk 20:44, 15 September 2007 (UTC)
I checked from the IRC, #wikipedia-tech says that there have been problems with the database/images all day and the problem is being looked into. So it has got nothing to do with this template per se and the problem should soon go away. :) —ZeroOne (talk / @) 23:56, 15 September 2007 (UTC)
Thanks. Black squares are displaying now, but the pieces are still not working. I hope it clears up soon. --GW_SimulationsUser Page | Talk 12:23, 16 September 2007 (UTC)

[edit] White fields are too pink!!!

Nice and very useful template but I can't stand this pinkness... Is it only me and my display? —Preceding unsigned comment added by 83.6.211.147 (talk) 19:41, 25 September 2007 (UTC)

According to the image page, the color hexbit is #ffce9e, full red, lots of green and moderate blue. I personally wouldn't mind more green, to move the final color toward an unsaturated yellow and thus be more tan. But I don't mind it as is. Baccyak4H (Yak!) 20:05, 25 September 2007 (UTC)
I've never noticed any pinkness... I guess it's just you and your display. You could try adjusting the color temperature of your monitor, see its manual for the details. —ZeroOne (talk / @) 22:29, 25 September 2007 (UTC)

[edit] The FEN feature

Honestly, I don't quite like it, even though it is a very useful tool. The reason I don't like, however, is that it doesn't look pretty in FireFox; and that, when opened, it widens the template.

I think both these problems must be addressed before changing the template like that. (I know it is not an encylopedic change, but the looks are important too.)

Two things to add: I think there should be a copy of this template that doesn't have the FEN feature, mainly for Chess Variant purposes (it's simply distracting.) The FEN template should only be used when giving a position in a game, or an endgame article, within the mother Chess Project itself, to make it easier to copy the position into a PGN editor and play it out there (instead of setting a real board.) Otherwise, I don't see what's the point for, say, the Chess960 article to contain FEN tags.

Based on some of the points above, it's probably better to use the Small Chess diagram as a field for this tag, not the original one, since it's mainly used in the example I mentioned above. I would've done all those changes myself if I knew how.

--Sibahi 22:53, 11 October 2007 (UTC)
this is currently being discussed on the Chess Project talk page as well. I know for sure its going to be changed to default to NOT showing the FEN and then if you do want it, you can add a parameter for only specific templates. Please join our conversation there and we would love to hear your ideas. MatthewYeager 02:17, 12 October 2007 (UTC)

[edit] Alt text

Could we get some better alt text on these? Pick a chess article and try reading it in plain text. The diagrams are completely devoid of meaning! They all look identical, with the squares neatly labeled "a8 b8 c8 ..." but not any hint where the pieces might be. --tcsetattr (talk / contribs) 05:28, 26 January 2008 (UTC)

Indeed, the alts just show the position and not its content. It would be easy to add the content of parameters into it - might do it as soon as I have the time; anything more complicated is possible too, but would require a lot of programming #switches, and server power. --Malyctenar (talk) 12:52, 28 January 2008 (UTC)
Have added the parameters' value to alt text after the squares' names; it should be better than nothing. --Malyctenar (talk) 21:09, 9 February 2008 (UTC)

[edit] Chess Diagram maker for Windows

I've written a Windows program to generate chess diagrams for Wikipedia articles. You can download it here or go to my website and pick Downloads and get it that way. It runs under Windows, and it automatically puts the code for a chess diagram in your clipboard, or you can copy and paste it. Select the piece on the left and then click on the square. This new version 1.01 fixes some bugs and has some enhancements. Bubba73 (talk), 13:57, 20 February 2008 (UTC)

[edit] Display in Firefox

Following example doesn't display correctly, right diagram is chopped.

Image:chess zhor 26.png
Image:chess zver 26.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 26.png
a7 b7 c7 d7 e7 f7 g7 rl h7 pd
a6 rd b6 c6 d6 e6 f6 nd g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 pl b4 c4 nd d4 kd e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 pl h2 pl
a1 b1 c1 d1 e1 f1 rl g1 kl h1
Image:chess zhor 26.png
Korchnoi-Karpov: "a position it seemed impossible to lose"
Image:chess zhor 26.png
Image:chess zver 26.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 26.png
a7 b7 c7 d7 e7 f7 g7 h7 rl
a6 b6 c6 rd d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 pl b4 c4 d4 e4 nd f4 g4 h4
a3 b3 c3 d3 e3 f3 nd g3 h3
a2 b2 c2 d2 e2 kd f2 g2 pl h2 pl
a1 rl b1 c1 d1 e1 f1 g1 kl h1
Image:chess zhor 26.png
Position after 39...Nf3+!!


I think this template is not designed to use side-by-side, or maybe just remove the alignment. Putting additional whitespace or putting in tables might help.
Image:chess zhor 26.png
Image:chess zver 26.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 26.png
a7 b7 c7 d7 e7 f7 g7 rl h7 pd
a6 rd b6 c6 d6 e6 f6 nd g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 pl b4 c4 nd d4 kd e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 pl h2 pl
a1 b1 c1 d1 e1 f1 rl g1 kl h1
Image:chess zhor 26.png
Korchnoi-Karpov: "a position it seemed impossible to lose"
Image:chess zhor 26.png
Image:chess zver 26.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 26.png
a7 b7 c7 d7 e7 f7 g7 h7 rl
a6 b6 c6 rd d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 pl b4 c4 d4 e4 nd f4 g4 h4
a3 b3 c3 d3 e3 f3 nd g3 h3
a2 b2 c2 d2 e2 kd f2 g2 pl h2 pl
a1 rl b1 c1 d1 e1 f1 g1 kl h1
Image:chess zhor 26.png
Position after 39...Nf3+!!

--Chininazu12 02:58, 7 March 2008 (UTC)

  • It looks like a February 20 update broke something (possibly the change to a div class). I reverted. Quale (talk) 03:50, 7 March 2008 (UTC)

[edit] Mirrored chessboard (showing perspective from both white and black's point of view)

Hello, I have designed this chessboard to show both perspectives side-by-side. See User:Obuibo Mbstpo/Two handed chess board, which transcludes to User:Obuibo Mbstpo/Sandbox.

I would like to create a bit more space between the two boards and/or put the rank and file letters and numbers on it. However, do we have an image designed to show those things from black's perspective?

{{{A2}}}
A B C D E F G H
8 a8 b8 c8 d8 e8 f8 g8 h8 8
7 a7 b7 c7 d7 e7 f7 g7 h7 7
6 a6 b6 c6 d6 e6 f6 g6 h6 6
5 a5 b5 c5 d5 e5 f5 g5 h5 5
4 a4 b4 c4 d4 e4 f4 g4 h4 4
3 a3 b3 c3 d3 e3 f3 g3 h3 3
2 a2 b2 c2 d2 e2 f2 g2 h2 2
1 a1 b1 c1 d1 e1 f1 g1 h1 1
A B C D E F G H

{{{A1}}}

{{{A1}}}
H G F E D C B A
1 h8 g8 f8 e8 d8 c8 b8 a8 1
2 h7 g7 f7 e7 d7 c7 b7 a7 2
3 h6 g6 f6 e6 d6 c6 b6 a6 3
4 h5 g5 f5 e5 d5 c5 b5 a5 4
5 h4 g4 f4 e4 d4 c4 b4 a4 5
6 h3 g3 f3 e3 d3 c3 b3 a3 6
7 h2 g2 f2 e2 d2 c2 b2 a2 7
8 h1 g1 f1 e1 d1 c1 b1 a1 8
H G F E D C B A

{{{A2}}}


Obuibo Mbstpo (talk) 16:33, 8 March 2008 (UTC)

Is this any use to you? GW_SimulationsUser Page | Talk 17:21, 8 March 2008 (UTC)

<div class="{{{1}}}" style="clear: right; width: 400px; padding-top: 6px; padding-bottom: 10px">
<div class="{{{1}}}" style="width: 400px; text-align: center">
{| style="border:1px solid #b0b0b0; background-color:#f9f9f9"
|- 
|

{| cellpadding="2" cellspacing="2" style="border: 1px solid #b0b0b0"
| colspan=3 |

{| cellspacing="0" cellpadding="0" style="border: 1px solid #b0b0b0; background-color: #ffffff"
'''{{{A2}}}'''
|-
!
!A
!B
!C
!D
!E
!F
!G
!H
!
|-
! 8
| [[Image:chess_{{{3|}}}l44.png|{{{pixelcount}}}px|a8]]
| [[Image:chess_{{{4|}}}d44.png|{{{pixelcount}}}px|b8]]
| [[Image:chess_{{{5|}}}l44.png|{{{pixelcount}}}px|c8]]
| [[Image:chess_{{{6|}}}d44.png|{{{pixelcount}}}px|d8]]
| [[Image:chess_{{{7|}}}l44.png|{{{pixelcount}}}px|e8]]
| [[Image:chess_{{{8|}}}d44.png|{{{pixelcount}}}px|f8]]
| [[Image:chess_{{{9|}}}l44.png|{{{pixelcount}}}px|g8]]
| [[Image:chess_{{{10|}}}d44.png|{{{pixelcount}}}px|h8]]
! 8
|-
! 7
| [[Image:chess_{{{11|}}}d44.png|{{{pixelcount}}}px|a7]]
| [[Image:chess_{{{12|}}}l44.png|{{{pixelcount}}}px|b7]]
| [[Image:chess_{{{13|}}}d44.png|{{{pixelcount}}}px|c7]]
| [[Image:chess_{{{14|}}}l44.png|{{{pixelcount}}}px|d7]]
| [[Image:chess_{{{15|}}}d44.png|{{{pixelcount}}}px|e7]]
| [[Image:chess_{{{16|}}}l44.png|{{{pixelcount}}}px|f7]]
| [[Image:chess_{{{17|}}}d44.png|{{{pixelcount}}}px|g7]]
| [[Image:chess_{{{18|}}}l44.png|{{{pixelcount}}}px|h7]]
! 7
|-
! 6
| [[Image:chess_{{{19|}}}l44.png|{{{pixelcount}}}px|a6]]
| [[Image:chess_{{{20|}}}d44.png|{{{pixelcount}}}px|b6]]
| [[Image:chess_{{{21|}}}l44.png|{{{pixelcount}}}px|c6]]
| [[Image:chess_{{{22|}}}d44.png|{{{pixelcount}}}px|d6]]
| [[Image:chess_{{{23|}}}l44.png|{{{pixelcount}}}px|e6]]
| [[Image:chess_{{{24|}}}d44.png|{{{pixelcount}}}px|f6]]
| [[Image:chess_{{{25|}}}l44.png|{{{pixelcount}}}px|g6]]
| [[Image:chess_{{{26|}}}d44.png|{{{pixelcount}}}px|h6]]
! 6
|-
! 5
| [[Image:chess_{{{27|}}}d44.png|{{{pixelcount}}}px|a5]]
| [[Image:chess_{{{28|}}}l44.png|{{{pixelcount}}}px|b5]]
| [[Image:chess_{{{29|}}}d44.png|{{{pixelcount}}}px|c5]]
| [[Image:chess_{{{30|}}}l44.png|{{{pixelcount}}}px|d5]]
| [[Image:chess_{{{31|}}}d44.png|{{{pixelcount}}}px|e5]]
| [[Image:chess_{{{32|}}}l44.png|{{{pixelcount}}}px|f5]]
| [[Image:chess_{{{33|}}}d44.png|{{{pixelcount}}}px|g5]]
| [[Image:chess_{{{34|}}}l44.png|{{{pixelcount}}}px|h5]]
! 5
|-
! 4
| [[Image:chess_{{{35|}}}l44.png|{{{pixelcount}}}px|a4]]
| [[Image:chess_{{{36|}}}d44.png|{{{pixelcount}}}px|b4]]
| [[Image:chess_{{{37|}}}l44.png|{{{pixelcount}}}px|c4]]
| [[Image:chess_{{{38|}}}d44.png|{{{pixelcount}}}px|d4]]
| [[Image:chess_{{{39|}}}l44.png|{{{pixelcount}}}px|e4]]
| [[Image:chess_{{{40|}}}d44.png|{{{pixelcount}}}px|f4]]
| [[Image:chess_{{{41|}}}l44.png|{{{pixelcount}}}px|g4]]
| [[Image:chess_{{{42|}}}d44.png|{{{pixelcount}}}px|h4]]
! 4
|-
! 3
| [[Image:chess_{{{43|}}}d44.png|{{{pixelcount}}}px|a3]]
| [[Image:chess_{{{44|}}}l44.png|{{{pixelcount}}}px|b3]]
| [[Image:chess_{{{45|}}}d44.png|{{{pixelcount}}}px|c3]]
| [[Image:chess_{{{46|}}}l44.png|{{{pixelcount}}}px|d3]]
| [[Image:chess_{{{47|}}}d44.png|{{{pixelcount}}}px|e3]]
| [[Image:chess_{{{48|}}}l44.png|{{{pixelcount}}}px|f3]]
| [[Image:chess_{{{49|}}}d44.png|{{{pixelcount}}}px|g3]]
| [[Image:chess_{{{50|}}}l44.png|{{{pixelcount}}}px|h3]]
! 3
|-
! 2
| [[Image:chess_{{{51|}}}l44.png|{{{pixelcount}}}px|a2]]
| [[Image:chess_{{{52|}}}d44.png|{{{pixelcount}}}px|b2]]
| [[Image:chess_{{{53|}}}l44.png|{{{pixelcount}}}px|c2]]
| [[Image:chess_{{{54|}}}d44.png|{{{pixelcount}}}px|d2]]
| [[Image:chess_{{{55|}}}l44.png|{{{pixelcount}}}px|e2]]
| [[Image:chess_{{{56|}}}d44.png|{{{pixelcount}}}px|f2]]
| [[Image:chess_{{{57|}}}l44.png|{{{pixelcount}}}px|g2]]
| [[Image:chess_{{{58|}}}d44.png|{{{pixelcount}}}px|h2]]
! 2
|-
! 1
| [[Image:chess_{{{59|}}}d44.png|{{{pixelcount}}}px|a1]]
| [[Image:chess_{{{60|}}}l44.png|{{{pixelcount}}}px|b1]]
| [[Image:chess_{{{61|}}}d44.png|{{{pixelcount}}}px|c1]]
| [[Image:chess_{{{62|}}}l44.png|{{{pixelcount}}}px|d1]]
| [[Image:chess_{{{63|}}}d44.png|{{{pixelcount}}}px|e1]]
| [[Image:chess_{{{64|}}}l44.png|{{{pixelcount}}}px|f1]]
| [[Image:chess_{{{65|}}}d44.png|{{{pixelcount}}}px|g1]]
| [[Image:chess_{{{66|}}}l44.png|{{{pixelcount}}}px|h1]]
! 1
|-
!
!A
!B
!C
!D
!E
!F
!G
!H
!
|}

'''{{{A1}}}'''
|

{| cellspacing="0" cellpadding="0" style="border: 1px solid #b0b0b0; background-color: #ffffff"
'''{{{A1}}}'''
|-
!
! H
! G
! F
! E
! D
! C
! B
! A
!
|-
! 1
| [[Image:chess {{{66|}}}l44.png|{{{pixelcount}}}px|h8 {{{66|}}}]]
| [[Image:chess {{{65|}}}d44.png|{{{pixelcount}}}px|g8 {{{65|}}}]]
| [[Image:chess {{{64|}}}l44.png|{{{pixelcount}}}px|f8 {{{64|}}}]]
| [[Image:chess {{{63|}}}d44.png|{{{pixelcount}}}px|e8 {{{63|}}}]]
| [[Image:chess {{{62|}}}l44.png|{{{pixelcount}}}px|d8 {{{62|}}}]]
| [[Image:chess {{{61|}}}d44.png|{{{pixelcount}}}px|c8 {{{61|}}}]]
| [[Image:chess {{{60|}}}l44.png|{{{pixelcount}}}px|b8 {{{60|}}}]]
| [[Image:chess {{{59|}}}d44.png|{{{pixelcount}}}px|a8 {{{59|}}}]]
! 1
|-
! 2
| [[Image:chess {{{58|}}}d44.png|{{{pixelcount}}}px|h7 {{{58|}}}]]
| [[Image:chess {{{57|}}}l44.png|{{{pixelcount}}}px|g7 {{{57|}}}]]
| [[Image:chess {{{56|}}}d44.png|{{{pixelcount}}}px|f7 {{{56|}}}]]
| [[Image:chess {{{55|}}}l44.png|{{{pixelcount}}}px|e7 {{{55|}}}]]
| [[Image:chess {{{54|}}}d44.png|{{{pixelcount}}}px|d7 {{{54|}}}]]
| [[Image:chess {{{53|}}}l44.png|{{{pixelcount}}}px|c7 {{{53|}}}]]
| [[Image:chess {{{52|}}}d44.png|{{{pixelcount}}}px|b7 {{{52|}}}]]
| [[Image:chess {{{51|}}}l44.png|{{{pixelcount}}}px|a7 {{{51|}}}]]
! 2
|-
! 3
| [[Image:chess {{{50|}}}l44.png|{{{pixelcount}}}px|h6 {{{50|}}}]]
| [[Image:chess {{{49|}}}d44.png|{{{pixelcount}}}px|g6 {{{49|}}}]]
| [[Image:chess {{{48|}}}l44.png|{{{pixelcount}}}px|f6 {{{48|}}}]]
| [[Image:chess {{{47|}}}d44.png|{{{pixelcount}}}px|e6 {{{47|}}}]]
| [[Image:chess {{{46|}}}l44.png|{{{pixelcount}}}px|d6 {{{46|}}}]]
| [[Image:chess {{{45|}}}d44.png|{{{pixelcount}}}px|c6 {{{45|}}}]]
| [[Image:chess {{{44|}}}l44.png|{{{pixelcount}}}px|b6 {{{44|}}}]]
| [[Image:chess {{{43|}}}d44.png|{{{pixelcount}}}px|a6 {{{43|}}}]]
! 3
|-
! 4
| [[Image:chess {{{42|}}}d44.png|{{{pixelcount}}}px|h5 {{{42|}}}]]
| [[Image:chess {{{41|}}}l44.png|{{{pixelcount}}}px|g5 {{{41|}}}]]
| [[Image:chess {{{40|}}}d44.png|{{{pixelcount}}}px|f5 {{{40|}}}]]
| [[Image:chess {{{39|}}}l44.png|{{{pixelcount}}}px|e5 {{{39|}}}]]
| [[Image:chess {{{38|}}}d44.png|{{{pixelcount}}}px|d5 {{{38|}}}]]
| [[Image:chess {{{37|}}}l44.png|{{{pixelcount}}}px|c5 {{{37|}}}]]
| [[Image:chess {{{36|}}}d44.png|{{{pixelcount}}}px|b5 {{{36|}}}]]
| [[Image:chess {{{35|}}}l44.png|{{{pixelcount}}}px|a5 {{{35|}}}]]
! 4
|-
! 5
| [[Image:chess {{{34|}}}l44.png|{{{pixelcount}}}px|h4 {{{34|}}}]]
| [[Image:chess {{{33|}}}d44.png|{{{pixelcount}}}px|g4 {{{33|}}}]]
| [[Image:chess {{{32|}}}l44.png|{{{pixelcount}}}px|f4 {{{32|}}}]]
| [[Image:chess {{{31|}}}d44.png|{{{pixelcount}}}px|e4 {{{31|}}}]]
| [[Image:chess {{{30|}}}l44.png|{{{pixelcount}}}px|d4 {{{30|}}}]]
| [[Image:chess {{{29|}}}d44.png|{{{pixelcount}}}px|c4 {{{29|}}}]]
| [[Image:chess {{{28|}}}l44.png|{{{pixelcount}}}px|b4 {{{28|}}}]]
| [[Image:chess {{{27|}}}d44.png|{{{pixelcount}}}px|a4 {{{27|}}}]]
! 5
|-
! 6
| [[Image:chess {{{{{{pixelcount}}}|}}}d44.png|{{{pixelcount}}}px|h3 {{{{{{pixelcount}}}|}}}]]
| [[Image:chess {{{25|}}}l44.png|{{{pixelcount}}}px|g3 {{{25|}}}]]
| [[Image:chess {{{24|}}}d44.png|{{{pixelcount}}}px|f3 {{{24|}}}]]
| [[Image:chess {{{23|}}}l44.png|{{{pixelcount}}}px|e3 {{{23|}}}]]
| [[Image:chess {{{22|}}}d44.png|{{{pixelcount}}}px|d3 {{{22|}}}]]
| [[Image:chess {{{21|}}}l44.png|{{{pixelcount}}}px|c3 {{{21|}}}]]
| [[Image:chess {{{20|}}}d44.png|{{{pixelcount}}}px|b3 {{{20|}}}]]
| [[Image:chess {{{19|}}}l44.png|{{{pixelcount}}}px|a3 {{{19|}}}]]
! 6
|-
! 7
| [[Image:chess {{{18|}}}l44.png|{{{pixelcount}}}px|h2 {{{18|}}}]]
| [[Image:chess {{{17|}}}d44.png|{{{pixelcount}}}px|g2 {{{17|}}}]]
| [[Image:chess {{{16|}}}l44.png|{{{pixelcount}}}px|f2 {{{16|}}}]]
| [[Image:chess {{{15|}}}d44.png|{{{pixelcount}}}px|e2 {{{15|}}}]]
| [[Image:chess {{{14|}}}l44.png|{{{pixelcount}}}px|d2 {{{14|}}}]]
| [[Image:chess {{{13|}}}d44.png|{{{pixelcount}}}px|c2 {{{13|}}}]]
| [[Image:chess {{{12|}}}l44.png|{{{pixelcount}}}px|b2 {{{12|}}}]]
| [[Image:chess {{{11|}}}d44.png|{{{pixelcount}}}px|a2 {{{11|}}}]]
! 7
|-
! 8
| [[Image:chess {{{10|}}}d44.png|{{{pixelcount}}}px|h1 {{{10|}}}]]
| [[Image:chess {{{9|}}}l44.png|{{{pixelcount}}}px|g1 {{{9|}}}]]
| [[Image:chess {{{8|}}}d44.png|{{{pixelcount}}}px|f1 {{{8|}}}]]
| [[Image:chess {{{7|}}}l44.png|{{{pixelcount}}}px|e1 {{{7|}}}]]
| [[Image:chess {{{6|}}}d44.png|{{{pixelcount}}}px|d1 {{{6|}}}]]
| [[Image:chess {{{5|}}}l44.png|{{{pixelcount}}}px|c1 {{{5|}}}]]
| [[Image:chess {{{4|}}}d44.png|{{{pixelcount}}}px|b1 {{{4|}}}]]
| [[Image:chess {{{3|}}}l44.png|{{{pixelcount}}}px|a1 {{{3|}}}]]
! 8
|-
!
!H
!G
!F
!E
!D
!C
!B
!A
!
|}

'''{{{A2}}}'''
|-
| colspan=3 |
|}

|-
| style="line-height: 1.4; text-align: left; font-size: 90%; padding: 2px" |
|}

</div>
</div>
<noinclude>
[[Category:Chess templates|{{PAGENAME}}]]

</noinclude>
That should take care of the numbering. Not sure about spacing, though. GW_SimulationsUser Page | Talk 17:21, 8 March 2008 (UTC)
Yes! That's awesome! Where's the barnstar of chess? Ah well, maybe later. Obuibo Mbstpo (talk) 22:24, 8 March 2008 (UTC)

[edit] Two diagrams

Due to the issues of displaying two diagrams as two separate diagrams.

  • tcenter display is variable depending on users display width and browser and therefore it's best to avoid.
  • One diagram tleft and the other tright leaves a big whitespace between the two diagrams.
  • Two trights, means they are stacked on the right one under the other, this is only okay if there is sufficient article wording to cover the depth of the diagrams.
  • Both tleft. This is perhaps the best option at present, it's downside is the whitespace area to the right. Using this space of the article text doesn't help as you expect to start reading from the left.
So...

There is a requirement to have double diagrams horizontally together, they would normally be used with tright, although it's possible that tleft and tcenter might work out. If this could be done, doing the same with chess diagram small would also be welcome. ChessCreator (talk) 13:09, 18 March 2008 (UTC)

Unlike the Mirror diagrams above they don't want to be visually joined with one encompassing box, as they are likely two separate diagrams which are just next to each other. ChesCreator (talk) 13:20, 18 March 2008 (UTC)

[edit] Highlighting a square/piece

I can't believe nobody's requested it yet, but would it be possible for a simple notation to allow |nd| to be highlighted somehow, for when it is the most recent move made in the match - or the Wikipedian wants to otherwise highlight a specific square's contents? I'm starting work on a Kasparov/Deep Blue match at Wikisource, and would love to be able to demonstrate which piece has just moved at a simple glance, rather than waiting for the reader to analyse the two boards to see what is different. Sherurcij (Speaker for the Dead) 09:04, 24 April 2008 (UTC)