3415
редагувань
| Admin (обговорення | внесок)  (Створена сторінка: local p = {}  function p.fetchCategoryData(frame)     local categoryName = "Учасники_спільноти_MCC"  -- The category to fetch from     local continue = nil     local pages = {}     repeat         local query = mw.smw.ask('Category:' .. categoryName .. '|limit=500' .. (continue and '|continue=' .. continue or ''))         for _, page in pairs(query) do             table.insert(pages, page.fullText)         end         continue = query["...) | Admin (обговорення | внесок)  Немає опису редагування | ||
| Рядок 3: | Рядок 3: | ||
| function p.fetchCategoryData(frame) | function p.fetchCategoryData(frame) | ||
|      local categoryName = "Учасники_спільноти_MCC"  -- The category to fetch from |      local categoryName = "Учасники_спільноти_MCC"  -- The category to fetch from | ||
|      local pages = mw.title.makeTitle(14, categoryName):getCategoryMembers() | |||
|      local pages  | |||
|      -- Start the wikitable |      -- Start the wikitable | ||
|      local output = '{| class="wikitable sortable" style="text-align:center;"\n! Учасник\n! Page Link\n' |      local output = '{| class="wikitable sortable" style="text-align:center;"\n! Учасник\n! Page Link\n' | ||
|      -- Add rows to the wikitable |      -- Add rows to the wikitable | ||
|      for _,  |      for _, page in ipairs(pages) do | ||
|          output = output .. '|-\n| ' ..  |         local title = page.text | ||
|          output = output .. '|-\n| ' .. title .. '\n| [[' .. title .. ']]\n' | |||
|      end |      end | ||