模块:ExampleTable:修订间差异

Raxter留言 | 贡献
无编辑摘要
Raxter留言 | 贡献
无编辑摘要
第6行: 第6行:
      
      
     local input = args[1] or ""
     local input = args[1] or ""
     local output = args[2] or frame:preprocess(input)
     local output = args[2]
   
    if not output then
        local nowiki_content = input:gsub("</?nowiki>", "")
        output = frame:preprocess(nowiki_content)
    end
      
      
     local tableHtml = mw.html.create('table')
     local tableHtml = mw.html.create('table')
         :addClass('wikitext')
         :addClass('wikitable')
         :tag('tr')
         :tag('tr')
             :tag('th')
             :tag('th')