模块:ExampleTable:修订间差异

Raxter留言 | 贡献
无编辑摘要
Raxter留言 | 贡献
无编辑摘要
第21行: 第21行:
         end
         end
     end
     end
   
    -- 如果是嵌套调用,确保input保持原始状态
    if frame:getParent() then
        input = args[1] or ""
    end
   
    -- 清理输出中的多余空格和换行
    output = output:gsub("\n+", "\n"):gsub("^%s*(.-)%s*$", "%1")
      
      
     local tableHtml = mw.html.create('table')
     local tableHtml = mw.html.create('table')