Template:Datacalc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 17: Line 17:
                       }}
                       }}
}} {{#switch:{{{output}}}
}} {{#switch:{{{output}}}
| quettabytes | qb =
| quettabytes | qb = quettabytes
| ronnabytes  | rb =
| ronnabytes  | rb = ronnabytes
| yottabytes  | yb =
| yottabytes  | yb = yottabytes
| zettabytes  | zb
| zettabytes  | zb = zettabytes
| exabytes    | eb
| exabytes    | eb = exabytes
| petabytes  | pb
| petabytes  | pb = petabytes
| terabytes  | tb
| terabytes  | tb = terabytes
| gigabytes  | gb
| gigabytes  | gb = gigabytes
| megabytes  | mb
| megabytes  | mb = megabytes
| kilobytes  | kb
| kilobytes  | kb = kilobytes
| #default = {{{output|bytes}}}
| #default = bytes
}}<includeonly></onlyinclude>
}}<includeonly></onlyinclude>

Revision as of 10:14, 1 June 2023

This template interprets a numbered input string in bytes and converts it to your specified output filesize.

Todo: Implement input filesize parameter that determines the exponentiation of the output filesize.
Todo: Implement a switch that swaps out the expression's decimal prefix for a binary prefix.