Wikipedia:How to make dashes
{{Wikipedia how to|WP:HTMD}}
File:London 2012 Olympic 100m final start.jpg, dashes on Wikipedia are easy.]]
The hyphen-minus (keyboard hyphen), en dash, em dash, and mathematical minus/negative symbols are different {{crossref|(see WP:Manual of Style/Dashes)}}. Pressing the {{Key press|-}} on your keyboard, usually next to the {{Key press|0}} (zero) key, will produce a hyphen-minus. Methods of producing the other characters are described below.
Methods that work on any platform
=The [[Help:CharInsert|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:
- To insert an en dash (–), click on the first character (the shorter dash).
- To insert an em dash (—), click on the second character (the longer dash).
- To insert a minus sign (−), click on the {{Code|−}} between the {{Code|±}} and the {{Code|×}}.
=[[Help: Template|Templates]] or [[List of XML and HTML character entity references|HTML codes]]=
- For an en dash, type
or {{Code|–}}.{{ndash}} - For a "spaced en dash" (with a non-breaking space before the dash and a regular space after it) type
or{{spaced ndash}}
.{{snd}} - For an em dash, type
or {{Code|—}}.{{mdash}} - For a minus sign, type {{Code|−}}.
=[[Cut,_copy, and paste|Copy and paste]]=
Find an en dash (–), an em dash (—), or a minus sign (−) already in some text{{mdash}}in this sentence, for example{{mdash}}and paste it where a new one is wanted.
Platform-dependent methods
{{Hatnote|To make a dash using the Unicode numbers 2013 (en dash), 2014 (em dash) or 2212 (minus sign), see {{slink|Unicode input|Hexadecimal input}}.}}
= Mac =
For Mac (or iOS with an external keyboard) use:
- {{Key press|Opt|-}} (en dash) or {{key press|Opt|Shift|-}} (em dash).
Alternatively for Mac:
- Pull down the Input menu and select Show Emoji & Symbols. Then select from Punctuation.
- If the Input menu is not displayed, open Language & Region within System Preferences. Then click on Keyboard Preferences... and check Show input menu in menu bar.
= Linux =
- Use {{Key press|AltGr}}{{key press|-}} (en dash) or {{Key press|AltGr}}{{key press|Shift}}{{key press|-}} (em dash).
If you have a compose key:
- Use {{Key press|Compose}}{{key press|-}}{{key press|-}}{{key press|.}} (en dash) or {{Key press|Compose}}{{key press|-}}{{key press|-}}{{key press|-}} (em dash).
= Windows =
For Windows on a keyboard with a numeric keypad:
- Use {{Key press|Alt}}+{{key press|0}}{{key press|1}}{{key press|5}}{{key press|0}} (en dash) or {{Key press|Alt}}+{{key press|0}}{{key press|1}}{{key press|5}}{{key press|1}} (em dash) using the numeric keypad.
= iOS and Android =
For iOS (iPhone and iPad) and Android:
- Hold the {{key press|-}} (hyphen) on the on-screen keyboard until a popup appears with choices, including the en dash and em dash.
See also
External links
- [https://autohotkey.com AutoHotkey] A scripting language for Windows. Character replacement needs only short one-line scripts.
- [http://www.kbdedit.com KbdEdit] Modify an existing keyboard or create a new keyboard.
- [https://addons.mozilla.org/en-us/firefox/addon/abctajpu/ abcTajpu] An add-on for the Firefox browser.
{{reflist}}