Difference between revisions of "Template:Space"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

(Created page with "{{#switch: {{{1|}}} | #default = | nb | nbsp =   | thin | thinsp =   | hair | hairsp = ​ }} <noinclude> == Usage == <code><nowiki>{{space|<''type''>...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
+
<includeonly>{{#switch: {{{1|}}}
 
  | #default = &#32;
 
  | #default = &#32;
 
  | nb | nbsp = &nbsp;
 
  | nb | nbsp = &nbsp;
 
  | thin | thinsp = &#8202;
 
  | thin | thinsp = &#8202;
 
  | hair | hairsp = &#8203;
 
  | hair | hairsp = &#8203;
}}
+
}}</includeonly><noinclude>
<noinclude>
+
{{Documentation}}
== Usage ==
+
<!-- Put categories/interwiki on the documentation page. -->
<code><nowiki>{{space|<''type''>}}</nowiki></code>
 
 
 
;Types
 
* (default)
 
* nbsp
 
* hair
 
* thin
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:07, 7 July 2023

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

{{Space}} is a template that produces one non-breaking space (  character entities).

Usage

To use the template, type {{Space|type}} (where type is the type of non-breaking space character to use) in between two words. The supported space types are the following:

  • (default)
  • nbsp
  • hair
  • thin

It serves to control line-breaking in places where there is low width available, such as an infobox.