Difference between revisions of "Template:Figure space/doc"

From blackwiki
Jump to navigation Jump to search
imported>Daviddwd
(TemplateData)
imported>Jdaloner
("Template data" --> "TemplateData"; moved section into proper place; adjusted section hierarchy levels; updated transclusions.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{tsh|fs|fsp}}
+
{{template shortcut|fs|fsp}}
 
== Usage ==
 
== Usage ==
{{tlx|fs}} provides a {{unichar|2007|figure space|html=|nlink=}}, a non-breaking space equal in width to a digit. This is equivalent to:
+
{{tlx|Figure space}} provides a {{unichar|2007|figure space|html=|nlink=}}, a non-breaking space equal in width to a digit. This is equivalent to:
 
{{#tag:syntaxhighlight|{{Figure space}}|lang=html}}
 
{{#tag:syntaxhighlight|{{Figure space}}|lang=html}}
  
 
An optional parameter specifies the number of spaces to generate:
 
An optional parameter specifies the number of spaces to generate:
  
{{tlx|fs|5}} produces
+
{{tlx|Figure space|5}} produces
  
 
{{#tag:syntaxhighlight|{{Figure space|5}}|lang=html}}
 
{{#tag:syntaxhighlight|{{Figure space|5}}|lang=html}}
  
===See also===
+
== TemplateData ==
{{Inline spacing templates}}
 
 
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
 
}}</includeonly>
 
== Template data ==
 
 
{{TemplateData header}}
 
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
Line 36: Line 29:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== See also ==
 +
{{Inline spacing templates}}
 +
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
 +
}}</includeonly>

Revision as of 00:02, 29 July 2020

Usage

{{Figure space}} provides a Template:Unichar, a non-breaking space equal in width to a digit. This is equivalent to:

<span class="nowrap">&#8199;</span>

An optional parameter specifies the number of spaces to generate:

{{Figure space|5}} produces

<span class="nowrap">&#8199;&#8199;&#8199;&#8199;&#8199;</span>

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Figure space

Inserts one or more figure spaces; a unicode non-breaking space character with width equal to a numeric digit

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Quantity1

How many figure spaces to insert

Default
1
Example
4
Auto value
1
Numberoptional

See also