Get simple version number

From WikiApiary, monitoring the MediaWiki universe

This template accepts a version string that may contain additional information about packages and distributions, like 5.3.10-1ubuntu3.4 and returns just the version information to the left of the -, providing a simplified version number for better aggregation.

{{Get simple version number|5.3.10-1ubuntu3.4}}

The above example returns:


There are some tests that can be used to make sure this template is working right.