Module:ParseList: Revision history

From 20R1

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 November 2025

  • curprev 22:2022:20, 16 November 2025 Alex talk contribs 834 bytes +834 Created page with "local p = {} -- Trim whitespace from a string local function trim(s) return s:match("^%s*(.-)%s*$") end -- Main entry point called from the template function p.parse(frame) local args = frame.args local list = args.list or "" -- Split by comma (allowing optional spaces around commas) local items = {} for item in list:gmatch("[^,]+") do local cleaned = trim(item) if cleaned ~= "" then table.insert(items, cleaned)..."