Jump to content

Template:En

From Wiki - Scioly.org
Revision as of 18:36, 7 August 2020 by Bernard (talk | contribs) (Created template for en dashes.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

–

Template documentation
See the related template for em dashes, Template:Em.

Adds an en dash (– ) inline without additional whitespace. No arguments are required. Using this template may be preferable because different lengths of dashes appear the same in monospace markup: - (hyphen, -) vs. – (en dash, – ) vs. — (em dash, —). See the table below for correct usage of each.

Usage

Hyphen - Connecting compounded words (e.g. good-looking, twentieth-century, twenty-two) or breaking long words across multiple lines
En Dash – Specifying ranges of values (e.g. 1998–

present, 1– 10) or distance between locations (e.g. Japan– USA)

Em Dash — For creating separation or emphasis in clauses of sentences (e.g. Science Olympiad—the greatest activity ever—defines my life.)

Execution

{{en}} - adds a single en dash (–

)

Examples

Code Result
Scioly.org has been active from 1998{{en}}present.

Scioly.org has been active from 1998– present.