Template:Nowrap
- English
- español
- 日本語
- Deutsch
- français
- 中文
- русский
- italiano
- português
- polski
- Nederlands
- العربية
- аԥсшәа
- Acèh
- Afrikaans
- None
- алтай тил
- አማርኛ
- aragonés
- Ænglisc
- ܐܪܡܝܐ
- الدارجة
- مصرى
- অসমীয়া
- asturianu
- Atikamekw
- авар
- azərbaycanca
- تۆرکجه
- башҡортса
- Basa Bali
- Boarisch
- Bajau Sama
- беларуская
- български
- भोजपुरी
- ပအိုဝ်ႏဘာႏသာႏ
- bamanankan
- বাংলা
- བོད་ཡིག
- brezhoneg
- bosanski
- Batak Mandailing
- буряад
- català
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- нохчийн
- Cebuano
- Chamoru
- ᏣᎳᎩ
- کوردی
- corsu
- čeština
- kaszëbsczi
- словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
- чӑвашла
- Cymraeg
- dansk
- Zazaki
- dolnoserbski
- Kadazandusun
- डोटेली
- ދިވެހިބަސް
- Ελληνικά
- Esperanto
- eesti
- euskara
- فارسی
- mfantse
- suomi
- Na Vosa Vakaviti
- føroyskt
- arpetan
- Nordfriisk
- furlan
- Frysk
- Gaeilge
- Gagauz
- 贛語
- Gàidhlig
- galego
- گیلکی
- Avañe'ẽ
- गोंयची कोंकणी / Gõychi Konknni
- 𐌲𐌿𐍄𐌹𐍃𐌺
- ગુજરાતી
- wayuunaiki
- gungbe
- Gaelg
- Hausa
- 客家語 / Hak-kâ-ngî
- Hawaiʻi
- עברית
- हिन्दी
- Fiji Hindi
- hrvatski
- hornjoserbsce
- Kreyòl ayisyen
- magyar
- հայերեն
- Արեւմտահայերէն
- interlingua
- Jaku Iban
- Bahasa Indonesia
- Igbo
- Ilokano
- гӀалгӀай
- Ido
- íslenska
- la .lojban.
- Jawa
- ქართული
- Qaraqalpaqsha
- Taqbaylit
- адыгэбзэ
- Kumoring
- Gĩkũyũ
- қазақша
- kalaallisut
- ភាសាខ្មែរ
- ಕನ್ನಡ
- 한국어
- перем коми
- къарачай-малкъар
- کٲشُر
- kurdî
- коми
- кыргызча
- Latina
- Ladino
- Lëtzebuergesch
- лакку
- лезги
- Lingua Franca Nova
- Limburgs
- Ligure
- Ladin
- lombard
- lingála
- ລາວ
- lietuvių
- latviešu
- मैथिली
- Basa Banyumasan
- мокшень
- Malagasy
- олык марий
- Māori
- Minangkabau
- македонски
- മലയാളം
- монгол
- ဘာသာမန်
- मराठी
- кырык мары
- Bahasa Melayu
- Malti
- Mirandés
- မြန်မာဘာသာ
- эрзянь
- Napulitano
- Nedersaksies
- नेपाली
- नेपाल भाषा
- ߒߞߏ
- Sesotho sa Leboa
- Chi-Chewa
- occitan
- livvinkarjala
- ଓଡ଼ିଆ
- ирон
- ਪੰਜਾਬੀ
- Pangasinan
- Kapampangan
- Papiamentu
- Pälzisch
- پنجابی
- پښتو
- ikirundi
- română
- tarandíne
- руски
- संस्कृतम्
- саха тыла
- sardu
- sicilianu
- Scots
- سنڌي
- davvisámegiella
- srpskohrvatski / српскохрватски
- Taclḥit
- တႆး
- සිංහල
- Simple English
- slovenčina
- سرائیکی
- slovenščina
- Gagana Samoa
- anarâškielâ
- chiShona
- Soomaaliga
- shqip
- српски / srpski
- Sranantongo
- Sunda
- svenska
- Kiswahili
- ꠍꠤꠟꠐꠤ
- ślůnski
- தமிழ்
- ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
- తెలుగు
- тоҷикӣ
- ไทย
- ትግርኛ
- Tagalog
- Setswana
- Tok Pisin
- Türkçe
- татарча / tatarça
- тыва дыл
- удмурт
- українська
- اردو
- oʻzbekcha / ўзбекча
- vèneto
- Tiếng Việt
- Volapük
- Winaray
- 吴语
- хальмг
- მარგალური
- ייִדיש
- Yorùbá
- Vahcuengh
- Zeêuws
- ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
- isiZulu
{{{1}}}
Category:Semi-protected templates#Nowrap![]() | This template uses TemplateStyles: |
{{Nowrap}} or {{nowrap}} stops wrapping of specific text. It prevents word wraps (line breaks) within text or inside a link which contains spaces, hyphens ("-"), or, in some browsers, parentheses. The size of the nowrapped text becomes the minimum width of that paragraph and that can negatively influence the ability of the page to adapt to smaller screens, or alternate representations of the content.
Usage
{{Nowrap|these words stay together}}
{{Nowrap|a, b, c, or d.}}
{{Nowrap| merry-go-round }}
{{Nowrap| [[4-part harmony]] }}
{{Nowrap| [[Cascading Style Sheets|CSS]] }}
{{Nowrap| [[#Examples|Examples section]] }}
Examples
"They held {{Nowrap|10 kg (22 lb)}} in total. "
|
"He encountered {{Nowrap|a tiger}} in the woods. "
|
Handling equal-sign or bar
Templates have problems with parameter data that contains equal-signs "=
" or vertical bars "|
" (pipes). Note that this does not apply if the equal-sign "=
" or vertical bar "|
" is inside a wikilink or another template. However, there are workarounds:
For text that includes an equal-sign "=", precede the text with 1=
, use a triple-brace unnamed parameter {{{|=}}}
, or the {{=}}
template. For example:
{{Nowrap|1=2 + 2 = 4}}
,{{Nowrap|2 + 2 {{{|=}}} 4}}
, or{{Nowrap|2 + 2 {{=}} 4}}
which all render as this:
- 2 + 2 = 4.
For text that includes a vertical bar "|", escape the bar(s) with "|
" or "{{!}}
". For instance, put two bars "|6|" like this:
{{Nowrap||6| < 7}}
or{{Nowrap|{{!}}6{{!}} < 7}}
Which renders this:
- |6| < 7
Technical details
The actual code that does the job is this HTML <span>
tag that applies a class to the text inside the template:
<span class="nowrap">This text will not wrap</span>
The class nowrap
receives the CSS property white-space: nowrap;
in MediaWiki:Common.css.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Nowrap
Prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (-).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | Text or link to be protected. | String | required |
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.