Template:Mdash/doc: Difference between revisions

m
Text replacement - " " to " "
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> __NOTOC__ {{caution | Due to the {{wpd|WP:DASH|discouragement}} of spaced em da…')
 
m (Text replacement - " " to " ")
 
Line 8: Line 8:
This is the '''mdash''' template, it looks like this " &mdash; ".  
This is the '''mdash''' template, it looks like this " &mdash; ".  


It works similarly to the html markup sequence "<code>'''&amp;nbsp;&amp;mdash;'''&nbsp;</code>". That is, a [[non-breaking space]], a long dash (known as an [[Dash#Em dash|em dash]]) and a normal space.
It works similarly to the html markup sequence "<code>'''&amp;nbsp;&amp;mdash;''' </code>". That is, a [[non-breaking space]], a long dash (known as an [[Dash#Em dash|em dash]]) and a normal space.


{{tl|—}} and {{tl|emdash}} redirect here and can be used as alternative names for this template.
{{tl|—}} and {{tl|emdash}} redirect here and can be used as alternative names for this template.
Line 65: Line 65:


Then it will render with ''two'' spaces before the dash, and one after, like this:
Then it will render with ''two'' spaces before the dash, and one after, like this:
:[[Salt]] &nbsp;&mdash; [[Pepper]]
:[[Salt]] &mdash; [[Pepper]]


And if it line breaks it might break ''before'' the dash, like this:
And if it line breaks it might break ''before'' the dash, like this:
:[[Salt]]  
:[[Salt]]  
:&nbsp;&mdash; [[Pepper]]
: &mdash; [[Pepper]]


=== Technical details ===
=== Technical details ===