无编辑摘要
无编辑摘要
第212行: 第212行:
         argType = mw.text.trim(argType)
         argType = mw.text.trim(argType)
         local value = ValueFromValuesByKey(songEntry, argType)
         local value = ValueFromValuesByKey(songEntry, argType)
        local formattedValue = formatSingleValue(value, argType)
          
          
         -- 应用自定义样式
         -- FIX: p.value 中只进行基本的格式化,不应用难度样式
         local btn, mode = getDifficultyDetails(argType)
         local formattedValue = formatSingleValue(value, argType)  
        if btn and mode then
            formattedValue = formatDifficultyValue(formattedValue, btn, mode)
        end
          
          
         table.insert(resultTable, formattedValue)
         table.insert(resultTable, formattedValue)
第332行: 第328行:
             local formattedValue = formatSingleValue(rawValue, field)
             local formattedValue = formatSingleValue(rawValue, field)
              
              
             -- 应用自定义样式
             -- 在 p.generateListTable 中应用自定义样式
             local btn, mode = getDifficultyDetails(field)
             local btn, mode = getDifficultyDetails(field)
             if btn and mode then
             if btn and mode then
第338行: 第334行:
             end
             end
              
              
             -- FIX: 使用 | 作为第一个单元格的分隔符,|| 作为后续单元格的分隔符
             -- 使用 | 作为第一个单元格的分隔符,|| 作为后续单元格的分隔符
             if i == 1 then
             if i == 1 then
                 table.insert(rowCells, '|' .. formattedValue)
                 table.insert(rowCells, '|' .. formattedValue)