Template:Letter-spacing/doc

From Wikisource
Jump to: navigation, search


Documentation[edit]

This template simplifies formatting text that has letter-spacing.

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

Examples[edit]

Spacing[edit]

{{letter-spacing|2px|your text goes here}}

your text goes here

{{letter-spacing|1.5em|your text goes here}}

your text goes here

Last characters[edit]

If for some reason 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 a third unnamed parameter, which simply passes its input as-is:

{{c|C.

{{letter-spacing|1.5em|192|2.}}}}

C.

1922.

Compare to...

{{c|C.

{{letter-spacing|1.5em|1922}}.

{{letter-spacing|1.5em|C.}}

{{letter-spacing|1.5em|1922.}}}}

C.

1922.

C.

1922.

Comparison of syntax appearance:

{{letter-spacing|1.5em|192}}2.

{{letter-spacing|1.5em|192|2.}}

See also[edit]