Jump to content

Template:Letter-spacing/doc

From Wikisource

This template simplifies formatting text that has letter-spacing.

The default value is 1 em; if this value is what you want, you can leave the second parameter blank. Otherwise specify the spacing you want, in either px or em, in the second positional parameter.

{{sp}} is a redirect here; you can use it instead to save typing.

Examples

[edit]
{{letter-spacing|your text goes here}}

produces:

your text goes here

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

produces:

your text goes here

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

produces:

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|192|1.5em|2.}}}}

C.

1922.

Compare to...

{{c|C.

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

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

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

C.

1922.

C.

1922.

Comparison of syntax appearance:

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

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

1922.

1922.

See also

[edit]