无编辑摘要
无编辑摘要
第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)
          
          
         -- **FIX: 在 p.value 中应用 {{df|}} 模板**
         -- 在 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