Teamplaid:Spaces
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 a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This teamplaid 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 teamplaid's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this teamplaid. Please discuss any changes on the talk page before implementing them. |
This template is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
A template to produce one or more non-breaking spaces (
character entities).
Ùsaid - Usage
Co-chàradh - 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 ({{Spaces|1}}
) 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 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 Controlling line-breaking in infoboxes for details.
Teamplaid-dàta - TemplateData
TemplateData for Spaces
Inserts one or more non-breaking spaces
Paramadair | Tuairisgeul | Seòrsa | Staid | |
---|---|---|---|---|
Quantity | 1 | How many non-breaking spaces to insert
| Àireamh | roghainneil |
Type | 2 | Non-default types (in decreasing order of width): em, fig, en, thin, hair
| Sreang | roghainneil |
Faic cuideachd - Also see
- {{Pad}} to add inline spacing in units of px, em or ex
- {{0}} to add invisible characters
- {{Nowrap|item}} to stop the line wrapping of any part of Item
- {{Nb5}} to insert five non-breaking spaces
- {{Indent}} indents by a specified number of spaces (with leading newline)
- {{In5}} indents by five or a specified number of spaces (with no leading newline)
- {{Block indent}}, to indent an entire block of content, similar to a block quotation (uses
<div>
and CSS margins) - {{Sp}}, to add regular, breaking space
The above documentation is transcluded from Teamplaid:Spaces/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |