Template:Spaces
{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}
{{#ifeq:spaces |doc
|
{{#ifeq:show |show
|| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Spaces
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| {{#ifeq: n|n|icon|icon}} | {{#ifeq: n|n
|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. {{safesubst:#if:{{safesubst:#ifeq:Spaces|sandbox|1}}{{safesubst:#ifeq:Spaces|doc|1}}||}} |This template is safe for use in citation templates that produce COinS metadata; see Wikipedia:COinS. If HTML or other markup is added, then its use must be reevaluated.}} |
| File:Information icon4.svg | This template {{#switch:never|may=may be substituted|never=should not be substituted||#default=should always be substituted – use {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes }} |Any accidental transclusions will be automatically substituted by a bot.{{#if:{{safesubst:#switch: |no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes}}||{{#switch:Spaces|doc|sandbox=|}}}}}} {{#if: |For transcluding, use {{[[Template:|]]}} instead.}} |
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes
}}||{{#switch:Spaces|doc|sandbox=|{{#switch:never |never= |may= |#default={{#ifexpr: 0Template:Find page text > 0 | }} }}}}}}
| Warning | This template is used on approximately 731,000 pages, or roughly 51918% 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. |
| File:Lua-Logo.svg | This template uses Lua: |
| File:Lua-Logo.svg | This template uses Lua: |
A template used to insert one or more non-breaking spaces ( ) to prevent automatic line breaks at specific points in the text. This is useful for keeping elements such as numbers and units together.
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 (<syntaxhighlight inline lang=xml> </syntaxhighlight>) 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.
Comparisons
| Name (alias) |
→Instance← |
Example code and ... | Using {{spaces}} | Output | Output {{spaces}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| none | →← |
<syntaxhighlight lang="wikitext" inline="">Text<ref>...</ref></syntaxhighlight> <syntaxhighlight lang="wikitext" inline="">Text<ref>...</ref></syntaxhighlight> |
Text{{#ifeq:Template | Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: | no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Hair (Very thin) |
→{{#if:
|
{{#if: | {{{1}}}
}} |
{{#if: | {{{1}}}
}}
}}
|
<syntaxhighlight lang="wikitext" inline="">Text{{#if: | {{#if: | {{{1}}}
}} |
{{#if: | {{{1}}}
}} }}<ref>...</ref></syntaxhighlight> |
{{#if: | {{{1}}}
}} |
{{#if: | {{{1}}}
}} }}<ref>...</ref></syntaxhighlight> |
Text{{spaces|hair}}<ref>...</ref>
|
Text{{#if: | {{#if: | {{{1}}}
}} |
{{#if: | {{{1}}}
}}
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch:
|
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
{{#if: | {{{1}}}
}} |
{{#if: | {{{1}}}
}}
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch:
|
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
Text{{#iferror:{{#expr:hair}} | {{#switch:hair | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "hair"
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
{{#switch:hair | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "hair"
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
| 2-pixel | →←
|
<syntaxhighlight lang="wikitext" inline="">Text<ref>...</ref></syntaxhighlight> <syntaxhighlight lang="wikitext" inline="">Text<ref>...</ref></syntaxhighlight> |
Text{{#ifeq:Template | Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: | no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Narrow no-break | {{{1}}} | }}←
|
{{{1}}} | }}<ref>...</ref></syntaxhighlight> <syntaxhighlight lang="wikitext" inline="">Text{{#if:| {{{1}}} | }}<ref>...</ref></syntaxhighlight> |
{{{1}}} | }}{{#ifeq:Template | Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: | no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Thin | {{#if: | {{{2}}}}}{{#if:| {{{3}}}}}{{#if:| {{{4}}}}}{{#if:| {{{5}}}}}{{#if:| {{{6}}}}}{{#if:| {{{7}}}}}{{#if:| {{{8}}}}}{{#if:| {{{9}}}}}{{#if:| {{{10}}}}}←
|
{{#if: | {{{2}}}}}{{#if:| {{{3}}}}}{{#if:| {{{4}}}}}{{#if:| {{{5}}}}}{{#if:| {{{6}}}}}{{#if:| {{{7}}}}}{{#if:| {{{8}}}}}{{#if:| {{{9}}}}}{{#if:| {{{10}}}}}<ref>...</ref></syntaxhighlight> <syntaxhighlight lang="wikitext" inline="">Text{{#if:|{{#if: |
{{{2}}}}}{{#if:| {{{3}}}}}{{#if:| {{{4}}}}}{{#if:| {{{5}}}}}{{#if:| {{{6}}}}}{{#if:| {{{7}}}}}{{#if:| {{{8}}}}}{{#if:| {{{9}}}}}{{#if:| {{{10}}}}}<ref>...</ref></syntaxhighlight> | Text{{spaces|thin}}<ref>...</ref>
|
{{#if: | {{{2}}}}}{{#if:| {{{3}}}}}{{#if:| {{{4}}}}}{{#if:| {{{5}}}}}{{#if:| {{{6}}}}}{{#if:| {{{7}}}}}{{#if:| {{{8}}}}}{{#if:| {{{9}}}}}{{#if:| {{{10}}}}}{{#ifeq:Template | Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: | no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
Text{{#iferror:{{#expr:thin}} | {{#switch:thin | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "thin"
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
{{#switch:thin | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "thin"
}}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} | |||||||||||||||
| Standard{{safesubst:#if: | <ref name="" group="{{safesubst:#switch: | note | upper-alpha | upper-roman | lower-alpha | lower-greek | lower-roman = | #default = lower-alpha
}}">Provided here by a non-breaking space ({{ safesubst:#if: |
no |
}} |
Template |
}}}} ).</ref> |
<ref group="{{safesubst:#switch: | note | upper-alpha | upper-roman | lower-alpha | lower-greek | lower-roman = | #default = lower-alpha
}}">Provided here by a non-breaking space ({{ safesubst:#if: |
no |
}} |
Template |
}}}} ).</ref>
}}|| |
<syntaxhighlight lang="wikitext" inline="">Text <ref>...</ref></syntaxhighlight> <syntaxhighlight lang="wikitext" inline="">Text <ref>...</ref></syntaxhighlight> |
Text{{spaces}}<ref>...</ref>
|
Text {{#ifeq:Template | Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: | no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
Text{{#iferror:{{#expr:1}} | {{#switch:{{{1}}} | fig= | en= | em= | thin= | hair= |
}} |
{{#switch:{{{2}}} | fig= | en= | em= | thin= | hair= |
}} }}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}1{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} |
{{#switch:{{{1}}} | fig= | en= | em= | thin= | hair= |
}} |
{{#switch:{{{2}}} | fig= | en= | em= | thin= | hair= |
}} }}{{#ifeq:Template||Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|[{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}{{#if:|}}2{{#if:|}}{{#ifeq:{{safesubst:#switch: |
no | n | f | false | off | 0 = | = | ¬ = | yes | y | t | true | on | 1 = yes | #default = yes
}}|yes|}}]}} | ||||||||||||||
| En | → ←
|
<syntaxhighlight lang="wikitext" inline="">1 3</syntaxhighlight> | 1{{spaces|en}}3
|
1 3 | 1{{#iferror:{{#expr:en}} | {{#switch:en | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "en"
}}3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Figure | →{{#iferror:{{#expr:1}}
|
{{#switch:1 | fig= | en= | em= | thin= | hair= |
}} |
{{#switch:fig | fig= | en= | em= | thin= | hair= |
}} }} |
<syntaxhighlight lang="wikitext" inline="">123 1 3</syntaxhighlight> |
123<br/>1{{spaces|fig}}3
|
123 1 3 |
123 1{{#iferror:{{#expr:fig}} |
{{#switch:fig | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "fig"
}}3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Em | → ←
|
<syntaxhighlight lang="wikitext" inline="">1 3</syntaxhighlight> | 1{{spaces|em}}3
|
1 3 | 1{{#iferror:{{#expr:em}} | {{#switch:em | fig= | en= | em= | thin= | hair= |
}} |
String Module Error: function rep expects a number as second parameter, received "em"
}}3 |
}}{{#if:|
| {{#iferror: {{#ifexpr: > 1 }} |style="column-width: calc( 0.9 * );"}}
| {{#if: |style="column-width: calc( 0.9 * {{{colwidth}}} );"}}
}}><references group="{{safesubst:#switch:
| note | upper-alpha | upper-roman | lower-alpha | lower-greek | lower-roman = | #default = lower-alpha}}" responsive="0"></references>
|
<references group="{{safesubst:#switch:
| note | upper-alpha | upper-roman | lower-alpha | lower-greek | lower-roman = | #default = lower-alpha}}" responsive="1"></references>
Template data
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Spaces|Template:Spaces|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Spaces|Template:Spaces|Template:Spaces}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}.
|#default=[1]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Spaces|Template:Spaces|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ASpaces%7CSpaces%7CSpaces%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Spaces|Template:Spaces|Template:Spaces}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}}.
|#default=[2]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Spaces|its|this}} TemplateData}} }}}}
TemplateData for Spaces
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{safesubst:#if:{{safesubst:#ifeq:Spaces|sandbox|1}}{{safesubst:#ifeq:Spaces|doc|1}}||
}} | other | #default = }} <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": " ", "suggestedvalues": [ "em", "fig", "en", "nbsp", "thin", "hair" ] } } } </templatedata>
See also
- Template:Non breaking hyphen
- Help:Advanced text formatting
- {{0}} to add invisible characters
- {{block indent}} to indent an entire block of content, similar to a block quotation (uses
{{#switch:o
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|div|div}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:div|!--||>}}...
}}{{#switch:o
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:div|!--|-->|</div>}}
}} and CSS margins)
- {{nowrap|item}} to stop the linewrapping of any part of item
{{safesubst:#if:{{safesubst:#ifeq:Spaces|sandbox|1}}{{safesubst:#ifeq:Spaces|doc|1}}|| }}
- Pages with broken file links
- Documentation subpages without corresponding pages
- Templates not safe for use in citation templates
- Wikipedia message box parameter needs fixing
- Wikipedia templates to be automatically substituted
- Wikipedia never-substituted templates
- Wikipedia substituted templates
- Templates with matching hidden id
- Templates based on the String Lua module
- Articles with dummy references
- Errors reported by Module String
- Templates using TemplateData
- Inline spacing templates
- Character templates