lichess.org
Donate

help wanted: lichess button to provide friendly & accurate HTML for link to pasted game

Hi
I am setting up a chess club website and want front end users to paste links to their games on our website.
I would like to use lichess. The users would use liches.org/paste - but then I want them to click a button to produce the friendly (and accurate!) HTML which they can copy & I can make it easy for them to post that on the club site.

The HTML needs details from the PGN content: black, white, and probably date. For example if the PGN contains
[White "Kasparov"]
[Black "Karpov"]
[Date "1965.6.9"]

and the pasted game is lichess.org//xwx8

then the button should produce something like:
<a href="lichess.org//xwx8"> Kasparov V Karpov 1965.6.9</a>

Is this possible? hopefully it's sensible!

Thanks
Peter

This topic has been archived and can no longer be replied to.