Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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
}