Module:AVDevice: Difference between revisions
Replace Connectivity section with separate Inputs/Outputs sections matching CRT model style. Uses discoverLocations() for dynamic location discovery and renderIOSection() for consistent rendering. Removes countIOByLocation and buildLocationGroupedIO functions. (via update-page on MediaWiki MCP Server) |
Remove !Remote control filter from Accessories section — AV devices don't have a dedicated remote_control field like CRT models, so remote controls should appear in Accessories (via update-page on MediaWiki MCP Server) |
||
| Line 562: | Line 562: | ||
) | ) | ||
-- Query for | -- Query for accessories linked via Has related AV device | ||
-- Unlike CRT models which have a dedicated remote_control field, | |||
-- AV devices show all accessory types including remote controls here. | |||
local accessoriesCountWikitext = | local accessoriesCountWikitext = | ||
'{{#ask:\n' .. | '{{#ask:\n' .. | ||
' [[Category:Accessories]]\n' .. | ' [[Category:Accessories]]\n' .. | ||
' [[Has related AV device::' .. fullPageName .. ']]\n' .. | ' [[Has related AV device::' .. fullPageName .. ']]\n' .. | ||
' |format=count\n' .. | ' |format=count\n' .. | ||
'}}' | '}}' | ||
| Line 582: | Line 583: | ||
' [[Category:Accessories]]\n' .. | ' [[Category:Accessories]]\n' .. | ||
' [[Has related AV device::' .. fullPageName .. ']]\n' .. | ' [[Has related AV device::' .. fullPageName .. ']]\n' .. | ||
' |?Has accessory type=type\n' .. | ' |?Has accessory type=type\n' .. | ||
' |?Has model code=model\n' .. | ' |?Has model code=model\n' .. | ||