Module:AVDevice: Difference between revisions

Add related_models rendering to infobox - displays linked PAL/NTSC variants in Overview section (via update-page on MediaWiki MCP Server)
Fix Type row red link: link to AV Device Search with filter instead of non-existent article page (fixes VCR/DVD-R combo and similar types with slashes) (via update-page on MediaWiki MCP Server)
Line 323: Line 323:
end
end


-- Type row: link to AV Device Search with filter, not to a (possibly non-existent) article
if device_type then
if device_type then
addRow(container, 'Type', '[[' .. device_type .. ']]', true)
local typeSearchUrl = tostring(mw.uri.fullUrl('AV Device Search', {device_type = device_type}))
local typeWikitext = '<span class="plainlinks">[' .. typeSearchUrl .. ' ' .. device_type .. ']</span>'
addRow(container, 'Type', typeWikitext, true)
end
end


MediaWiki Appliance - Powered by TurnKey Linux