Jump to content

Template:Spaces/doc

From Wikihoc

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if:|
         |{{#ifexist:Template:Spaces
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }} 
This message box is using an invalid "type={{#ifeq: n|n|content|notice}}" parameter and needs fixing.

{{#if:{{safesubst:#switch:

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}||{{#switch:doc|doc|sandbox=|{{#switch:never |never= |may= |#default={{#ifexpr: 0Template:Find page text > 0 | }} }}}}}}

{{#if:|}}{{#if:|
{{{2}}}
}}{{#if:|
{{{3}}}
}}{{#if:|
{{{4}}}
}}{{#if:|
{{{5}}}
}}{{#if:|
{{{6}}}
}}{{#if:|
{{{7}}}
}}{{#if:|
{{{8}}}
}}{{#if:|
{{{9}}}
}}

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|}}]}}
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:|}}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>
<syntaxhighlight lang="wikitext" inline="">Text{{#if:
 {{#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|}}]}}
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:|}}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|}}]}}
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:|}}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|}}]}}
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:|}}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|}}]}}
Text{{#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|}}]}}

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|}}]}}
Text{{#if:|{{#if:|| }}}} {{#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:|}}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|}}]}}
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:|}}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

}}}}&nbsp;).</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

}}}}&nbsp;).</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|}}]}}
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:|}}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

{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}{{#if:|

1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-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>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=

}}


Template data

{{#if:|{{#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=[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

{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{safesubst:#if:{{safesubst:#ifeq:doc|sandbox|1}}{{safesubst:#ifeq:doc|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

 |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