Template:PL: Difference between revisions

Content added Content deleted
imported>Lambda
m (fix quotes)
imported>Lambda
(Add usage information)
Line 1: Line 1:
<span style='font: {{{3|1em}}}/1 "Pyramid Love"; color: {{{2|black}}}'>{{{1}}}</span>
<includeonly><span style='font: {{{3|1em}}}/1 "Pyramid Love"; color: {{{2|black}}}'>{{{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.

=== Usage ===

<pre><nowiki>
{{PL
| Text in Pyramid Love format
| color
| size
}}
</nowiki></pre>

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 <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 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.

=== Examples ===

{| class="wikitable"
|-
! Markup !! Result
|-
| <code><nowiki>{{PL|:LPE}}</nowiki></code> || {{PL|:LPE}}
|-
| <code><nowiki>{{PL|:MPU|red}}</nowiki></code> || {{PL|:MPU|red}}
|-
| <code><nowiki>{{PL|::LMSE||3em}}</nowiki></code> || {{PL|::LMSE||3em}}
|}
</noinclude>