...Processing...
error
big error
Checkmate - Using chess shortcodes at TutnIQ - TutnIQ
Table of contents X
  • The chess piece [cp] shortcode

    In this section we will learn how to use the [cp] shortcode to insert chess pieces into our tutorials, FAQs and glossaries.

  • We can use the [cp] shortcode ('cp' = chess piece) to insert chess pieces into our tutorials, FAQs and glssaries.

    This:

    The white king [cp]wK[/cp]
    The white queen [cp]wQ[/cp] 
    The white bishop [cp]wB[/cp] 
    The white knight [cp]wN[/cp]
    The white rook [cp]wR[/cp]
    The white pawn [cp]wP[/cp]
    
    The black king [cp]bK[/cp]
    The black queen [cp]bQ[/cp] 
    The black bishop [cp]bB[/cp] 
    The black knight [cp]bN[/cp]
    The black rook [cp]bR[/cp]
    The black pawn [cp]bP[/cp]
    

    Will appear as:

    The white king
    The white queen
    The white bishop
    The white knight
    The white rook
    The white pawn

    The black king
    The black queen
    The black bishop
    The black knight
    The black rook
    The black pawn

    This shortcode cannot include other shortcodes or Markdown, and has no modifiable attributes.

    Acknowledgments

    We use the chessboard.js library to power the chess boards on TutnIQ. It would probably not have been feasible to develop this functionality from scratch.

    The tutorial logo (floating chessboard with magical rainbow) is a cropped version of the public domain image by David Mark.

« Previous
[Section: 2 of 2]
ad placeholder

Sharing is caring!

About the author

Course stats

My progress

Find related courses