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 Thu, May 26, 2016 04:18 PM UTC:

Since a shortcode is a server-side instruction, successful shortcodes will not show up in source code. So, to show you what the code I entered looks like, I will set the piece set to a non-existant set. Without an actual piece set loaded in, all the [pc] shortcodes will fail, and on failing will just return a copy of themselves.

[set magneto]I have expanded the [pc] shortcode. It can be used by itself, or it can be paired with a closing tag. Here are its uses:

The only required parameter is a piece label: [pc K]

It may take a second parameter as a piece name: [pc K King]

With a closing tag, it may include a piece description. [pc K King]The King may move one space in any direction. Once in the game, it may castle with a Rook so long as it is not in check, neither piece has moved, all spaces between the King and Rook are empty, and the move does not move the King through or into check. In castling, the King moves two spaces toward the Rook, and the Rook moves to the other side of the King on the space the King just passed over. A King may never move into check.[/pc]

The closing tag may also be used without the second parameter: [pc K]The King may move one space in any direction. Once in the game, it may castle with a Rook so long as it is not in check, neither piece has moved, all spaces between the King and Rook are empty, and the move does not move the King through or into check. In castling, the King moves two spaces toward the Rook, and the Rook moves to the other side of the King on the space the King just passed over. A King may never move into check.[/pc]