Check out Alice Chess, our featured variant for June, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Shortcodes[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Wed, May 25, 2016 09:10 PM EDT:

I have started to implement shortcodes. If you use Wordpress, you may already know what shortcodes are. They are keywords that appear between brackets that signal the running of PHP code. They sometimes take parameters, and some come with closing tags, so that they can enclose text. I have made some that take parameters, but I haven't figured out how to easily make any that include a closing tag and enclose text. My original plan had been to get an editor working first, then to install a plugin for handling shortcodes. But CKEditor doesn't have a shortcodes plugin. So I'm implementing shortcodes from scratch. There are three shortcodes so far. Writing their names without brackets, clear will output <br clear=all>, set will choose a piece set, and pc will display a piece. If given a name as a second parameter, pc will display the piece in a figure with the name as a caption. Here are come examples. View the source to see the codes.

The King can move one space in anydiagonal or orthogonal direction.

Queen
The Queen can move any number of spaces in any diagonal or orthogonal direction.