-- This module implements {{toolbar}}.localmArguments-- Lazily initialise [[Module:Arguments]]localmTableTools=require('Module:TableTools')localyesno=require('Module:Yesno')localp={}functionp.main(frame)mArguments=require('Module:Arguments')localargs=mArguments.getArgs(frame)returnp._main(args)endfunctionp._main(args)localtoolbarItems=p.makeToolbarItems(args)ifnottoolbarItemsthen-- Return the blank string if no arguments were specified, rather than-- returning empty brackets.return''elseifyesno(args.span)==falsethenreturnstring.format('(%s)',toolbarItems)elsereturnstring.format('<span class="plainlinks%s"%s>(%s)</span>',type(args.class)=='string'and' '..args.classor'',type(args.style)=='string'andstring.format(' style="%s"',args.style)or'',toolbarItems)endendfunctionp.makeToolbarItems(args)localnums=mTableTools.numKeys(args)localsep=(args.separatoror'pipe')..'-separator'sep=mw.message.new(sep):plain()localret={}fori,vinipairs(nums)doret[#ret+1]=args[v]endif#ret>0thenreturntable.concat(ret,sep)elsereturnnilendendreturnp
มีนาคม 11, 2022
มอด, toolbar, เป, นมอด, ลท, กป, องก, นถาวรเน, องจากม, ความเส, ยงส, งกร, ณาอภ, ปรายการเปล, ยนแปลงใด, ทางหน, าค, ณอาจส, งคำขอแก, ไข, ไปย, งผ, แลระบบเพ, อให, แก, ไขได, หากเป, นการแก, ไขท, ไม, การค, ดค, านหร, อม, ความเห, นพ, องสน, บสน, ณย, งสามารถขอให, เล, กป, องก. niepnmxdulthithukpxngknthawrenuxngcakmikhwamesiyngsungkrunaxphipraykarepliynaeplngid thanghnakhuy khunxacsngkhakhxaekikh ipyngphuduaelrabbephuxihaekikhidhakepnkaraekikhthiimmikarkhdkhanhruxmikhwamehnphxngsnbsnun khunyngsamarthkhxihelikpxngknhnaidkhumuxkarichnganmxdul srang khunxaccatxngkarsrangkhumuxkarichngankhxngmxdulniphuekhiynsamarththakarthdlxngidthikrabathray srang khdlxk aelachudthdsxb srang khxngmxdulnioprdephimhmwdhmuipthihnayxy doc hnayxykhxngmxdulni This module implements toolbar local mArguments Lazily initialise Module Arguments local mTableTools require Module TableTools local yesno require Module Yesno local p function p main frame mArguments require Module Arguments local args mArguments getArgs frame return p main args end function p main args local toolbarItems p makeToolbarItems args if not toolbarItems then Return the blank string if no arguments were specified rather than returning empty brackets return elseif yesno args span false then return string format s toolbarItems else return string format lt span class plainlinks s s gt s lt span gt type args class string and args class or type args style string and string format style s args style or toolbarItems end end function p makeToolbarItems args local nums mTableTools numKeys args local sep args separator or pipe separator sep mw message new sep plain local ret for i v in ipairs nums do ret ret 1 args v end if ret gt 0 then return table concat ret sep else return nil end end return p ekhathungcak https th wikipedia org w index php title mxdul Toolbar amp oldid 5403876, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,