Template:PL: Difference between revisions
Content deleted Content added
imported>Lambda Add usage information |
imported>Lambda Set default height to 2em for more visible pieces |
||
Line 1:
<includeonly><span style='font: {{{3|
This template allows you to easily use the [[Pyramid Love]] font to include simple diagrams of pyramids and other components in pages.
Line 16:
The text will be rendered with the Pyramid Love font, which uses ligatures starting with <code>:</code> to refer to the different images that are available. For instance <code>:LPE</code> will be interpreted as a "large pointing east". See [[:File:How to Use Pyramid Love.pdf|How to Use Pyramid Love.pdf]] for more details.
The color is any CSS color, which will be applied to the pyramid. For instance, <code>red</code>, <code>green</code>, <code>blue</code>, etc. The default if unspecified is black.
The size is a CSS font size, such as <code>3em</code> to make it three times the font height of the surrounding text, or <code>25px</code> 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 ===
Line 29:
|-
| <code><nowiki>{{PL|:MPU|red}}</nowiki></code> || {{PL|:MPU|red}}
|-
| <code><nowiki>{{PL|:LPL:SLL:SPR}}</nowiki></code> || {{PL|:LPL:SLL:SPR}}
|-
| <code><nowiki>{{PL|::LMSE||3em}}</nowiki></code> || {{PL|::LMSE||3em}}
|