Template:Qty

From Sheltered 2 Wiki
Jump to navigation Jump to search


This template is provide monospace styling to quantity numbers (makes '6x' '12x' and '100x' line up as follows:

Template syntax:

{{Qty|number|font size}}

Template example:

{{Qty|6|14px}}
{{Qty|12|16px}}
{{Qty|100}}

Output Example:
6x Item
12x Item
100xItem
&a6x

Template to provide monospaced quantity numbers for neatness

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
TextText

Quantity (number) to display.

Example
3x, 12x, 100x
Stringrequired
SizeSize

Custom font size

Example
16px
Stringsuggested