localp={}functionp.main(frame)returnp._main(frame.args[1])endfunctionp._main(searchString)localcontent=mw.title.getCurrentTitle():getContent()localoffset=string.find(content,"==",1,true)ifoffsetthenlocallead=string.sub(content,1,offset-1)if(string.find(lead,searchString))thenlead=lead:gsub("{{%s-[Ii]nfobox%s-mapframe","")--don't check for infobox mapframe:gsub("{{%s-[Ii]nfobo[^}]-%|%s-embed%s-=%s-yes","")--don't check for embeded infoboxes:gsub("{{%s-[Ii]nfobo[^}]-%|%s-child%s-=%s-yes","")--don't check for child infoboxeslocaliter=string.gmatch(lead,"{{%s-[Ii]nfobox")iter()ifnotiter()then--if able to find two infoboxes in the lead, then don't return truelocaliter2=string.gmatch(content,searchString)iter2()ifnotiter2()then--if able to find two of the specific infobox in the article, then don't return truereturntrueendendendendendreturnp
มีนาคม 22, 2022
มอด, infobox, lead, อการใช, งานมอด, สร, าง, ณอาจจะต, องการสร, างค, อการใช, งานของมอด, ลน, เข, ยนสามารถทำการทดลองได, กระบะทราย, สร, าง, ดลอก, และช, ดทดสอบ, สร, าง, ของมอด, ลน, โปรดเพ, มหมวดหม, ไปท, หน, าย, อย, หน, าย, อยของมอด, ลน, local, function, main, frame,. khumuxkarichnganmxdul srang khunxaccatxngkarsrangkhumuxkarichngankhxngmxdulniphuekhiynsamarththakarthdlxngidthikrabathray srang khdlxk aelachudthdsxb srang khxngmxdulnioprdephimhmwdhmuipthihnayxy doc hnayxykhxngmxdulnilocal p function p main frame return p main frame args 1 end function p main searchString local content mw title getCurrentTitle getContent local offset string find content 1 true if offset then local lead string sub content 1 offset 1 if string find lead searchString then lead lead gsub s Ii nfobox s mapframe don t check for infobox mapframe gsub s Ii nfobo s embed s s yes don t check for embeded infoboxes gsub s Ii nfobo s child s s yes don t check for child infoboxes local iter string gmatch lead s Ii nfobox iter if not iter then if able to find two infoboxes in the lead then don t return true local iter2 string gmatch content searchString iter2 if not iter2 then if able to find two of the specific infobox in the article then don t return true return true end end end end end return p ekhathungcak https th wikipedia org w index php title mxdul Is infobox in lead amp oldid 8884895, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,