Jump to content

Module:Professional wrestling profiles

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Silverfish (talk | contribs) at 23:14, 25 May 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

function getpropertyvalue(ent, prop)
return ent:formatPropertyValues(prop).value;
end	

local p = {}
function p.getcagematchid(frame)
ent = mw.wikibase.getEntityObject();
return getpropertyvalue(ent, 'P2728');
end	

function p.cagematch(frame)
    id = frame.args[1] or ""; if id == "" then id = frame.args["id"] or "" end
    if id == "" then id = p.getcagematchid(frame) end	
    local name = frame.args[2] or ""; if name == "" then name = frame.args["name"] or "" end
    if name == "" then
    name = frame:expandTemplate{title = 'PAGENAMEBASE'}
	end
	link = "http://www.cagematch.net/?id=2&nr=" .. id;
	code = "[" .. link .. " " ..	name .. "]";
    return code
end


function p.profiles(frame)
			
	
	
end	

return p