Module:Uses skill list: Difference between revisions

no edit summary
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
Line 48:
'[[Uses skill::' .. table.concat(skills, '||') .. ']]',
'[[Production JSON::+]]',
'[[CategoryRecipeCategory::Unf]]',
'?=#-',
'?Production JSON = json',
'?Category', -- Fetch the Category field for filtering later
limit = args.limit or 500,
}
-- Add category filter if provided
-- if category then
-- table.insert(query, '[[CategoryRecipeCategory::' .. category .. ']]')
-- end
 
-- Fetch data