پودمان:Imamatpedia: تفاوت میان نسخه‌ها

۲۶۰ بایت اضافه‌شده ،  ‏۵ مارس ۲۰۲۴
بدون خلاصۀ ویرایش
(جایگزینی صفحه با 'local fgetFAlist = require('Module:Imamatpedia/Selected').getFAlist local function a_rlist(frame) local c = '' local d = {} if (frame.args[1] =='fa' or frame.args[1] =='Selected' ) then d = fgetFAlist() for _,s in ipairs(d) do c = c .. "\n# " .. s .. "" end end return c end return a_rlist')
برچسب: جایگزین شد
بدون خلاصۀ ویرایش
 
(۷ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
local fgetFAlist = require('Module:Imamatpedia/Selected').getFAlist
local fgetFAlist = require('Module:Imamatpedia/Selected').getFAlist


local function a_rlist(frame)
local a = {}
    local c = ''
    local d = {}


     if (frame.args[1] =='fa' or frame.args[1] =='Selected' ) then
function a.rnumber( frame )
        d = fgetFAlist()
     d = {}
        for _,s in ipairs(d) do
 
            c = c .. "\n# [[" .. s .. "]]"
if (frame.args[1] =='fa' or frame.args[1] =='Selected' ) then
        end   
d = fgetFAlist()
    end
return #d
 
end
end
 
function a.rlist( frame )
if (frame.args[1] =='fa' or frame.args[1] =='Selected' ) then
d = fgetFAlist()
end
 
    math.randomseed( os.time() )
    x = math.random(1,#d)
    repeat
    x1 = math.random(1,#d)
until x1 ~= x
    repeat
    x2 = math.random(1,#d)
until (x2 ~= x and x2 ~= x1)
 
    return "[["..d[x1].."]] – [["..d[x].."]] – [["..d[x2].."]]"  


    return c
end
end


return a_rlist
----
----
return a
۲۶٬۵۱۵

ویرایش