Module:AVDevice: Difference between revisions

Group inputs and outputs by location with prominent labels (via update-page on MediaWiki MCP Server)
Add audio properties to input query for displaying audio information in infobox (via update-page on MediaWiki MCP Server)
Line 92: Line 92:
local connectorProp = ioType == 'input' and 'Has connector type' or 'Has output connector'
local connectorProp = ioType == 'input' and 'Has connector type' or 'Has output connector'
local templateName = ioType == 'input' and 'AV device input row' or 'AV device output row'
local templateName = ioType == 'input' and 'AV device input row' or 'AV device output row'
-- Build audio property queries (only for inputs)
local audioProps = ''
if ioType == 'input' then
audioProps = ' |?Has audio type=audio\n' ..
' |?Has audio connector=audio_connector\n' ..
' |?Has audio shared with=audio_shared\n'
end
local queryWikitext =
local queryWikitext =
Line 101: Line 109:
' |?' .. signalProp .. '=signal\n' ..
' |?' .. signalProp .. '=signal\n' ..
' |?' .. connectorProp .. '=connector\n' ..
' |?' .. connectorProp .. '=connector\n' ..
audioProps ..
' |format=template\n' ..
' |format=template\n' ..
' |template=' .. templateName .. '\n' ..
' |template=' .. templateName .. '\n' ..
MediaWiki Appliance - Powered by TurnKey Linux