Module:T-Process: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Reverted
// via Wikitext Extension for VSCode
Tag: Reverted
Line 99: Line 99:
template.config.semantics.transforms = template.config.semantics.transforms or {}
template.config.semantics.transforms = template.config.semantics.transforms or {}
template.config.semantics.transforms["Has process connection"] = function(value)
template.config.semantics.transforms["Has process connection"] = function(value)
     return extractSemanticValue(value, "Process")
     -- Skip empty values
    if not value or value == "" then
        return nil
    end
   
    -- Skip if value is exactly "Process" (the literal string)
    if value == "Process" then
        return nil
    end
   
    -- Use LinkParser directly to check for and extract wiki links
    local LinkParser = require('Module:LinkParser')
    if LinkParser.processWikiLink(value, "check") then
        -- Value has wiki links, extract the content
        return LinkParser.extractFromWikiLink(value)
    end
   
    -- No wiki links - return nil to avoid adding invalid values
    return nil
end
end
-- No need to skip this property anymore, as our batch processing system now handles it correctly
-- No need to skip this property anymore, as our batch processing system now handles it correctly