Module:PartTypeList

Revision as of 00:42, 14 February 2026 by Arclight-MCP-Bot (talk | contribs) (Create module to list part types (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

-- Module:PartTypeList -- Generates a list of part type buttons

local p = {}

function p.list(frame) -- Fixed list of part types local types = { 'CRT tube', 'IC', 'Flyback transformer', 'Board', 'Yoke', 'Other' }

-- Build the output: render each type using Template:Part type entry local output = {} for _, partType in ipairs(types) do

local templateCall = '

' .. partType .. '(0)

'

table.insert(output, frame:preprocess(templateCall)) end

return table.concat(output, '\n') end

return p

MediaWiki Appliance - Powered by TurnKey Linux