සැකිල්ල:nb...
[…]
- පහත දැක්වෙන උපදෙස්, සැකිල්ල:nb.../documentation හි පිහිටා ඇත. සැකිල්ල:nb.../documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • යළි යොමු • transclusions • errors (parser/module) • sandbox (වෙනස)
Usage
[සංස්කරණය]This template is a companion to {{...}}
. Both are used to insert bracketed ellipses into displayed text. Using these templates helps to distinguish ellipses inserted by Wiktionary editors from those that appear in the texts quoted from.
While {{...}}
adds a space before and after the ellipsis, {{nb...}}
inserts a non-breaking space in front of the ellipsis and no space at all after it, making it useful for adding an ellipsis before a punctuation mark.
For a longer explanation of the difference between {{...}}
and {{nb...}}
, see below.
If the source itself contains an ellipsis, rather than use this template, replicate the ellipsis in the quotation with …
and, if desired, annotate it with <!--sic-->
or an appropriate comment.
Parameters
[සංස්කරණය]The template takes the following optional parameters:
|1=
– any text specified as the first parameter in the template appears as a tooltip if a cursor is moved over the ellipsis. (Currently, this does not work well on mobile devices.)|otherforms=
– if|otherforms=yes
or|otherforms=1
is specified, the template displays "and other forms" instead of an ellipsis. This may be used in the etymology sections of entries to indicate multiple forms of words in a tooltip.|text=
– this replaces the ellipsis with the text specified using the parameter.|nospace=
– to suppress the space before the opening bracket, specify|nospace=1
or|nospace=yes
. This may be desirable for some formatting purposes.
Examples
[සංස්කරණය]- Wikitext:
The noun is derived from {{inh|en|enm|socour}}{{nb...|soccour, soccur, socor, socore, socour, socoure, socowre, socur, socure, soker, sokor, sokore, sokour, sokoure, sokur, soucore, soucour, soukour, succor, succour, succoure, succur, succure, sucour, sucur, suker, sukour|otherforms=1}}, [...]
- Result: The noun is derived from මධ්යකාලීන ඉංග්රීසි socour [and other forms], [...]
Explanation
[සංස්කරණය]The {{...}}
template inserts one space before and one space after the ellipsis, as shown in the example below:
- Wikitext:
Pack my box{{...}}with five dozen {{...}} jugs.
- Result: Pack my box […] with five dozen […] jugs.
On the other hand, the {{nb...}}
template inserts a non-breaking space in front of the ellipsis and no space at all after it:
- Wikitext:
Pack my box with five dozen liquor bottles{{nb...}}, and so forth{{nb...}}.
- Result: Pack my box with five dozen liquor bottles […], and so forth […].
This template also avoids the problem of a line breaking just before or after the ellipsis, which causes either "widowing" of punctuation mark after the ellipsis, or both the ellipsis and the punctuation mark after it – that is, these elements are pushed to the start of the next line – which is regarded as not aesthetically pleasing and distracting to readers.
See also
[සංස්කරණය]{{...}}
{{sic}}
{{sqbrace}}
- Wiktionary:Quotations