Module:Realpath
From CHIPPS
More actions
Documentation for this module may be created at Module:Realpath/doc
function realpath(page)
target = mw.title.new(page).redirectTarget
if target
then
return target.prefixedText
else
return page
end
end
return {
realpath = function(frame)
return realpath(frame.args[1])
end,
realpath_list = function(frame)
consist = frame.args[1]
realpathed_consist = string.gsub(consist, "[^ ;][^;]+", realpath)
return realpathed_consist
end
}