Template:SC/Spaces/doc
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [create]
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Spaces/doc/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Spaces/doc/doc. (View all subpages of this page.)
Template:Template shortcut Template:Wikipedia template
A template to produce one or more non-breaking spaces ( character entities).
Usage
- Syntax
{{spaces|N|type}}...... to produce N consecutive non-breaking spaces (where N is a whole number larger than zero) of the type specified by the second parameter:em,en,fig,hair,thin, or if not specified, a non-breaking space (<source inline lang=xml> </source>) the same width as a standard space.
{{space|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.
TemplateData
<templatedata> {
"description": "Inserts one or more non-breaking spaces",
"params": {
"1": {
"label": "Quantity",
"description": "How many non-breaking spaces to insert",
"type": "number",
"default": "1"
},
"2": {
"label": "Type",
"description": "Non-default types (in decreasing order of width): em, fig, en, thin, hair",
"type": "string",
"default": " "
}
}
} </templatedata>