Template:Datacalc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
| kilobytes | kb = {{#switch:{{{prefix}}}|binary=2^10|#default=10^3}} | | kilobytes | kb = {{#switch:{{{prefix}}}|binary=2^10|#default=10^3}} | ||
| #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:{{{nosym|}}}||{{#switch:{{{output}}} | }} {{#if:{{{nosym|}}}||{{#switch:{{{output}}} | ||
| quettabytes | qb = quettabytes | | quettabytes | qb = quettabytes |
Revision as of 11:43, 1 June 2023
This template interprets a numbered input string in bytes and converts it into a specified output filesize. For a logical use-case, see Template:Infobox template.
Todo: Documentation
Todo: Implement input filesize parameter that determines the exponentiation of the output filesize.