User:Σ/Testing facility/Lz12

From Wikipedia, the free encyclopedia
This auxiliary template adds leading zeros to a non-negative result of an expression for a total length of 12 digits (before the decimal point if any), it's used by template:Evalint (edittalklinkshistory), and it supports optional substitution.
{{User:Σ/Testing facility/Lz12|123}} gives 000000000123
{{User:Σ/Testing facility/Lz12|1234567}} gives 000001234567
{{User:Σ/Testing facility/Lz12|1234567}} gives 000001234567
{{User:Σ/Testing facility/Lz12|0.0}} gives 000000000000
{{User:Σ/Testing facility/Lz12|+.1}} gives 000000000000.1
{{User:Σ/Testing facility/Lz12|1234567890123}} gives value out of range:1234567890123
{{User:Σ/Testing facility/Lz12|123456789012.}} gives 123456789012
{{User:Σ/Testing facility/Lz12|1234567.90123}} gives 000001234567.90123
{{User:Σ/Testing facility/Lz12|12.4567890123}} gives 000000000012.4567890123