模块:Db:修订间差异
MJ Hamster(留言 | 贡献) 小无编辑摘要 |
MJ Hamster(留言 | 贡献) 小无编辑摘要 |
||
| 第212行: | 第212行: | ||
argType = mw.text.trim(argType) | argType = mw.text.trim(argType) | ||
local value = ValueFromValuesByKey(songEntry, argType) | local value = ValueFromValuesByKey(songEntry, argType) | ||
-- | -- FIX: p.value 中只进行基本的格式化,不应用难度样式 | ||
local | local formattedValue = formatSingleValue(value, argType) | ||
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 | ||
-- | -- 使用 | 作为第一个单元格的分隔符,|| 作为后续单元格的分隔符 | ||
if i == 1 then | if i == 1 then | ||
table.insert(rowCells, '|' .. formattedValue) | table.insert(rowCells, '|' .. formattedValue) | ||