Module:T-Norm: Difference between revisions
// via Wikitext Extension for VSCode Tag: Reverted |
// via Wikitext Extension for VSCode Tag: Reverted |
||
| Line 48: | Line 48: | ||
-- SPECIAL SEMANTIC MAPPINGS GO HERE | -- SPECIAL SEMANTIC MAPPINGS GO HERE | ||
-- Add a custom field processor that will trigger an error for testing | |||
template.processors = template.processors or {} | |||
template.processors.testErrorField = function(value, args, template) | |||
-- This will cause a controlled error: attempt to index a nil value | |||
local nilTable = nil | |||
local result = nilTable.nonExistentProperty -- This will trigger "attempt to index a nil value" | |||
return value | |||
end | |||
-- ================================================================================ | -- ================================================================================ | ||