Module:Disambiguation

local p = {}

function p.box(frame) local s_page = frame.args["page"] local s_name = frame.args["name"] local s_title = frame.args["title"] local s_main_title = frame.args["main_title"] local s_main_page = frame.args["main_page"] local s_image = frame.args["image"] local s   local s_f local f

if s_image == nil then if s_image == "No Image Available At All.png" then s_f = "No Image Available.png" else if mw.title.new(s_image..".jpg", file).exists then s_f = s_image..".jpg" else if mw.title.new(s_image..".png", file).exists then s_f = s_image..".png" end end end else s_f = s_image end s_f = ' File:'..s_f..'|150px|center|link='..s_page..']]  ' return s_f end

return p