「于世界交点之处,逢似曾相识之人」
本wiki目前不支持自由编辑,如果有兴趣参与wiki内容编辑,请加入WIKI建设群904200987(游戏交流勿加会被踢)
使用wiki的数据、图片、音频资源,或者搬运页面内容时,请注明出处。具体参照CC BY-NC-SA 4.0协议
感谢Hyacinth对本wiki提供的数据支持
编辑帮助 • BWIKI反馈
全站通知:
模块:物品图鉴
刷
历
编
跳到导航
跳到搜索
此模块的文档可以在模块:物品图鉴/doc创建
local p = {}
local getSource = require('Module:来源查询')
local getUse = require('Module:用途查询')
p["物品用途"]=function(frame)
local itemName = frame.args['name']
local use = frame.args['keywords']
local other_str = frame.args['other']
if use == nil or #use == 0 then
return ''
end
local html = mw.html.create()
html = html:tag('h2'):wikitext('用途'):done()
if string.find(use,'抽卡') then
html:tag('h3'):wikitext('抽卡'):done()
:node(getUse.use_draw(itemName))
end
if string.find(use,'兑换') then
html:tag('h3'):wikitext('兑换'):done()
:node(getUse.use_shop(itemName))
end
if string.find(use,'角色培养') then
html:tag('h3'):wikitext('同调者培养'):done()
:node(getUse.use_character(itemName, other_str,frame))
end
if string.find(use,'记忆烙痕培养') then
html:tag('h3'):wikitext('记忆烙痕培养'):done()
:node(getUse.use_memory_up(itemName))
end
if string.find(use,'白荆穹顶') then
html:tag('h3'):wikitext('白荆穹顶'):done()
:node(getUse.use_home(itemName))
end
if string.find(use,'活动') then
html:tag('h3'):wikitext('活动'):done()
:node(getUse.use_activity(itemName, other_str))
end
if string.find(use,'思维演绎') then
html:tag('h3'):wikitext('思维演绎'):done()
:wikitext(other_str)
end
if string.find(use,'其他') then
html:tag('h3'):wikitext('其他'):done()
:wikitext(other_str)
end
return html
end
p["物品来源"]=function(frame)
local itemName = frame.args['name']
local access = frame.args['keywords']
local other_str = frame.args['other']
if access == nil or #access == 0 then
return ''
end
local html = mw.html.create()
html:tag('h2'):wikitext('物品来源'):done()
if string.find(access,'抽卡') then
html:tag('h3'):wikitext('抽卡'):done()
:node(getSource.from_draw(itemName))
end
if string.find(access,'副本') then
html:tag('h3'):wikitext('副本掉落'):done()
:node(getSource.from_dungoen(itemName))
end
if string.find(access,'成就') then
html:tag('h3'):wikitext('成就'):done()
:node(getSource.from_achieve(itemName))
end
if string.find(access,'任务') then
html:tag('h3'):wikitext('任务'):done()
:node(getSource.from_quest(itemName))
end
if string.find(access,'兑换') then
html:tag('h3'):wikitext('兑换'):done()
:node(getSource.from_shop(itemName))
end
if string.find(access,'白荆穹顶') then
html:tag('h3'):wikitext('白荆穹顶'):done()
:node(getSource.from_home(itemName))
end
if string.find(access,'分进合击') then
html:tag('h3'):wikitext('分进合击战'):done()
:node(getSource.from_raid(itemName))
end
if string.find(access,'活动') then
html:tag('h3'):wikitext('活动'):done()
:node(getSource.from_activity(itemName,other_str))
end
if string.find(access,'战令') then
html:tag('h3'):wikitext('叶脉联结计划'):done()
if string.find(other_str,'叶脉联结') then
html:wikitext(other_str)
elseif string.find(other_str,'叶脉点数') then
html:node(getSource.from_activity(itemName))
else
html:wikitext('叶脉联结计划等级奖励')
end
end
if string.find(access,'思维演绎') then
html:tag('h3'):wikitext('思维演绎'):done()
:wikitext(other_str)
end
if string.find(access,'其他') then
html:tag('h3'):wikitext('其他'):done()
:wikitext(other_str)
end
return html
end
return p

沪公网安备 31011002002714 号