Module:BrandSeries: Difference between revisions

Fix Unassigned link - use proper HTML anchor tag (via update-page on MediaWiki MCP Server)
Fix Unassigned link - use full URL for wikitext external link (via update-page on MediaWiki MCP Server)
Line 107: Line 107:
-- Unassigned row (if any) with link to Special:Ask
-- Unassigned row (if any) with link to Special:Ask
if unassignedCount > 0 then
if unassignedCount > 0 then
-- Build Special:Ask URL for unassigned models
-- Build Special:Ask URL for unassigned models (full URL for external link syntax)
local askQuery = string.format('[[Category:CRT models]][[Has brand::%s]][[Has series::!+]]', brand)
local askQuery = string.format('[[Category:CRT models]][[Has brand::%s]][[Has series::!+]]', brand)
local askUrl = '/wiki/Special:Ask/' .. encodeForAsk(askQuery)
local askUrl = 'https://wiki.everycrt.com/wiki/Special:Ask/' .. encodeForAsk(askQuery)
-- Use HTML anchor tag directly
-- Use wikitext external link syntax with full URL
local unassignedLink = '<a href="' .. askUrl .. '"><i>(Unassigned)</i></a>'
local unassignedLink = "[" .. askUrl .. " ''(Unassigned)'']"
table.insert(lines, '|-')
table.insert(lines, '|-')
MediaWiki Appliance - Powered by TurnKey Linux