Module:Dabs

--some functions related to processing page name's disambiguation terms local util_link = require('Module:LinkUtil') local p = {} --p stands for package

function p.italDab(frame) local args = frame:getParent.args local page = util_link.stripLink(args[1]) local name = util_link.stripDab(page) local dab = util_link.getDab(page) local display = name .. " (" .. dab .. ")" if args[2] then local link = util_link.addLink(page, display) return link else return display end end

return p