Module:TemplateStarter: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Reverted
// via Wikitext Extension for VSCode
Tag: Manual revert
Line 165: Line 165:
         return "No templates available"
         return "No templates available"
     end
     end
   
     return table.concat(templates, ", ")
    -- Encode template names to prevent Lingo expansion
    local encodedTemplates = {}
    for i, template in ipairs(templates) do
        -- Replace 'TLD' with HTML entity to bypass Lingo
        local encoded = template:gsub("TLD", "TLD")
        encodedTemplates[i] = encoded
    end
   
     return table.concat(encodedTemplates, ", ")
end
end


return p
return p