<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.transpeopletogether.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ALinkWrap</id>
	<title>Module:LinkWrap - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.transpeopletogether.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ALinkWrap"/>
	<link rel="alternate" type="text/html" href="https://www.transpeopletogether.org/w/index.php?title=Module:LinkWrap&amp;action=history"/>
	<updated>2026-04-18T23:58:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://www.transpeopletogether.org/w/index.php?title=Module:LinkWrap&amp;diff=1002&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;-- Module:LinkWrap local p = {}  -- wrap: --  • If the input is blank: return empty string. --  • If there are no semicolons: trim and return &quot;…&quot;. --  • If there are semicolons: split on &quot;;&quot;, trim each segment, --    wrap each in &quot;…&quot; and join with &quot;, &quot;. function p.wrap(frame)     local input = frame.args[1] or &#039;&#039;     -- blank?     if input == &#039;&#039; then         return &#039;&#039;     end      -- helper to trim whitespace     local function trim(s)         return mw...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.transpeopletogether.org/w/index.php?title=Module:LinkWrap&amp;diff=1002&amp;oldid=prev"/>
		<updated>2025-05-09T01:34:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:LinkWrap local p = {}  -- wrap: --  • If the input is blank: return empty string. --  • If there are no semicolons: trim and return &amp;quot;&lt;a href=&quot;/w/index.php?title=%E2%80%A6&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;… (page does not exist)&quot;&gt;…&lt;/a&gt;&amp;quot;. --  • If there are semicolons: split on &amp;quot;;&amp;quot;, trim each segment, --    wrap each in &amp;quot;&lt;a href=&quot;/w/index.php?title=%E2%80%A6&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;… (page does not exist)&quot;&gt;…&lt;/a&gt;&amp;quot; and join with &amp;quot;, &amp;quot;. function p.wrap(frame)     local input = frame.args[1] or &amp;#039;&amp;#039;     -- blank?     if input == &amp;#039;&amp;#039; then         return &amp;#039;&amp;#039;     end      -- helper to trim whitespace     local function trim(s)         return mw...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:LinkWrap&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- wrap:&lt;br /&gt;
--  • If the input is blank: return empty string.&lt;br /&gt;
--  • If there are no semicolons: trim and return &amp;quot;[[…]]&amp;quot;.&lt;br /&gt;
--  • If there are semicolons: split on &amp;quot;;&amp;quot;, trim each segment,&lt;br /&gt;
--    wrap each in &amp;quot;[[…]]&amp;quot; and join with &amp;quot;, &amp;quot;.&lt;br /&gt;
function p.wrap(frame)&lt;br /&gt;
    local input = frame.args[1] or &amp;#039;&amp;#039;&lt;br /&gt;
    -- blank?&lt;br /&gt;
    if input == &amp;#039;&amp;#039; then&lt;br /&gt;
        return &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- helper to trim whitespace&lt;br /&gt;
    local function trim(s)&lt;br /&gt;
        return mw.ustring.gsub(s, &amp;#039;^%s*(.-)%s*$&amp;#039;, &amp;#039;%1&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- if semicolons present, split and wrap each&lt;br /&gt;
    if mw.ustring.find(input, &amp;#039;;&amp;#039;, 1, true) then&lt;br /&gt;
        local parts = mw.text.split(input, &amp;#039;;&amp;#039;, true)&lt;br /&gt;
        for i, part in ipairs(parts) do&lt;br /&gt;
            parts[i] = &amp;#039;[[&amp;#039; .. trim(part) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
        return table.concat(parts, &amp;#039;, &amp;#039;)&lt;br /&gt;
    else&lt;br /&gt;
        -- single segment&lt;br /&gt;
        return &amp;#039;[[&amp;#039; .. trim(input) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>