Module:ChartConstantDetail:修订间差异

添加3字节 、​ 2022年7月10日 (星期日)
有没有谁告诉我 我写的这玩意标签都没闭合怎么能用的??????
(DrLee lihr移动页面Module:Sandbox/ChartConstantDetailModule:ChartConstantDetail,不留重定向)
(有没有谁告诉我 我写的这玩意标签都没闭合怎么能用的??????)
第11行: 第11行:
local function constantFormat (a)
local function constantFormat (a)
if not(a) then
if not(a) then
      return "<span class=\"old-constant\"> - <span>"
      return "<span class=\"old-constant\"> - </span>"
    end
    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>"
    else
    else
      return "<span class=\"new-constant\">" .. string.format("%.1f", a["constant"]) .. "<span>"
      return "<span class=\"new-constant\">" .. string.format("%.1f", a["constant"]) .. "</span>"
    end
    end
end
end
134

个编辑