Difference between revisions of "Template:Format size"

From Wikispooks
Jump to navigation Jump to search
(t)
(Support K)
Line 1: Line 1:
 
<noinclude>'''This is for displaying a number of bytes in an easily understood format.'''<br/><br/>
 
<noinclude>'''This is for displaying a number of bytes in an easily understood format.'''<br/><br/>
Usage:<br/> {{t|<nowiki>{{</nowiki>{{PAGENAME}}|#bytes<nowiki>}}</nowiki>}}</noinclude><includeonly>{{{1|}}} bytes</includeonly>
+
Usage:<br/> {{t|<nowiki>{{</nowiki>{{PAGENAME}}|#bytes<nowiki>}}</nowiki>}}</noinclude><includeonly>{{#ifexpr:
 +
{{{1}}} < 1024| {{{1}}} bytes|
 +
{{#expr: {{{1}}}/1024 round 1}}K}}</includeonly>

Revision as of 12:40, 19 October 2014

This is for displaying a number of bytes in an easily understood format.

Usage:
{{Format size|#bytes}}