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)
    -- Skip empty values
     if LinkParser.processWikiLink(value, "check") then
     if not value or value == "" then
         return LinkParser.extractFromWikiLink(value)
         return nil
     end
     end
      
     return nil
    -- If it's exactly "Process" (literal string), filter it out
    if value == "Process" then
        return nil
    end
   
    -- For all other values, use the standard extractSemanticValue function
    return extractSemanticValue(value, "Process")
end
end
template.config.semantics.skipProperties = template.config.semantics.skipProperties or {}
template.config.semantics.skipProperties = template.config.semantics.skipProperties or {}