[unchecked revision] | [unchecked revision] |
m (Improve documentation.) |
m (Demian moved page Template:Template Sandbox/Demian/Unit/doc to Template:Unit/doc: Move template out of sandbox: ready for use.) |
(No difference)
|
Revision as of 00:35, 26 February 2022
Add a tooltip to an abbreviation of a unit of measure showing the actual name of the unit.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Unit abbreviation | abbr | Case sensitive abbreviation of a unit of measure. If the abbreviation contains a forward slash "/" it may be replaced with the character "p".
| String | required |
Usage
{{Template Sandbox/Demian/Unit|abbr}}
New units
Recognized units are defined and documented in Module:Sandbox/Demian/Unit/data.
Examples
Note that the abbreviation is case sensitive and if the unit contains special symbols they are displayed correctly:
If a unit definition is not found, the abbreviation (or text) is returned unchanged.
Code | Result |
---|---|
{{Template Sandbox/Demian/Unit|things}} |
Template:Template Sandbox/Demian/Unit |
{{Template Sandbox/Demian/Unit|something/other}} |
Template:Template Sandbox/Demian/Unit |
{{Template Sandbox/Demian/Unit|players per hour}} |
Template:Template Sandbox/Demian/Unit |
Modules
This template is using the following Modules: