Maybe something like:
[chessboard="White to play and win"]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[chessboard]

Comments

eric_a’s picture

Status: Active » Postponed

Let's come back to this after initial ports for D6 and D7 are in. #373871: port Chessboard Renderer to D6

eric_a’s picture

Version: 4.7.x-1.x-dev » 7.x-2.x-dev
eric_a’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Status: Postponed » Active

Perhaps it would be best to add a second filter. Ideas:

BBCode:
[chessboard caption=White to play and win]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[/chessboard]

[chessboard placement=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR]White to play and win[/chessboard]

HTML5:
<figure class="chessboard">rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR<figcaption>White to play and win</figcaption></figure>

eric_a’s picture

And how about something like this:
<img data-caption="White to play and win" src="/chessboard/rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR.gif">

eric_a’s picture

The fallback scenario for #4 is pretty bad when the filter is not enabled and the image source is not available.
This one is shorter and better.

<a class="chessboard" title="White to play and win">rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR</a>

With this piece of HTML5 the caption is not immediately visible when the filter is not enabled, but the FEN code is still there.