模組:Taxobox wikidata
外观

require('Module:No globals')
local p = {} -- functions made public
function getData(frame, args)
return frame:expandTemplate{ title = 'Wikidata', args = args }
end
function p.main(frame)
local args
if frame.args['direct'] == 'yes' then args = frame.args
else args = frame:getParent().args end
local rank = getData(frame, {'property', from, 'P105'})
local res = frame:expandTemplate{ title = 'Taxobox/core', args =
{ name = getData(frame, {'label', from}),
image = getData(frame, {'property', from, 'P18'}),
image_caption = getData(frame, {'qualifier', from, 'P18', 'P2096'})
}
}
return res
end
return p