Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,327
edits
No edit summary |
No edit summary |
||
Line 26:
local skills = {}
local skills_lowered = {}
local category = args.category and trim(args.category) or nil -- Optional category parameter
-- Process skill arguments
table.insert(skills, mw.title.getCurrentTitle().text)
else
Line 42 ⟶ 44:
end
--
local query = {
'[[Uses skill::' .. table.concat(skills, '||') .. ']]',
'[[Production JSON::+]]',
'?=#-',
Line 51 ⟶ 53:
}
-- Add category filter if provided
if category then
table.insert(query, '[[Category::' .. category .. ']]')
end
-- Fetch data
local t1 = os.clock()
local smw_data = mw.smw.ask(query)
|