Template:Capacity unit: Difference between revisions
From Australian Enthusiasts Wiki
No edit summary |
Add ability to accept binary units |
||
| Line 7: | Line 7: | ||
|kb = [[wikipedia:Kilobyte|KB]] | |kb = [[wikipedia:Kilobyte|KB]] | ||
|bytes = [[wikipedia:Byte|B]] | |bytes = [[wikipedia:Byte|B]] | ||
|eib = [[wikipedia:Exbibyte|EiB]] | |||
|pib = [[wikipedia:Pebibyte|PiB]] | |||
|tib = [[wikipedia:Tebibyte|TiB]] | |||
|gib = [[wikipedia:Gibibyte|GiB]] | |||
|mib = [[wikipedia:Mebibyte|MiB]] | |||
|kib = [[wikipedia:Kibibyte|KiB]] | |||
|<span class{{=}}"error">Unknown unit "{{{1|}}}" given for capacity.</span> | |<span class{{=}}"error">Unknown unit "{{{1|}}}" given for capacity.</span> | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 10:40, 15 August 2021
Unknown unit "" given for capacity.
Template documentation (for the above template, sometimes hidden or invisible)
This template displays a capacity unit, along with a wikilink to a relevant Wikipedia article.
Displays a capacity unit given an input.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Capacity unit string | 1 | Displays a capacity unit based on the value of this parameter. Case insensitive. Accepts: bytes, b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib.
| Unknown | required |