Module:BrandSeries: Difference between revisions
Fix Unassigned link: encode ! as -21 for Special:Ask URLs (via update-page on MediaWiki MCP Server) |
Use Category:CRTs without series for unassigned link (SMW !+ queries don't work) (via update-page on MediaWiki MCP Server) |
||
| Line 113: | Line 113: | ||
-- 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 | ||
-- | -- Use Category:CRTs without series instead of [[Has series::!+]] | ||
local askQuery = string.format('[[Category: | -- because SMW's negated existence queries don't work correctly | ||
local askQuery = string.format('[[Category:CRTs without series]][[Has brand::%s]]', brand) | |||
local askUrl = 'https://wiki.everycrt.com/wiki/Special:Ask/' .. encodeForAsk(askQuery) | local askUrl = 'https://wiki.everycrt.com/wiki/Special:Ask/' .. encodeForAsk(askQuery) | ||
-- Use wikitext external link syntax with full URL | -- Use wikitext external link syntax with full URL | ||