TrimLeft0

Template-info.png Documentation

This template trims the first two (2) zeroes from the beginning of the supplied value.

The main idea for using this macro is the Set ID for the LCG which doesn't have leading zeroes and therefore doesn't sort correctly on string sort. So store the value with leading zeroes for internal use but display the values without leading zeroes.

  • Usage: {{TrimLeft0|007}}
  • Returns: 7
Community content is available under CC BY-NC-SA 3.0 unless otherwise noted.