Module:Glossary: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 16:
seen[title] = true
-- only prepend if not already in Definition: namespace
local defTitle
if title:match("^Definition:") then
Line 24 ⟶ 23:
end
-- clean display name (strip namespace prefix)
local displayName = title:gsub("^Definition:", "")
Line 48 ⟶ 46:
end)
-- render: just the sentence, no repeated title
local out = {}
for _, e in ipairs(entries) do
table.insert(out, stringe.format(summary)
"'''%s''': %s", e.title, e.summary
))
end