Module:Strip version patch: Revision history

Jump to navigation Jump to search

For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, โ†’ = section edit, โ† = automatic edit summary

30 July 2025

  • curprev 14:2214:22, 30 July 2025 imported>The RedBurn 349 bytes +349 โ†Created page with '-- Strip only third component (patch) of a software version if present -- For instance 6.16.1 as parameter will return 6.16 -- Used on Linux kernel version history local p = {} function p.main(frame) local version = frame.args[1] or '' local cleaned = mw.ustring.gsub(version, "^(%d+%.%d+)%.%d+$", "%1") return cleaned end return p'