Template:PL: Difference between revisions
imported>Lambda try disabling wrapping to prevent wrapping from causing ligatures to break |
imported>Lambda more attempts not to wrap |
||
Line 1: | Line 1: | ||
<includeonly><span style='font: {{{3|2em}}}/1 "Pyramid Love"; color: {{{2|black}}}; white-space: nowrap; overflow: hidden;'>{{{1}}}</span></includeonly><noinclude> |
<includeonly><span style='font: {{{3|2em}}}/1 "Pyramid Love"; color: {{{2|black}}}; white-space: nowrap; overflow: hidden; word-break: keep-all'>{{{1}}}</span></includeonly><noinclude> |
||
This template allows you to easily use the [[Pyramid Love]] font to include simple diagrams of pyramids and other components in pages. |
This template allows you to easily use the [[Pyramid Love]] font to include simple diagrams of pyramids and other components in pages. |
||
Revision as of 13:56, 11 November 2016
This template allows you to easily use the Pyramid Love font to include simple diagrams of pyramids and other components in pages.
Usage
{{PL | Text in Pyramid Love format | color | size }}
The only required parameter is the text; the other two are optional.
The text will be rendered with the Pyramid Love font, which uses ligatures starting with :
to refer to the different images that are available. For instance :LPE
will be interpreted as a "large pointing east". 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}} |
|
{{PL|:MPU|red}} |
|
{{PL|:LPL:SLL:SPR}} |
|
{{PL|::LMSE||3em}} |