fbpx
วิกิพีเดีย

มอดูล:Requested articles

คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]

การใช้งาน

มอดูลนี้สุ่มลิงก์ในหน้าวิกิพีเดีย:บทความที่ต้องการ มาแสดงผลในหน้า พิเศษ:ปรับปรุงล่าสุด

วิธีใช้ ให้เรียก {{#invoke:Requested articles|main|จำนวนลิงก์ที่ต้องการจะให้แสดง}}

เช่น

{{#invoke:Requested articles|main|3}} จะแสดงผล การสั่น^ กรอบความคิด^ สนิฟเฟกซ์^

local p = {} local random = require('Module:Math')._random  function p.main(frame)  total = tonumber(frame.args[1])  links = {}  content = mw.title.new('วิกิพีเดีย:บทความที่ต้องการ'):getContent()  for thlink, enlink in content:gmatch('* %[%[(%S-)%]%] %(%[%[(:en:%S-)%]%]%)') do  if not thlink:find(']', 1, true) then  table.insert(links, {thlink, enlink})  end  end  selected = {}  out = {}  while #out < total do  num = random(#links)  if not selected[num] then  selected[num] = true  table.insert(out, '[[' .. links[num][1] .. ']][[' .. links[num][2] .. '|^]]')  end  end  return table.concat(out, ' ') end  return p 

มอด, requested, articles, เป, นมอด, ลท, กป, องก, นถาวรเน, องจากม, ความเส, ยงส, งกร, ณาอภ, ปรายการเปล, ยนแปลงใด, ทางหน, าค, ณอาจส, งคำขอแก, ไข, ไปย, งผ, แลระบบเพ, อให, แก, ไขได, หากเป, นการแก, ไขท, ไม, การค, ดค, านหร, อม, ความเห, นพ, องสน, บสน, ณย, งสามารถขอให,. niepnmxdulthithukpxngknthawrenuxngcakmikhwamesiyngsungkrunaxphipraykarepliynaeplngid thanghnakhuy khunxacsngkhakhxaekikh ipyngphuduaelrabbephuxihaekikhidhakepnkaraekikhthiimmikarkhdkhanhruxmikhwamehnphxngsnbsnun khunyngsamarthkhxihelikpxngknhnaidkhumuxkarichnganmxdul du aek prawti langaekhch mxdulnixyuphayitkarpxngkn epnmxdulthimxngehnidngayxnenuxngmacakkarichnganodyhnacanwnmakhruxmikaraethnthibxykhrng karkxkwnhruxkhwamphidphladcakkaraekikhcasngphlkrathbtxhlay hna hruxaemaetkaraekikhelknxykxacthaihesirfewxridrbpharangancanwnmak cungtxngidrbkarpxngkncakkaraekikhkarichngan mxdulnisumlingkinhnawikiphiediy bthkhwamthitxngkar maaesdngphlinhna phiess prbprunglasudwithiich iheriyk invoke Requested articles main canwnlingkthitxngkarcaihaesdng echn invoke Requested articles main 3 caaesdngphl karsn krxbkhwamkhid snifefks khumuxkarichnganthipraktdanbnnidungmacak mxdul Requested articles doc aek prawti phuekhiynsamarththakarthdlxngidthikrabathray srang khdlxk aelachudthdsxb srang khxngmxdulni hnayxykhxngmxdulnilocal p local random require Module Math random function p main frame total tonumber frame args 1 links content mw title new wikiphiediy bthkhwamthitxngkar getContent for thlink enlink in content gmatch S en S do if not thlink find 1 true then table insert links thlink enlink end end selected out while out lt total do num random links if not selected num then selected num true table insert out links num 1 links num 2 end end return table concat out end return p ekhathungcak https th wikipedia org w index php title mxdul Requested articles amp oldid 5542064, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

บทความ

, อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม