local data =
local alone =
local p = local categories = local entity = mw.wikibase.getEntityObjectlocal yesno = require('Module:Yesno')local getArgs = require('Module:Arguments').getArgs
function getValue(param,wd) local para,wd = param,wd if para then value = para elseif entity then if entity.claims[wd] then local mainsnak = entity.claims[wd][1].mainsnak if mainsnak.snaktype
return value or
end
function p._profiles(args) local title = mw.title.getCurrentTitle local name = args.name or string.gsub(title.text, " %b", "") local prefix = local text local letter = string.sub(name,-1) local out = for _,v in ipairs(data) do local param, link, title, wdid = unpack(v) --local param = args[v[1]] --local link = v[2] --local wdid = v[3] param = args[param] value = getValue(param,wdid)
if value ~= then out[#out+1] = "[" .. string.gsub(link, "$1",value) .. ' ' .. title .. "]" end
value = end if letter
function p.profiles(frame) local args = getArgs(frame) return p._profiles(args)end
return p