<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lowerhudsonvalleylions.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AParseList</id>
	<title>Module:ParseList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lowerhudsonvalleylions.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AParseList"/>
	<link rel="alternate" type="text/html" href="https://lowerhudsonvalleylions.org/index.php?title=Module:ParseList&amp;action=history"/>
	<updated>2026-04-14T18:56:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://lowerhudsonvalleylions.org/index.php?title=Module:ParseList&amp;diff=1915&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;local p = {}  -- Trim whitespace from a string local function trim(s)     return s:match(&quot;^%s*(.-)%s*$&quot;) end  -- Main entry point called from the template function p.parse(frame)     local args = frame.args     local list = args.list or &quot;&quot;      -- Split by comma (allowing optional spaces around commas)     local items = {}     for item in list:gmatch(&quot;[^,]+&quot;) do         local cleaned = trim(item)         if cleaned ~= &quot;&quot; then             table.insert(items, cleaned)...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lowerhudsonvalleylions.org/index.php?title=Module:ParseList&amp;diff=1915&amp;oldid=prev"/>
		<updated>2025-11-16T22:20:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  -- Trim whitespace from a string local function trim(s)     return s:match(&amp;quot;^%s*(.-)%s*$&amp;quot;) end  -- Main entry point called from the template function p.parse(frame)     local args = frame.args     local list = args.list or &amp;quot;&amp;quot;      -- Split by comma (allowing optional spaces around commas)     local items = {}     for item in list:gmatch(&amp;quot;[^,]+&amp;quot;) do         local cleaned = trim(item)         if cleaned ~= &amp;quot;&amp;quot; then             table.insert(items, cleaned)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Trim whitespace from a string&lt;br /&gt;
local function trim(s)&lt;br /&gt;
    return s:match(&amp;quot;^%s*(.-)%s*$&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main entry point called from the template&lt;br /&gt;
function p.parse(frame)&lt;br /&gt;
    local args = frame.args&lt;br /&gt;
    local list = args.list or &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    -- Split by comma (allowing optional spaces around commas)&lt;br /&gt;
    local items = {}&lt;br /&gt;
    for item in list:gmatch(&amp;quot;[^,]+&amp;quot;) do&lt;br /&gt;
        local cleaned = trim(item)&lt;br /&gt;
        if cleaned ~= &amp;quot;&amp;quot; then&lt;br /&gt;
            table.insert(items, cleaned)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Build SMW property assignments&lt;br /&gt;
    local output = {}&lt;br /&gt;
    for _, attendee in ipairs(items) do&lt;br /&gt;
        -- Use [[Property:Attendee::value]] syntax for SMW&lt;br /&gt;
        table.insert(output, &amp;quot;[[Attendee::&amp;quot; .. mw.text.encode(attendee) .. &amp;quot;]]&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Join all assignments with newlines&lt;br /&gt;
    return table.concat(output, &amp;quot;\n&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>