Template:Datacalc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 13: | Line 13: | ||
| #default = 1 <!-- Default expression assumes conversion of bytes to bytes, i.e.: no conversion performed. --> | | #default = 1 <!-- Default expression assumes conversion of bytes to bytes, i.e.: no conversion performed. --> | ||
}} {{#if:{{{round|}}}|round {{{round|2}}}|}} | }} {{#if:{{{round|}}}|round {{{round|2}}}|}} | ||
}} {{# | }} {{#switch:{{{output}}} | ||
| | | quettabytes | qb = {{#switch:{{{id}}}|abbreviate=QB|none=|#default=quettabytes}} | ||
| ronnabytes | rb = ronnabytes | | ronnabytes | rb = {{#switch:{{{id}}}|abbreviate=RB|none=|#default=ronnabytes}} | ||
| yottabytes | yb = {{#switch:{{{prefix}}}|binary=yobibytes|#default=yottabytes}} | | yottabytes | yb = {{#switch:{{{id}}}|abbreviate=YB|none=|#default={{#switch:{{{prefix}}}|binary=yobibytes|#default=yottabytes}}}} | ||
| zettabytes | zb = {{#switch:{{{prefix}}}|binary=zebibytes|#default=zettabytes}} | | zettabytes | zb = {{#switch:{{{id}}}|abbreviate=ZB|none=|#default={{#switch:{{{prefix}}}|binary=zebibytes|#default=zettabytes}}}} | ||
| exabytes | eb = {{#switch:{{{prefix}}}|binary=exbibytes|#default=exabytes}} | | exabytes | eb = {{#switch:{{{id}}}|abbreviate=MB|none=|#default={{#switch:{{{prefix}}}|binary=exbibytes|#default=exabytes}}}} | ||
| petabytes | pb = {{#switch:{{{prefix}}}|binary=pebibytes|#default=petabytes}} | | petabytes | pb = {{#switch:{{{id}}}|abbreviate=PB|none=|#default={{#switch:{{{prefix}}}|binary=pebibytes|#default=petabytes}}}} | ||
| terabytes | tb = {{#switch:{{{prefix}}}|binary=tebibytes|#default=terabytes}} | | terabytes | tb = {{#switch:{{{id}}}|abbreviate=TB|none=|#default={{#switch:{{{prefix}}}|binary=tebibytes|#default=terabytes}}}} | ||
| gigabytes | gb = {{#switch:{{{prefix}}}|binary=gibibytes|#default=gigabytes}} | | gigabytes | gb = {{#switch:{{{id}}}|abbreviate=GB|none=|#default={{#switch:{{{prefix}}}|binary=gibibytes|#default=gigabytes}}}} | ||
| megabytes | mb = {{#switch:{{{prefix}}}|binary=mibibytes|#default=megabytes}} | | megabytes | mb = {{#switch:{{{id}}}|abbreviate=MB|none=|#default={{#switch:{{{prefix}}}|binary=mibibytes|#default=megabytes}}}} | ||
| kilobytes | kb = {{#switch:{{{prefix}}}|binary=kibibytes|#default=kilobytes}} | | kilobytes | kb = {{#switch:{{{id}}}|abbreviate=kB|none=|#default={{#switch:{{{prefix}}}|binary=kibibytes|#default=kilobytes}}}} | ||
| #default = bytes | | #default = bytes | ||
}}</includeonly></onlyinclude>{{doc}}[[Category:Mathematics templates]] |
Revision as of 12:59, 1 June 2023
Todo: Implement a input filesize parameter that determines the exponentiation of the output filesize.
The above documentation is transcluded from Template:Datacalc/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.