Template:Approx./doc

From Project Basis
Revision as of 05:38, 23 March 2026 by Talod>Sango (Created page with "{{Documentation subpage}} == Usage == This template inserts a tooltip that says "approx." and approximately when hovered over. If parameter <code>link</code> is set to a truthy value then "approx." will also be a link to Approximation (via the redirect Approximately); if the parameter <code>tilde</code> is set to a truthy value, then "approx." will be replaced by a tilde; and if the parameter <code>cap</code> is s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template inserts a tooltip that says "approx." and approximately when hovered over.

If parameter link is set to a truthy value then "approx." will also be a link to Approximation (via the redirect Approximately); if the parameter tilde is set to a truthy value, then "approx." will be replaced by a tilde; and if the parameter cap is set to a truthy value, then "approx." will be written as "Approx.".

If parameter 1 is set, that value will be displayed after the approx. This is to allow the approx. and a value to be a single entity semantically.

Example:

  • {{Approx.}} approx.
  • {{Approx.|foo}} approx. foo
  • {{Approx.|foo|link="bar"}} approx. foo
  • {{Approx.|foo|tilde="bar"}} ~foo
  • {{Approx.|foo|cap="bar"}} Approx. foo

TemplateData

No description.

Template parameters

ParameterDescriptionTypeStatus
11

What is being approximated

Stringsuggested
Linklink

Adds a link to approximately.

Default
no
Booleanoptional
Tildetilde

Replaces "approx." with a tilde.

Default
no
Booleanoptional
Capcap

Capitalizes "Approx.".

Default
no
Booleanoptional