Difference between revisions of Template:Spd/documentation
(Category:Wikipedia character-substitution templates has been moved to Category:Character-substitution templates) |
Viceroy Sam (talk | contribs) m (1 revision imported: Template:Aligned table Template:Also Template:Arrow/core Template:Basepage subpage Template:Box-header-round/doc Template:C Template:CNone Template:Cascade-protected template Template:Category link with count Template:Check mark templates Template:Citation Style documentation/ Template:Cite DVD notes Template:Clr Template:Collapse top/TemplateData Template:Column-width Template:...) |
Latest revision as of 00:27, 9 June 2020
This template should always be substituted. |
This is the other spaced en dash template; it renders like this (without the quotation marks): " – ". It is intended to be substituted and uses a Unicode en-dash character rather than the ASCII equivalent <syntaxhighlight lang="text" class="" id="" style="" inline="1">–</syntaxhighlight>, and renders the following: <syntaxhighlight lang="text" class="" id="" style="" inline="1"> – </syntaxhighlight> i.e. a non-breaking space, an en dash and a normal space that will line-break and collapse.
This template has been designed as an alternative to {{Spaced ndash}}, which performs the same function but when substituted is less easily read and edited in the wikicode editing window. {{Spd}} is thus preferable to the older, ASCII-based template mentioned when substituted, in a similar way to {{mdash}}.
Example
- I walked past a red car{{subst:Spd}}that was parked next to a blue car{{subst:Spd}}when I fell over.
will render as:
- I walked past a red car – that was parked next to a blue car – when I fell over.
This will appear in the editing window as:
- <syntaxhighlight lang="text" class="" id="" style="" inline="1">I walked past a red car – that was parked next to a blue car – when I fell over.</syntaxhighlight>