模块:ItemInfo:修订间差异

跳转到导航 跳转到搜索
添加9字节 、​ 2024年6月8日 (星期六)
完善模板
无编辑摘要
(完善模板)
第135行: 第135行:
         local type = tonumber(item.type)
         local type = tonumber(item.type)
         -- 之后要替换为图片,提供更好的视觉效果
         -- 之后要替换为图片,提供更好的视觉效果
         local icon = '<span style="background-color: ' .. p.gcType[type + 1] .. '; padding: .1em; color: white">' .. item.level .. '</span>'
         local icon = '<span style="background-color: ' .. p.gcType[type + 1] .. '; padding: inherit .25em; color: white">' .. item.level .. '</span>'
         local section = '==' .. icon .. item.name .. '==\n' .. item.desc
         local section = '==' .. icon .. item.name .. '==\n' .. item.desc
         local html = mw.html.create('table'):addClass('wikitable')
         local html = mw.html.create('table'):addClass('wikitable')
第147行: 第147行:
          
          
         html:tag('tr')
         html:tag('tr')
             :tag('th'):wikitext(item.quality):done()
             :tag('td'):wikitext(item.quality):done()
             :tag('th'):wikitext(item.gd):done()
             :tag('td'):wikitext(item.gd):done()
             :tag('th'):wikitext(string.sub(item.price, 0, -2)):done()
             :tag('td'):wikitext(string.sub(item.price, 0, -2)):done()
             :tag('th'):wikitext(item.rarity):done()
             :tag('td'):wikitext(item.rarity):done()
             :tag('th'):wikitext(item.eff_val):done()
             :tag('td'):wikitext(item.eff_val):done()
          
          
         local list = checkAndMakeParamList(item)
         local list = checkAndMakeParamList(item)
1,075

个编辑

导航菜单