الفرق بين النسختين بتاع: «قالب:Ndash/doc»

تم حذف المحتوى تمت إضافة المحتوى
ص بوت: إصلاح التحويلات
ص بوت: تغييرات تجميلية
 
سطر 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
__NOTOC__
This is the '''ndash''' template, it looks like this " &ndash; ".
 
It works similarly to the HTML markup sequence "<code>'''&amp;nbsp;&amp;ndash;'''&nbsp;</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]] "'''&middot;·'''" or a [[Template:•|bullet]] "&bull;", but shorter than a [[قالب:Em dash|mdash]] "&mdash;". (An en dash is half the width of an [[Dash#Em dash|em dash]].)
 
=== Normal usage ===
سطر 17:
 
It will render one space on each side of the dash, like this:
:[[Salt]] &ndash; [[Pepper]]
 
If it line breaks then the line break will come ''after'' the dash, not before, like this:
:[[Salt]] &ndash;
:[[Pepper]]
 
سطر 33:
 
As before it will render one space on each side of the dashes, like this:
:[[Salt]] &ndash; [[Pepper]] &ndash; [[Curry]] &ndash; [[Saffron]]
 
And if it line breaks then the line break will come ''after'' one of the dashes, not before, like this:
:[[Salt]] &ndash; [[Pepper]] &ndash;
:[[Curry]] &ndash; [[Saffron]]
 
=== Incorrect usage ===
سطر 47:
 
Both of them will render exactly as before, with just one space on each side of the dash, like this:
:[[Salt]] &ndash; [[Pepper]]
 
And it will still only line break ''after'' the dash, like this:
:[[Salt]] &ndash;
:[[Pepper]]
 
سطر 60:
 
Then it will render with ''two'' spaces before the dash, and one after, like this:
:[[Salt]] &nbsp;&ndash; [[Pepper]]
 
And if it line breaks it might break ''before'' the dash, like this:
:[[Salt]]
:&nbsp;&ndash; [[Pepper]]
 
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
|-
| &ndash;
| align="left" | ndash
|-
| &mdash;
| align="left" | mdash
|}
سطر 109:
There are several other templates with similar functionality:
 
* {{tn|·}} – Bold middot "'''&middot;·'''" is mostly used for dotted lists.
* {{tn|•}} – Bullet "&bull;" is mostly used for dotted lists that use small font sizes.
* {{tl|mdash}} – Mdash "&mdash;" is an [[Dash#Em dash|em dash]], a longer dash.
 
<includeonly>