Wikipedia:How to make dashes

Compared to the 100-meter dash, dashes on Wikipedia are easy.

The hyphen-minus (keyboard hyphen), en dash, em dash, and mathematical minus/negative symbols are different (see WP:Manual of Style/Dashes). Pressing the - on your keyboard, usually next to the 0 (zero) key, will produce a hyphen-minus. Methods of producing the other characters are described below.

Methods that work on any platform

- + −
hyphen-minus, plus, minus signs compared

The CharInsert toolbar

To insert a dash or minus sign, use the toolbar below the edit box. Click where you want the character to be inserted, select "Insert" from the pull-down menu, and then:

Templates or HTML codes

Copy and paste

Find an en dash (–), an em dash (—), or a minus sign (−) already in some text—in this sentence, for example—and paste it where a new one is wanted.

Platform-dependent methods

Mac

For Mac (or iOS/iPadOS with an external keyboard) use:

Alternatively for Mac:

Linux

If you have a compose key:

Windows

For Windows on a keyboard with a numeric keypad:

iOS and Android

For iOS (iPhone and iPad) and Android:

See also