|
Cookbook /
CardsMarkupSummary: Markup suitable for displaying playing card games (e.g., contract bridge)
Version: 2007-04-22
Prerequisites: pmwiki-2
Status: Stable
Maintainer: Pm
Categories: Markup
Questions answered by this recipe
DescriptionThe cards.zipΔ recipe provides markups to make it easy to display playing card suits and players' hands in a variety of layout formats. For example, with this recipe one can easily write things such as:
Opening Lead: Displaying card suitsThis recipe defines the markups " s ", " h ", " d ", and " c " as shortcut notations for card suits like spades (
Displaying a handDisplay of hands is performed using the
To display several players' hands at once, simply combine the hands separated by spaces. By default the first hand given is "North", but a hand's position may be specified by prefixing it with one of "N:", "E:", "S:", or "W:". Subsequent hands are taken as being the next position clockwise from the previous position.
To suppress the display of one or more of the hands, use a hyphen:
Similarly, use a hyphen to suppress the display of a suit altogether (as opposed to simply showing an empty or void suit):
Notes
Release NotesCommentsPKHG speaking: To make the recipe even more superb one needs some more possibilities: On a series on hands at the top left edge one would like to add some information:
And if all 4 hands are shown, one would like to see (for clarity) North, East, South, West (in the language of the country). See Also
ContributorsSandboxFeel free to experiment with the card markups below. |