模块:Db:修订间差异
MJ Hamster(留言 | 贡献) 小无编辑摘要 |
MJ Hamster(留言 | 贡献) 小无编辑摘要 |
||
| 第115行: | 第115行: | ||
-- 4. 值格式化方法 (valueMappingMethod | -- 4. 值格式化方法 (valueMappingMethod) | ||
p.valueMappingMethod = { | p.valueMappingMethod = { | ||
['duration'] = (function (value) | ['duration'] = (function (value) | ||
| 第167行: | 第167行: | ||
local formattedValue = formatSingleValue(value, argType) | local formattedValue = formatSingleValue(value, argType) | ||
-- | -- 在 p.value 中应用 {{df|}} 模板 | ||
if isRhythmGameField(argType) then | if isRhythmGameField(argType) then | ||
formattedValue = '{{df|' .. formattedValue .. '}}' | formattedValue = '{{df|' .. formattedValue .. '}}' | ||
| 第287行: | 第287行: | ||
end | end | ||
table.insert(output, '| ' .. formattedValue) | -- FIX: 移除表格单元格分隔符后的空格 | ||
table.insert(output, '|' .. formattedValue) | |||
end | end | ||
end | end | ||