Template:Floor/doc

Revision as of 09:53, 23 October 2026 by Wikipedia>A Shortfall Of Gravitas (Remove duplicated category that was placing the docs for this in the formatting templates category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

__EXPECTED_UNCONNECTED_PAGE__

Usage

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

TemplateData for Floor

Displays the parameter wrapped in floor symbols. This template is for display, not calculation.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Operand1

The operand of the floor function

Example
π
Linerequired
Font size2

A valid CSS font size, applied to the bars only. Typically should be given in "em".

Default
Default is "1em", i.e. the same as the surrounding text.
Stringoptional

Examples

  • {{floor|45.23}} → ⌊45.23⌋
  • {{floor|''x''}} → ⌊x⌋
  • {{floor|{{sfrac|2''a''|''b''}}}} → ⌊⁠2a/b⁠⌋
  • {{floor|{{sfrac|2''a''|''b''}}|2em}} → ⌊⁠2a/b⁠⌋
  • {{floor|{{sfrac|2''a''|''b''}}|larger}} → ⌊⁠2a/b⁠⌋
  • {{floor|{{sfrac|2''a''|''b''}}|large}} → ⌊⁠2a/b⁠⌋
  • {{math|{{floor|{{sfrac|2''a''|''b''}}}}}} → ⌊⁠2a/b⁠⌋
  • {{bigmath|{{floor|{{sfrac|2''a''|''b''}}}}}} → ⌊⁠2a/b⁠⌋

See also

Script error: The function "with collapsible groups" does not exist.