Module:Sandbox/Raph Williams65/WhatLinksHere

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
local p = {}

p.main = function(frame)
              strTitle = frame.args.title
              strLabel = frame.args.label or "WhatLinksHere"
              strNamespace = frame.args.namespace or mw.title.getCurrentTitle().nsText
               if strTitle then return "[[Special:WhatLinksHere/" .. strTitle .. "|" .. strLabel .. "]]" or error('<strong class="error">Error: Title is missing</strong>')
               end
end
return p