no edit summary
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
function p.after_player(text, frame, titletbl)
if titletbl[2] == 'Statistics' and titletbl[3] then
text[#text+1] = p.playerConcept(titletbl) or ''
end
if titletbl[2] then
if p.doWeLowercase('InfoboxPlayer', titletbl[1]) then
end
return
end
function p.playerConcept(titletbl)
local player = titletbl[1]
local year = titletbl[3]
local concept = mw.title.makeTitle('Concept', player .. '/Games')
if not concept.exists then
return nil
end
local formlink = util_form.fullURL('CareerPlayerStats', 'CPS', {player = player, year = year})
return string.format("\n:''To see all stats for %s not separated by tournament, <span class=\"plainlinks\">[%s Click Here]</span>.",
year,
formlink
)
end
function p.doWeLowercase(tbl, title)
local query = {
local where = string.format('_pageName="%s"',title)▼
tables = tbl,
return util_cargo.getOneResult(tbl,'IsLowercase', {where = where}) == 'Yes'▼
fields = 'IsLowercase',
types = { IsLowercase = 'boolean' }
}
end
return p
|