<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev-climatekg.semanticclimate.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AAcronymTerms</id>
	<title>Module:AcronymTerms - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev-climatekg.semanticclimate.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AAcronymTerms"/>
	<link rel="alternate" type="text/html" href="https://dev-climatekg.semanticclimate.org/w/index.php?title=Module:AcronymTerms&amp;action=history"/>
	<updated>2026-05-25T08:50:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://dev-climatekg.semanticclimate.org/w/index.php?title=Module:AcronymTerms&amp;diff=5968&amp;oldid=prev</id>
		<title>Laura: Created page with &quot;-- Module:AcronymTerms -- Processes acronyms and generates linked pills for display  local p = {}  -- Trim whitespace from string local function trim(str)     return str:match(&quot;^%s*(.-)%s*$&quot;) end  -- Convert acronym to anchor format (spaces and special chars to underscores) local function acronymToAnchor(acronym)     return trim(acronym):gsub(&quot; &quot;, &quot;_&quot;):gsub(&quot;₂&quot;, &quot;2&quot;):gsub(&quot;°&quot;, &quot;&quot;) end  -- Main function to render acronyms function p.renderTerms(frame)     local acronym...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev-climatekg.semanticclimate.org/w/index.php?title=Module:AcronymTerms&amp;diff=5968&amp;oldid=prev"/>
		<updated>2026-05-22T06:59:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:AcronymTerms -- Processes acronyms and generates linked pills for display  local p = {}  -- Trim whitespace from string local function trim(str)     return str:match(&amp;quot;^%s*(.-)%s*$&amp;quot;) end  -- Convert acronym to anchor format (spaces and special chars to underscores) local function acronymToAnchor(acronym)     return trim(acronym):gsub(&amp;quot; &amp;quot;, &amp;quot;_&amp;quot;):gsub(&amp;quot;₂&amp;quot;, &amp;quot;2&amp;quot;):gsub(&amp;quot;°&amp;quot;, &amp;quot;&amp;quot;) end  -- Main function to render acronyms function p.renderTerms(frame)     local acronym...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:AcronymTerms&lt;br /&gt;
-- Processes acronyms and generates linked pills for display&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Trim whitespace from string&lt;br /&gt;
local function trim(str)&lt;br /&gt;
    return str:match(&amp;quot;^%s*(.-)%s*$&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Convert acronym to anchor format (spaces and special chars to underscores)&lt;br /&gt;
local function acronymToAnchor(acronym)&lt;br /&gt;
    return trim(acronym):gsub(&amp;quot; &amp;quot;, &amp;quot;_&amp;quot;):gsub(&amp;quot;₂&amp;quot;, &amp;quot;2&amp;quot;):gsub(&amp;quot;°&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main function to render acronyms&lt;br /&gt;
function p.renderTerms(frame)&lt;br /&gt;
    local acronym_page = trim(frame.args.acronym_page or &amp;quot;&amp;quot;)&lt;br /&gt;
    local acronyms_str = trim(frame.args.acronyms or &amp;quot;&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    if acronyms_str == &amp;quot;&amp;quot; then&lt;br /&gt;
        return &amp;quot;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Split acronyms by comma&lt;br /&gt;
    local acronyms = {}&lt;br /&gt;
    for acronym in acronyms_str:gmatch(&amp;quot;[^,]+&amp;quot;) do&lt;br /&gt;
        table.insert(acronyms, trim(acronym))&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Generate links as plain wiki syntax&lt;br /&gt;
    local links = {}&lt;br /&gt;
    for _, acronym in ipairs(acronyms) do&lt;br /&gt;
        local anchor = acronymToAnchor(acronym)&lt;br /&gt;
        -- Plain wiki link - CSS will style as pill&lt;br /&gt;
        local link = string.format(&amp;quot;[[%s#%s|%s]]&amp;quot;, acronym_page, anchor, acronym)&lt;br /&gt;
        table.insert(links, link)&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Join with space&lt;br /&gt;
    return table.concat(links, &amp;quot; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
</feed>