' ' is the HTML encoding for a non-breaking space, which is a space that doesn't get removed by the browser on rendering. If you see this on a page (and not source code) it could mean the server got ' ' from the database and encoded it before it sent it to the browser so it showed up in the page. In the example below, bobby copied and pasted his story, but a bug caused the. Major Pictures: Major Photos / Images. Do you think NBFCs as banks create more problems than solutions?
- {{ }}
- {{nbs}}
- {{nbsp}}
- {{nbsp;}}
- {{space}}
- {{spcs}}
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
This template is used on approximately 2,580,000 pages, or roughly 5% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.Transclusion count updated automatically (see documentation). |
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
A template to produce one or more non-breaking spaces (
character entities).
Usage
Syntax
{{spaces|N|type}}
produces N consecutive non-breaking spaces (where N is a whole number larger than zero) of the type specified by the second parameter (which are ordered by decreasing space width): em
, fig
, en
, thin
, hair
. If type is not specified, N non-breaking spaces (
) are produced. A non-breaking space has the same width as a standard space, whose width is between the width of en
and thin
.
{{spaces|type}}
produces a single non-breaking space of the type indicated.
Controlling line-breaking in infoboxes
This template, usually as its alias {{nbsp}}
, may be used with {{wbr}}
and {{nowrap}}
to control line-breaking in bulletless lists in infoboxes, to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc#Controlling line-breaking in infoboxes for details.
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.TemplateData for Spaces
Inserts one or more non-breaking spaces
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quantity | 1 | How many non-breaking spaces to insert
| Number | optional |
Type | 2 | Non-default types (in decreasing order of width): em, fig, en, thin, hair
| String | optional |
See also
- {{0}} to add invisible characters
- {{block indent}} to indent an entire block of content, similar to a block quotation (uses
<div>
and CSS margins) - {{nowrap|item}} to stop the linewrapping of any part of item
Alternatively called a fixed space or hard space, NBSP (non-breaking space) is used in programming and word processing to create a space in a line that cannot be broken by word wrap. With HTML, allows you to create multiple spaces that are visible on a web page and not only in the source code.
Creating a fixed space in a word processor and other programs
To create a fixed or hard space in a word processor such as Microsoft Office or LibreOffice, use one of the keyboard shortcuts below.
Microsoft Windows
Ctrl+Alt+Spacebar, or Ctrl+Spacebar.
Or, hold down Alt and press 0160 or 255 on the num pad.
macOS
Option+Spacebar.
Microsoft Word
Ctrl+Shift+Spacebar.
Picture Sys Major    Ys Flight Addon Page Link
WordPerfect
Ctrl+Spacebar.
LibreOffice
Picture Sys Major    Ys Flight Addon Pages
Ctrl+Spacebar (before 3.0) or Ctrl+Shift+Spacebar (after 3.0).
Creating an NBSP in HTML
An example of how a user may insert an NBSP in HTML would be by adding the below extended HTML tag.
or
With the examples above, using this tag would allow you to create multiple spaces in a row, something that cannot be done by only pressing the Spacebar. To create multiple spaces, add one of the above non-breaking space tags for each time you want an extra space. For example, if you wanted ten extra spaces in front of text you could add ten of these tags.
TipIf you need to indent or add extra spacing to a paragraph, sentence, or another portion of your web page, we suggest using CSS instead of multiple non-breaking spaces. You can also use the <pre> tag.
Related pages
- Full listing of extended special HTML characters.
Null character, Programming terms, Spacebar