Module:Professional wrestling profiles
Appearance
Implements {{Professional wrestling profiles}}, and a family of related templates, including Template:Chikara profile, Template:Dragongateusa profile, Template:Gfw profile, Template:NJPW profile, and Template:Roh roster.
Tracking category
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