Template:Capacity unit: Difference between revisions

From Australian Enthusiasts Wiki
Created page with "{{#switch: {{lc: {{{1|}}} }}| |eb = EB |pb = PB |tb = TB |gb = GB |mb = wikipedia:..."
 
Change to kB to match SI
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{lc: {{{1|}}} }}|
{{#switch: {{lc: {{{1|}}} }}
|eb = [[wikipedia:Exabyte|EB]]
|eb = [[wikipedia:Exabyte|EB]]
|pb = [[wikipedia:Petabyte|PB]]
|pb = [[wikipedia:Petabyte|PB]]
Line 5: Line 5:
|gb = [[wikipedia:Gigabyte|GB]]
|gb = [[wikipedia:Gigabyte|GB]]
|mb = [[wikipedia:Megabyte|MB]]
|mb = [[wikipedia:Megabyte|MB]]
|kb = [[wikipedia:Kilobyte|KB]]
|kb = [[wikipedia:Kilobyte|kB]]
|b = [[wikipedia:Byte|B]]
|bytes = [[wikipedia:Byte|B]]
|bytes = [[wikipedia:Byte|B]]
|<error>Unknown unit "{{{1|}}}" given for capacity.</error>}}
|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>
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 10:11, 24 July 2022

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Capacity unit string1

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.

Example
tb
Unknownrequired

Cookies help us deliver our services. By using our services, you agree to our use of cookies.