Template:Datacalc/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
<div style="display:flex;"><div style="flex:1;"> | |||
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]]''. | 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]]''. | ||
Line 22: | Line 12: | ||
{{CodeBlock|<nowiki>{{Datacalc}}</nowiki>}} | {{CodeBlock|<nowiki>{{Datacalc}}</nowiki>}} | ||
{|class="standard-table" | style="text-align:center; width: | {|class="standard-table" | style="text-align:center; width:100%;" | ||
|- | |- | ||
! | ! {{Dictionary/common|Param}} | ||
! | ! {{Dictionary/common|Desc}} | ||
! | ! {{Dictionary/common|Example}} | ||
! | ! {{Dictionary/common|Preview}} | ||
|- | |- | ||
| ''No parameters'' | | ''No parameters'' | ||
Line 59: | Line 49: | ||
| {{datacalc|1000|output=kb}} | | {{datacalc|1000|output=kb}} | ||
|- | |- | ||
|} | |}</div> | ||
{{ | <div> | ||
{{infobox template | |||
| summary = Converts a filesize string | |||
| type = Mathematics template | |||
| contrib = [[User:mailmanmicky|mailmanmicky]] | |||
| creationdate = 02/06/2023<br><small>(02 June 2022)</small> | |||
| translation = No | |||
| parser = Yes | |||
| var = No | |||
}} | |||
</div></div> |
Revision as of 23:38, 2 June 2023

This is a documentation subpage for Template:Datacalc.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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.
Copy and Paste
Usage & Preview
Parameter | Description | Example | Preview |
---|---|---|---|
No parameters | Template defaults to displaying 0 bytes | 0 bytes | |
{{{1}}} | Input string, interpreted by default as bytes. | 1000 bytes | |
{{{id}}} | Specifies what to do with the identifier. | 1 kB 1 | |
{{{prefix}}} | Unit prefix; determinant for exponential power. | 0.9765625 kibibytes | |
{{{round}}} | Used to round up the output string to the specified power. | 0.98 kibibytes | |
{{{output}}} | Input filesize, i.e.: kilobytes. | 1 kilobytes |
Template:Datacalc
Summary
Converts a filesize string
Type
Mathematics template
Contributors
Creation date
02/06/2023
(02 June 2022)
(02 June 2022)
Notes
N/A
Subpages
Documentation
Preload
N/A
Sandbox
N/A
Strings
N/A
Testcases
N/A
Other
N/A
Revision information
Latest editor
Mailmanmicky
Last edited
02/06/2023
20230602233842
20230602233842
Revision size
1947 bytes
1.947 kilobytes
0.001947 megabytes
1.947 kilobytes
0.001947 megabytes
Technical information
Page identifier
53975
Contains translations
No
Uses parser functions?
Yes
Uses variables?
No