Template:Datacalc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) m (test) |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 27: | Line 27: | ||
| gigabytes | gb = gigabytes | | gigabytes | gb = gigabytes | ||
| megabytes | mb = megabytes | | megabytes | mb = megabytes | ||
| kilobytes | kb = kilobytes | | kilobytes | kb = {{#switch:{{{prefix}}}|binary=kibibytes|#default=kilobytes}} | ||
| #default = bytes | | #default = bytes | ||
}}}}<includeonly></onlyinclude> | }}}}<includeonly></onlyinclude> |
Revision as of 11:04, 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.