Docs / Course authoring
Course pages - resources, actions, page links and video
Resource cards
Resource tags show a clickable card that opens a resource of the application.
::repertoire{id="<repertoire id>" label="My White repertoire"}
::puzzles{id="<puzzle suite id>" label="Tactics: the fork"}
::game{id="<game id>" label="My game against Bob" orientation="black"} idandlabelare both required.::repertoireopens the repertoire in study mode,::puzzlesopens the suite in solving mode,::gameopens the game in the analysis board.- The card carries the anchor
#res-<id>. ::gamealso acceptsorientation="white"or"black": the side shown at the bottom when the game opens, as for a diagram. Missing or any other value:white. The+ gamepicker offers this choice.- Avoid the
"character in a label. - In the editor, the
+ repertoire,+ puzzlesand+ gamebuttons list your own resources and insert the tag with the rightid.
Embedding rules (checked when the page is saved)
- The resource must exist.
- A resource owned by another user must be at least shared.
- In a course that is not private, even your own resource must be at least shared.
- A private resource of yours is accepted in a private course.
- When you publish a page that embeds one of your private resources, you are asked to confirm that it is shared with the course participants. Once confirmed, participants get read access to every resource embedded in the page.
Actions
::action{type="bot-training" label="Practice against a bot"}
::action{type="opening-explorer" label="Open the opening explorer"} type (bot-training or opening-explorer) and label are required. At the moment the card is displayed but greyed out and not clickable.
Links to other pages
Review [[page:<pageId>]] before continuing. This shows a button with the title of the target page. If the page no longer exists, a struck-through link is displayed, without an error. An empty page id is refused. The address of a page is /courses/<courseId>/<moduleId>/<pageId>. In an import/export file the link is written with the page key ([[page:my-key]]) and converted to the real id on import.
Figurine notation
The best move is [[fig:Nf3]]; the main line: [[fig:1.e4 e5 2.Nf3 Nc6 3.Bb5]]. [[fig:…]] shows a move, or a sequence of moves, in figurine notation (♔ ♕ ♖ ♗ ♘) inside the text, without splitting the paragraph: [[fig:Nf3]] and [[fig:Cf3]] both give ♘f3.
- The SAN can be written in English (K Q R B N) or French (R D T F C). Move numbers, captures (
x), promotions (e8=Q,e8=D), check and mate (+,#), annotations (!,?) and castling (O-O) are kept. - Only
Ris ambiguous (Rook in English, Roi = king in French). Another piece letter in the tag decides; otherwise the page language decides (French: king). To force it:[[fig:Rf1|en]](♖f1) or[[fig:Rf1|fr]](♔f1). - The notation is always shown left to right, even in a Hebrew page. Machine translation never changes it. Inside inline code (
`[[fig:Nf3]]`) it stays plain text. - In the editor (code view), the ♘ Figurine button wraps the selected move(s) in
[[fig:…]]; with nothing selected it inserts[[fig:]]with the cursor inside.
YouTube videos
::youtube{dQw4w9WgXcQ} The directive must be alone on its line. Between the braces goes the video id (11 characters from A-Z a-z 0-9 _ -). The player is shown at 16:9, without autoplay. A malformed line is displayed as plain text. In the editor, + video accepts a URL or an id. The player is shown in the page’s reading language, which is also the preferred subtitle language (students turn subtitles on if they need them).
Anchors and deep links
Every diagram and resource that has an id carries the anchor res-<id>: /courses/<courseId>/<moduleId>/<pageId>#res-<id> opens the page, scrolls to the element and briefly highlights it.