Module:LuaTemplateBlueprint: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 1,111: | Line 1,111: | ||
end | end | ||
end | end | ||
-- Add debug info as HTML comment (Phase 1 monitoring) | |||
local debugInfo = string.format( | |||
"<!-- SMW Debug: total_props=%d, unique_signatures=%d -->", | |||
collector.count or 0, | |||
table.maxn(collector.seen or {}) | |||
) | |||
-- Send all deduplicated properties to SemanticAnnotations in one batch | -- Send all deduplicated properties to SemanticAnnotations in one batch | ||
| Line 1,119: | Line 1,126: | ||
) | ) | ||
return semanticOutput | -- Append debug info to output | ||
if semanticOutput and semanticOutput ~= '' then | |||
return semanticOutput .. '\n' .. debugInfo | |||
else | |||
return debugInfo | |||
end | |||
end | end | ||