跳到内容

Module:ChartConstantDetail:修订间差异

添加63字节 、​ 2022年7月10日 (星期日)
无编辑摘要
无编辑摘要
无编辑摘要
第9行: 第9行:




function constantFormat (a)
local function constantFormat (a)
if not(a) then return "" end
if not(a) then
     return "<span class=\"old-constant\"> - <span>"
   end
    if a["old"] == true then
    if a["old"] == true then
      return "<span class=\"old-constant\">" .. string.format("%.1f", a["constant"]) .. "<span>"
      return "<span class=\"old-constant\">" .. string.format("%.1f", a["constant"]) .. "<span>"
第17行: 第19行:
    end
    end
end
end


function p.main()
function p.main()
第49行: 第49行:


    for i, k in pairs(constantList) do
    for i, k in pairs(constantList) do
    
      if specialSongNameConverter[k[2]] then
      if specialSongNameConverter[k[2]] then
        finText = finText .. "|-\n|[[" .. specialSongNameConverter[k[2]] 
        finText = finText .. "|-\n|[[" .. specialSongNameConverter[k[2]] 
134

个编辑