Template:Letter-spacing/doc

Documentation
This template simplifies formatting text that has.

The shorthand of this template is lsp or lp.

There is also a shorthand named sp that only takes one parameter and always uses the spacing .15em.

Parameters

 * (optional): The letter spacing. Defaults to 0.15em. Always use text-relative units such as em; absolute units like px will not adjust themselves if the text size changes. See H:PXWIDTH for more details.
 * : The text to be spaced.
 * (optional): Following unspaced text. Useful for following punctuation that butts up against the last character of the spaced text.

Extra pairs
This template optionally supports up to 5 spaced–unspaced pairs: These can be useful for certain lines of text that contain several unspaced punctuation marks. Remember that letter spacing always applies to the right side of every letter.

If any of these contain leading or trailing spaces, use, or they will be removed by the parser.

Last characters
If you need to exclude the last character(s) of spaced text (usually due to excess padding) but still want these characters to be wrapped (usually for clearer syntax), you can use the third parameter, which passes its input as-is. Furthermore, you can use the rest of the parameter pairs for subsequent spaced sections.

In the following examples, the coloured boxes show the extent of the "spaced" text.

C.

}}

Compare to...

C.

.

}}

Several pairs
Comparison of syntax appearance:

These examples produce the same output, but the template syntax is clearer in the second:

2.

p.I.

2.

p.I.