• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Hair space

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:Very thin space)

 

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 6,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Shortcuts
  • {{hspTemplate:Hsp}}
  • {{hairspTemplate:Hairsp}}
  • {{px1Template:Px1}}

{{Hair space}} produces the Unicode character U+200A   HAIR SPACE ( ,  ), a space character that is slightly thinner than the “thin space” character (see below and Whitespace character). It is forced to be non-breaking, since this is the desired behavior in most uses of this template. If a parameter is supplied, it is sandwiched on both sides with hair space characters (only the first is non-breaking).

Comparisons

Name
(alias)
→Instance← Example code and ... Using {{spaces}} Output Output {{spaces}}
none →← Text<ref>...</ref>
''Text''<ref>...</ref>
Text[1]
Text[2]
Hair
(Very thin)
→ ← Text{{hair space}}<ref>...</ref>
''Text''{{hair space}}<ref>...</ref>
Text{{spaces|hair}}<ref>...</ref> Text [1]
Text [2]
Text [1]
Text [2]
2-pixel →‍← Text{{px2}}<ref>...</ref>
''Text''{{px2}}<ref>...</ref>
Text‍[1]
Text‍[2]
Narrow no-break → ← Text{{narrow no-break space}}<ref>...</ref>
''Text''{{narrow no-break space}}<ref>...</ref>
Text [1]
Text [2]
Thin → ← Text{{thin space}}<ref>...</ref>
''Text''{{thin space}}<ref>...</ref>
Text{{spaces|thin}}<ref>...</ref> Text [1]
Text [2]
Text [1]
Text [2]
Standard[a] → ← Text&nbsp;<ref>...</ref>
''Text''&nbsp;<ref>...</ref>
Text{{spaces}}<ref>...</ref> Text [1] Text [1]
Text [2]
En → ← 1&ensp;3 1{{spaces|en}}3 1 3 1 3
Figure → ← 123<br/>1{{figure space}}3 123<br/>1{{spaces|fig}}3 123
1 3
123
1 3
Em → ← 1&emsp;3 1{{spaces|em}}3 1 3 1 3
  1. ^ Provided here by a non-breaking space (&nbsp;).


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Hair space in articles based on its TemplateData.

TemplateData for Hair space

Inserts a very thin "hair space" unicode character, if no parameters are provided. If {{para|1}} is, that text is wrapped on each side with a hair space.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text to wrap in hair-spaces1

optional word to surround with hair spaces

Lineoptional
optional text beforebefore

optional word before the hair spaced param 1

Lineoptional
optional text afterafter

optional word or text after the hair-spaced text

Lineoptional

See also

  • {{Very thin space}} – redirect
  • {{Mhair}} – provides an em dash and a hair space, ideal for use just before a ~~~~ signature
  • v
  • t
  • e
Inline spacing templates
Non-breaking space characters
  • {{figure space}}
  • {{hair space}}
  • {{narrow no-break space}}
  • {{five non-breaking spaces}}
  • {{ns}}
  • {{quad}}
  • {{spaces}}
  • {{thin space}}
  • {{word joiner}}
  • {{zero width joiner}}
Breaking space characters
  • {{sp}}
  • {{zero width space}}
Non-character spaces
  • {{gaps}}
  • {{indent 5}}
  • {{indent}}
  • {{pad}}
  • {{two pixel space}}
The above documentation is transcluded from Template:Hair space/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Hair_space&oldid=1039143162"
Last edited on 16 August 2021, at 23:32

Languages

    • العربية
    • Azərbaycanca
    • বাংলা
    • भोजपुरी
    • Cebuano
    • Chavacano de Zamboanga
    • Ελληνικά
    • فارسی
    • Gaelg
    • 한국어
    • Հայերեն
    • हिन्दी
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Kurdî
    • Lietuvių
    • മലയാളം
    • Bahasa Melayu
    • Nederlands
    • 日本語
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Português
    • Română
    • Русский
    • Scots
    • සිංහල
    • Simple English
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Svenska
    • Tagalog
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Türkmençe
    • Українська
    • اردو
    • Tiếng Việt
    • 粵語
    • 中文
    • Kadazandusun
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 16 August 2021, at 23:32 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop