ފަންވަތް:Nowrap/doc

ވިކިޕީޑިއާ އިންވިކިޕީޑިއާ
ފުންމަވާ: ސަމުގާ, ހޯއްދަވާ
This is the

{{nowrap}} template.

This template prevents word wraps (line breaks) in text and links that contain spaces.

Before you use this template you might want to read up on Wikipedia:Line break handling.

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

Lots of text {{nowrap|10 kg (22 lb)}} more text.

It may render like this:

Lots of text 10 kg (22 lb)
more text.

Or like this:

Lots of text
10 kg (22 lb) more text.

But it will not render like this:

Lots of text 10 kg (22
lb) more text.

Handling interpreted characters[އުނިއިތުރު ގެންނަވާ]

Templates have problems to handle parameter data that contains equal signs "=" or vertical bars "|". In such cases consider using
{{nowrap begin}} +

{{nowrap end}} instead. But there are also workarounds:

For text that includes an equal sign "=", precede the text with 1=. For example:

{{nowrap|1=2 + 2 = 4}}

Which renders this:

2 + 2 = 4

For text that includes a vertical bar "|", escape the bar(s) with &#124; or {{!}}. For instance like this:

{{nowrap|&#124;2&#124; < 3}}

Or like this:

{{nowrap|{{!}}2{{!}} < 3}}

Which renders this:

|2| < 3

Technical details[އުނިއިތުރު ގެންނަވާ]

The actual code that does the job is this HTML+CSS code:

<span style="white-space:nowrap">This text will not wrap</span>

Spaces at the beginning or end of your text will fall outside the no-wrap tag in the rendered text due to Wikimedia rendering mechanisms.

{{nobr}} and

{{nobreak}} redirect here.

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

{{nowraplinks}} - Prevents wraps inside links and only allows wraps between the links and in normal text. Very useful for link lists and easy to use.

{{nowrap begin}} - Prevents wraps in both text and links. For the trickier wrapping cases when you need full control, for instance in very complex link lists.
https://dv.wikipedia.org/wiki/%DE%8A%DE%A6%DE%82%DE%B0%DE%88%DE%A6%DE%8C%DE%B0:Nowrap/doc
dv.wikipedia.org
crawl=CC-MAIN-2017-22
31927
application/http; msgtype=response
sha1:AKUBKVBM7VILJEYDW3VUCKUC5SQALJ6G
<urn:uuid:23c6bc63-26d4-43af-b15f-c07a8e5d8052>
2017-05-24T07:45:52Z
208.80.154.224
text/html
sha1:C5YPEVSH7LCPKXW5HOLJGM65VBZTYCJS
<urn:uuid:533024af-4aeb-45dc-81ab-ed96b9258929>
https://dv.wikipedia.org/wiki/%DE%8A%DE%A6%DE%82%DE%B0%DE%88%DE%A6%DE%8C%DE%B0:Nowrap/doc
length
response
<urn:uuid:3f572bfc-abfa-4530-9a9d-e37d91e81bb4>
robots: classic
hostname: ip-10-185-224-210.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2017-22
operator: Common Crawl Admin
description: Wide crawl of the web for May 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf