Template:Datacalc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 17: | Line 17: | ||
| #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. --> | ||
}} | }} | ||
}} {{#switch:{{{output}}} | }} {{#if:{{{nosym|}}}||{{#switch:{{{output}}} | ||
| quettabytes | qb = quettabytes | | quettabytes | qb = quettabytes | ||
| ronnabytes | rb = ronnabytes | | ronnabytes | rb = ronnabytes | ||
Line 29: | Line 29: | ||
| kilobytes | kb = kilobytes | | kilobytes | kb = kilobytes | ||
| #default = bytes | | #default = bytes | ||
}}<includeonly></onlyinclude> | }}}}<includeonly></onlyinclude> |
Revision as of 10:50, 1 June 2023
This template interprets a numbered input string in bytes and converts it to your 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.
Todo: Implement a switch that swaps out the expression's decimal prefix for a binary prefix.