Difference between revisions of "Template:En dash/doc"

From blackwiki
Jump to navigation Jump to search
imported>EEng
(initial doc)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(23 intermediate revisions by 16 users not shown)
Line 1: Line 1:
This is a hyphen (-). It has the same function as the code <code>&amp;#45;</code> or the symbol -. It comes in handy when an editor wishes to make explicit that he or she really does intend a hyphen, so that other editors will, perhaps, think twice before mindlessly changing to ndash or whatever. Also, by allowing <code>{{t|hyphen}}</code> to be coded instead of  <code>&amp;#45;</code>, it avoids the wrath of people who think html escapes are some kind of abomination. (There does not seem to be a symbolic escape e.g. <code>&amp;hyphen;</code>, as far as I can tell.)
+
{{documentation subpage}}
 +
{{COinS safe}}
 +
{{Template shortcuts |ndash|en dash|nsndns}}
 +
{{Format TemplateData|JSON={"params":{},"description":
 +
"This template produces an [[en dash]] () character. It has the same effect as the HTML escape sequence <code>&amp;ndash;</code>."
 +
} }}
 +
Syntax:<code><nowiki>{{en dash}}</nowiki></code>
 +
== See also ==
 +
* [[MOS:DASH]] for the guideline on dashes
 +
* {{tl|Spaced en dash space}}
 +
* {{tl|Spaced en dash}}
 +
* {{tl|Em dash}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
[[Category:Typing-aid templates]]
 +
}}</includeonly>

Latest revision as of 01:24, 25 April 2020

Template:Template shortcuts

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for En dash

This template produces an en dash (–) character. It has the same effect as the HTML escape sequence &ndash;.

Syntax:{{en dash}}

See also