Template:ZeroPad

From Video Game Music Preservation Foundation Wiki
Jump to: navigation, search

Pads a number with leading zeroes to ensure it is always two digits long.

{{ZeroPad|1}}01
{{ZeroPad|12}}12

The argument must always be numeric:

{{ZeroPad|x}}Expression error: Unrecognized word "x".x