Module:Appearances

local A = { }

local HF = require("Module:HF") local parent = nil

function A.appearances(frame) parent = frame:getParent local arg = parent.args[1] local output = "" if not HF.isempty(arg) then if string.find(arg, "w:c:") == nil and string.find(arg, "Glossary:") == nil then local link = string.match(arg, "%[%[([^%|%]]+)") local category = link .. "/Appearances" local text = string.match(arg, "[%[%|]([^%]%[%|]+)%]%]") if string.find(link, "#") == nil then output = "" .. text .. "" else output = arg end else output = arg end end return output end

return A