Template:Sitelen pona

From Wikisource
Jump to navigation Jump to search

Template documentation

Can be used for placing up to 32 consecutive sitelen pona glyphs in-line with text.

{{sitelen pona|mi|kepeken|sitelen|pona}} gives

Combined glyphs can be used, if the character set used has the file for it on Wikimedia Commons.

{{sitelen pona|mi|kepeken|sitelen pona}} gives

The shorter synonym {{stpn}} can also be used for this template.

If 32 characters are not enough, it's possible to use multiple instances of {{sitelen pona}} in a row. {{stpn|mi|kepeken}}{{stpn|sitelen|pona}} should behave the same as {{sitelen pona|mi|kepeken|sitelen|pona}}.

size parameter[edit]

The size parameter can be used to change the size of the glyphs, provided in amount of in pixels height. Default size is 24.

{{stpn|suli|size=40}} gives as opposed to

charset parameter[edit]

The charset parameter can be used to change between character sets. Currently, it uses images from "sitelen seli kiwen" by default, and charset=pu can be used to switch to pu versions of the glyphs (which uses "monospaced sitelen pona vector images by Sonja Lang" for pu words, and "sitelen pona from Esperanto pu" for ku suli words)

{{stpn|mi|lukin|e|kijetesantakalu|jaki|charset=pu}} gives as opposed to

charset=sitelen seli kiwen or charset=ssk can be used to set the character set to sitelen seli kiwen specifically, in case the default changes in the future.

spacing parameter[edit]

The spacing parameter can be used to add character spacing between the glyphs, provided in amount of pixels. It adds padding to each side of each glyph, so spacing=2 results in 4 pixels of extra space between each glyph.

{{stpn|mi|wile|moku|e|pan|spacing=2}} gives as opposed to

monospace (mono parameter)[edit]

The mono parameter can be used to simulate monospacing. It can also be combined with the spacing parameter.

{{stpn|ona|o|tawa|poki|mi|mono=1}} gives as opposed to
Adding spacing=3 to that gives

cartouches (cart parameter)[edit]

The cart parameter can be used to put a box around the entire template, creating a rudimentary cartouche.

{{stpn|ma}}{{stpn|kasi|alasa|nasin|awen|telo|a|cart=1}}{{stpn|li|suli}} gives

If the cartouche is too close to the characters for good readability, spaces can be used between templates or the spacing parameter may be used. It may also look nice to make the cartouche template a little smaller than the others.

{{stpn|ma}} {{stpn|kasi|alasa|nasin|awen|telo|a|cart=1|size=20}} {{stpn|li|suli}} gives

Note: using cart messes up the monospacing of the mono parameter a bit, but it should not be very noticeable with only one or two cartouches per line of text.

punctuation[edit]

The following can be used to insert punctuation. The punctuation does not change size with the size parameter, but you can fix that by putting a text size template around it.

input output
: (fullwidth colon)
. or · (fullwidth interpunct)
- or     (fullwidth space)
[ or « (opening corner bracket)
] or » (closing corner bracket)

Any of the output characters also work as input.

{{stpn|ona|li|toki|-|[|o|kama|a|]}} gives  
{{stpn|sina|nasa|.|taso|mi|sona|e|ni|:|sina|pona|.}} gives

Combining this with the spacing and/or mono parameter might give better results.