Jump to content

Wikipedia:How to make dashes: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
top: trim
Using the CharInsert toolbar: if you have a laptop, raise the screen so you can see it. If the power is off (you can usually tell by looking to see if the screen is emitting light or any indicators are blinking) locate the power button to turn the power on. To use the power button to turn the power on, press it. Pressing involves placing the pad of your finger against the button and apply pressure. If you have no fingers, use your nose...
Line 5: Line 5:
==Using the [[Help:CharInsert|CharInsert toolbar]]==
==Using the [[Help:CharInsert|CharInsert toolbar]]==


Edit the article you want to add the dash to, and click where you want the dash to appear, to put the text cursor there. Notice that below the edit box is a toolbar with a pull-down menu, followed by a horizontal list of characters.
To insert a hyphen-minus, just press the {{Key press|-}} on your keyboard, usually next to the {{Key press|0}} (zero) key. To insert a dash or minus sign, do this... As you edit a page, below the edit box is a toolbar with a pull-down menu, followed by a horizontal list of characters.


* To insert a hyphen-minus, just press the {{Key press|-}} on your keyboard, usually located between the {{Key press|0}} (zero) and {{Key press|1==}} keys.
* To insert an endash, select "Insert" in the pulldown menu, then click on the first character (the shorter-looking dash).
* To insert an endash, select "Insert" in the pull-down menu, and click on the first character (the shorter-looking dash).
* To insert an emdash, select "Insert" in the pulldown menu, then click on the second character (the longer-looking dash).
* To insert an emdash, select "Insert" in the pull-down menu, and click on the second character (the longer-looking dash).
* To insert a minus sign, select "Math and Logic" in the pulldown menu, and click on the first character.
* To insert a minus sign, select "Math and Logic" from the pulldown, and click on the first character.


==Using templates or HTML character entities==
==Using templates or HTML character entities==

Revision as of 16:13, 27 October 2018

The hyphen-minus (keyboard hyphen), en dash, em dash, and mathematical minus/negative symbols are different (see WP:Manual of Style/Dashes). Below is information on how to generate these characters.

To insert a hyphen-minus, just press the - on your keyboard, usually next to the 0 (zero) key. To insert a dash or minus sign, do this... As you edit a page, below the edit box is a toolbar with a pull-down menu, followed by a horizontal list of characters.

  • To insert an endash, select "Insert" in the pulldown menu, then click on the first character (the shorter-looking dash).
  • To insert an emdash, select "Insert" in the pulldown menu, then click on the second character (the longer-looking dash).
  • To insert a minus sign, select "Math and Logic" in the pulldown menu, and click on the first character.

Using templates or HTML character entities

For an en dash, type – or {{en dash}} in the edit box.

For an em dash, type — or {{em dash}}.

For a spaced en dash with a non-breaking space before the dash and a regular space after it, type {{spaced ndash}} or {{snd}}.

For a minus sign, type −.

Using copy and paste

One can simply copy an en dash (–) or em dash (—) already in some text and paste it where a new one is wanted.

By keyboard

  • For Mac: ⌥ Opt+- (en dash, '–') or ⌥ Opt+⇧ Shift+- (em dash, '—'), and ignore the rest of the page.
  • For Linux:
    • Use AltGr- (en dash), or AltGr⇧ Shift- (em dash), and ignore the rest of the page.
    • If you have Compose key: Compose--. (en dash) or Compose--- (em dash), and ignore the rest of the page.
  • For Windows:
    • Alt+0150 (en dash) or Alt+0151 (em dash), using the number pad and ignore the rest of the page.
    • If the number pad is not installed, use ⊞ Win+R to open the Run box. Enter charmap to call up the Character Map. Scroll down three times, click on the en or em dash, then on "Select", then on "Copy", and paste the dash into your document. The Character Map icon will appear on the taskbar; if the service will be needed often, right-click the icon and select "Pin to taskbar".
  • For iOS (iPhone and iPad) and Android:
    • Hold the - on-screen keyboard until a pop up appears with choices including the en dash and em dash. If using an external keyboard with iOS, use the Mac advice above; ignore the rest of the page.
  • Alternatively, regardless of platform:

More methods

Method Details
Hex input
Alt++2013
While holding down the left Alt key (the right Alt key does not work if the US-International keyboard is enabled), type +2013 on the numeric keypad; make sure the "Num Lock" light is on. Here you do type the second plus sign. This approach, along with techniques to use if the keypad is unavailable and one prefers not to edit the Windows registry, are described here.
abcTajpu[1] A straightforward add-on for the Firefox browser.
Customise your keyboard with AutoHotkey Make a script (probably in Notepad) to assign actions to any number of key combinations of your choice; load the script automatically whenever you start Windows or load scripts and unload them ad hoc.
KbdEdit[2] Modify an existing keyboard or create a new keyboard.

See also

Footnotes