Jump to content

Template:En: Difference between revisions

From Wiki - Scioly.org
Created template for en dashes.
 
m Removed extra line break.
 
Line 1: Line 1:
–<noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
<noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 18:58, 7 August 2020

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.