الفرق بين النسختين بتاع: «قالب:Ndash/doc»
تم حذف المحتوى تمت إضافة المحتوى
ص بوت: إصلاح التحويلات |
ص بوت: تغييرات تجميلية |
||
سطر 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
__NOTOC__
This is the '''ndash''' template, it looks like this "
It works similarly to the HTML markup sequence "<code>'''&nbsp;&ndash;''' </code>". That is, a [[non-breaking space]], a short dash (known as an [[Dash#En dash|en dash]]) and a normal space.
{{tn|–}} and {{tl|endash}} redirect here and can be used as alternative names for this template.
This template is used when you want something stronger than a [[Template:·|bold middot]] "'''
=== Normal usage ===
سطر 17:
It will render one space on each side of the dash, like this:
:[[Salt]]
If it line breaks then the line break will come ''after'' the dash, not before, like this:
:[[Salt]]
:[[Pepper]]
سطر 33:
As before it will render one space on each side of the dashes, like this:
:[[Salt]]
And if it line breaks then the line break will come ''after'' one of the dashes, not before, like this:
:[[Salt]]
:[[Curry]]
=== Incorrect usage ===
سطر 47:
Both of them will render exactly as before, with just one space on each side of the dash, like this:
:[[Salt]]
And it will still only line break ''after'' the dash, like this:
:[[Salt]]
:[[Pepper]]
سطر 60:
Then it will render with ''two'' spaces before the dash, and one after, like this:
:[[Salt]]
And if it line breaks it might break ''before'' the dash, like this:
:[[Salt]]
:
Also, this template should ''not'' routinely be used in regular article text and certainly not where an [[em-dash]] would be more appropriate. As a rule, this template should not be used between clauses of a sentence.
سطر 98:
| align="left" | bold bullet
|-
|
| align="left" | ndash
|-
|
| align="left" | mdash
|}
سطر 109:
There are several other templates with similar functionality:
* {{tn|·}} – Bold middot "'''
* {{tn|•}} – Bullet "
* {{tl|mdash}} – Mdash "
<includeonly>
|