Template:Spaces/doc: Difference between revisions
text editing |
m 1 revision imported: Initial Setup |
(No difference)
| |
Latest revision as of 09:15, 12 April 2026
| This is a documentation subpage for Template:Spaces. It contains usage information, categories and other content that is not part of the original Template page. |
| Uses Lua: |
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.
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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
- {{nowrap|item}} to stop the linewrapping of any part of item