Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:How to make dashes

From Wikipedia, the free encyclopedia
This help page is ahow-to guide.
It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus.
Compared to the100-meter dash, dashes on Wikipedia are easy.

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

Methods that work on any platform

[edit]

TheCharInsert toolbar

[edit]

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 between the± and the×.

Templates orHTML codes

[edit]
  • For an en dash, type{{ndash}} or–.
  • For a "spaced en dash" (with anon-breaking space before the dash and a regular space after it) type{{spaced ndash}} or{{snd}}.
  • For an em dash, type{{mdash}} or—.
  • For a minus sign, type−.

Copy and paste

[edit]

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

[edit]
To make a dash using the Unicode numbers 2013 (en dash), 2014 (em dash) or 2212 (minus sign), seeUnicode input § Hexadecimal input.

Mac

[edit]

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

  • ⌥ Opt+- (en dash) or⌥ Opt+⇧ Shift+- (em dash).

Alternatively for Mac:

  • Pull down theInput menu and selectShow Emoji & Symbols. Then select from Punctuation.
  • If theInput menu is not displayed, openLanguage & Region withinSystem Preferences. Then click onKeyboard Preferences... and checkShow input menu in menu bar.

Linux

[edit]
  • UseAltGr- (en dash) orAltGr⇧ Shift- (em dash).

If you have acompose key:

  • UseCompose--. (en dash) orCompose--- (em dash).

Windows

[edit]

For Windows on a keyboard with anumeric keypad:

  • UseAlt+0150 (en dash) orAlt+0151 (em dash) using the numeric keypad.

iOS and Android

[edit]

For iOS (iPhone and iPad) and Android:

  • Hold the- (hyphen) on the on-screen keyboard until a popup appears with choices, including the en dash and em dash.

See also

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:How_to_make_dashes&oldid=1167980262"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp