Template:CD

From Looney Pyramid Games Wiki
Revision as of 12:19, 20 April 2024 by Kataclysm (talk | contribs) (Creating template for Cards-and-Dice-2024 font)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template allows you to easily use the Cards and Dice font to include simple diagrams of pyramids and other components in pages.

Usage

{{CD
| Text Cards-and-Dice format
| color
| size
}}

The only required parameter is the text; the other two are optional.

The text will be rendered with the Cards-and-Dice font, which uses ligatures starting with : to refer to the different images that are available. For instance :d20-20 will be interpreted as a "twenty-sided die, face 20". See How to Use Pyramid Love.pdf for more details.

The color is any CSS color, which will be applied to the pyramid. For instance, red, green, blue, etc. The default if unspecified is black.

The size is a CSS font size, such as 3em to make it three times the font height of the surrounding text, or 25px to make it exactly 25 CSS pixels high. The default is 2em, which makes it twice the height of surrounding text, which is about right to be visible without affecting line spacing within text. In diagrams you may want to increase this for extra visibility.

Examples

Markup Result
{{PL|:LPE}} :LPE
{{PL|:MPU|red}} :MPU
{{PL|:LPL:SLL:SPR}} :LPL:SLL:SPR
{{PL|::LMSE||3em}} ::LMSE