Legend of the Five Rings Wiki
Advertisement
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

This is the documentation page, it should be transcluded into the main template page. See {{doc}} for more information.

Advertisement