ފަންވަތް:Snd

ވިކިޕީޑިއާ އިންވިކިޕީޑިއާ

 –

Documentation icon ފަންވަތް ޑޮކިއުމަންޓޭޝަން[view] [edit] [history] [ޕާރޖް]


Notice This template should not be used in citation templates such as Citation Style 1 and ފަންވަތް:Cs2, because it includes markup that will pollute the COinS metadata they produce; see COinS in Wikipedia.

This is the spaced ndash template; it looks like this " – ".

It works similarly to the HTML markup sequence  –  i.e. a non-breaking space (which will not line-break and will not collapse together with normal spaces that come before the template), a short dash (known as an en dash), and a normal space (which will line-break and will collapse together with normal spaces that come after the template).

Among other uses, this template may be used in lists to provide something stronger than a bold middot "·" or a bullet "•", but shorter than an em dash "—". For horizontal lists, use

{{flatlist}} or class="hlist" instead (see WP:HLIST) Here, the recommended usage is to use no space before the template and one space after the template, like this:

[[Salt]]{{spaced ndash}} [[Pepper]]
This will render one space on each side of the dash, like this:
SaltPepper
A line break will come after one of the dashes, not before, when the spacing is used as suggested, like this:
SaltPepper
CurrySaffron
Here's an example of use for lists
One use of template "Spaced ndash" is within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, or {{spaced ndash}} and not have to insert the ފަންވަތް:Bull,  · , ފަންވަތް:Middot, or ފަންވަތް:Spaced ndash symbol, they can use any of these as a simple macro. The idea being that if you have a table with a list of items, you can insert a spaced short dash (or the other symbols) between items that will appear correct, in that the items always have just one separator between them, and when a list crawls to the next line, the dash hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the symbol hangs on the end of the last item that will fit on the line indicating that additional items follow on the next line as part of this list, but the item only stays on the line if the item and the dash will fit. See the column on the right. In code it is Item1{{spaced ndash}} Item2{{spaced ndash}} Item3{{spaced ndash}} Item4{{spaced ndash}} Item5{{spaced ndash}} etc. (with some smaller items squeezed in to show that the list does not have to be the same number of items per line) but in the box they all fold perfectly once it runs out of space on the line to fit the next item and the dash following.

Normally, in a real box these items would be links, but this is an example.

Item1ފަންވަތް:Spaced ndash Aފަންވަތް:Spaced ndash Bފަންވަތް:Spaced ndash Item2ފަންވަތް:Spaced ndash Item3ފަންވަތް:Spaced ndash Item4ފަންވަތް:Spaced ndash Item5ފަންވަތް:Spaced ndash extra itemފަންވަތް:Spaced ndash Eފަންވަތް:Spaced ndash 1ފަންވަތް:Spaced ndash 2ފަންވަތް:Spaced ndash 3ފަންވަތް:Spaced ndash 4ފަންވަތް:Spaced ndash 5ފަންވަތް:Spaced ndash 6ފަންވަތް:Spaced ndash 7ފަންވަތް:Spaced ndash item that won't attach to prior line unless it fits in the remaining spaceފަންވަތް:Spaced ndash Qފަންވަތް:Spaced ndash A slightly longer itemފަންވަތް:Spaced ndash KKފަންވަތް:Spaced ndash An obviously really even longer item that the dash will hang at its endފަންވަތް:Spaced ndash Item6ފަންވަތް:Spaced ndash Cފަންވަތް:Spaced ndash Item7ފަންވަތް:Spaced ndash Item8ފަންވަތް:Spaced ndash Item9ފަންވަތް:Spaced ndash Item10ފަންވަތް:Spaced ndash Item11ފަންވަތް:Spaced ndash Item12ފަންވަތް:Spaced ndash Dފަންވަތް:Spaced ndash Item13ފަންވަތް:Spaced ndash Item14ފަންވަތް:Spaced ndash Item15ފަންވަތް:Spaced ndash Item16ފަންވަތް:Spaced ndash Item17ފަންވަތް:Spaced ndash Item18

The space on the end makes sure the dash doesn't touch the edge of the box, either

Dot sizes[އުނިއިތުރު ގެންނަވާ]

ފަންވަތް:Dot size

See also[އުނިއިތުރު ގެންނަވާ]

{{en dash}}, which produces an (unspaced) en dash.

{{em dash}}, which produces an (unspaced) em dash.