Open main menu

Yugipedia β

Template:Spaces/doc

< Template:Spaces
Description
This template is used to make a series of non-breaking spaces. If needed, the type of space can be changed, to one of figure spaces, en spaces, em spaces, thin spaces, or hair spaces.
Syntax
Type {{spaces|number}} somewhere.
To change the type of space, type {{spaces|number|type}} or {{spaces|type|number}} somewhere. type can be one of fig, en, em, thin, or hair.
Sample output
"{{spaces|10}}" gives...
"          "
"{{spaces|10|en}}" gives...
"          "
"{{spaces|en|10}}" gives...
"          "
Types of whitespace
Code Result HTML entity
Non-breaking space
]{{spaces}}[
] [ &nbsp;
Figure space
]{{spaces|fig}}[
][ &#8199;
En space
]{{spaces|en}}[
][ &ensp;
Em space
]{{spaces|em}}[
][ &emsp;
Thin space
]{{spaces|thin}}[
][ &thinsp;
Hair space
]{{spaces|hair}}[
][ &#8202;
See also
  • Template:Spaces on Wikipedia, which this template was derived from
  • The whitespace character article on Wikipedia, which gives an overview of a number of whitespace character types