Template:Approx.: Difference between revisions
Template page
More actions
Created page with "{{#ifeq:{{yesno|{{{tilde|}}}}}|yes|{{#ifeq:{{yesno|{{{link|}}}}}|yes|{{tooltip|~|approximately}}{{{1|}}}|{{tooltip|~|approximately}}{{{1|}}}}}|{{#ifeq:{{yesno|{{{link|}}}}}|yes|{{tooltip|approx.|approximately}} {{{1|}}}|{{tooltip|approx.|approximately}} {{{1|}}}}}}}<noinclude> {{documentation}}</noinclude>" |
(No difference)
|
Latest revision as of 20:44, 23 February 2025
approx.
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), and if the parameter tilde
is set to a truthy value, then "approx." will be replaced by a tilde.
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
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | What is being approximated | String | suggested |
Link | link | Adds a link to approximately.
| Boolean | optional |
Tilde | tilde | Replaces "approx." with a tilde.
| Boolean | optional |