Template:Thin space
<syntaxhighlight lang="html"> </syntaxhighlight>
This template can be used to display the HTML character entity   (Unicode: U+2009).
Usage
Many browsers allow word wrapping at  
. Using this template will cause thin spaces to not word break. This web page can be used to check how Unicode space characters display in a browser window.
Examples
{{Coord|36|34|42|N|118|17|31|W}}<ref>example</ref>
→ Lua error: callParserFunction: function "#coordinates" was not found.[1]
{{Coord|36|34|42|N|118|17|31|W}}{{Thinsp}}<ref>example</ref>
→ Lua error: callParserFunction: function "#coordinates" was not found. [2]
Parameter
This template takes one parameter, which is the text to be wrapped by two thin spaces. For example:
- <syntaxhighlight lang="text" class="" id="" style="" inline="1">({{thinsp|symbol}})</syntaxhighlight> → ( symbol )
- as opposed to:
- <syntaxhighlight lang="text" class="" id="" style="" inline="1">(symbol)</syntaxhighlight> → (symbol)
See also
- {{thinspace}}
- {{Sp}}
- {{Hair space}}
- {{NNBSP}}
- {{Spaces}}
- {{Zero width joiner}}
Template data
TemplateData for Thin space
<templatedata>
{
"params": {
"1": {
"label": "text to wrap in thin spaces",
"description": "optional word to surround with thin spaces",
"type": "line"
}
},
"description": "Inserts a thin \"thin space\" unicode character, if no parameters are provided. If |1=
is, that text is wrapped on each side with thin spaces.",
"format": "inline"
}
</templatedata>
The above documentation is transcluded from Template:Thin space/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |