ผลต่างระหว่างรุ่นของ "มอดูล:Expand wikitext"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Horus (คุย | ส่วนร่วม)
หน้าใหม่: local p = {} local yesno = require("Module:Yesno") function p.main(frame) local pframe = frame:getParent() local code = frame.args[1] if mw.text.trim(mw.text.killMark...
 
Ans (คุย | ส่วนร่วม)
to use {{{unstrip}}} and simpler version
บรรทัด 8:
end
return pframe:preprocess(code)
end
 
-- just in case we need to use {{{unstrip}}} in wikitext
-- also this make the code simpler and faster
function p.preprocess(frame)
return frame:preprocess(frame.args[1])
end
function p.preprocessUnstrip(frame)
return frame:preprocess(mw.text.unstripNoWiki(frame.args[1]))
end