Actions

Template

Get simple version number

From WikiApiary, monitoring the MediaWiki universe

Revision as of 16:23, 31 December 2012 by Thingles (talk | contribs) (Created page with "<noinclude> This template accepts a version string that may contain additional information about packages and distributions, like <code>5.3.10-1ubuntu3.4</code> and returns ju...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:


5.3.10