More actions
Content deleted Content added
No edit summary Tag: Manual revert |
No edit summary |
||
Line 2: | Line 2: | ||
function p.testReplace(frame) |
function p.testReplace(frame) |
||
-- Check for content as a positional or named argument |
|||
local content = frame.args[1] or frame.args.content or "No input provided." |
|||
local replacedContent = content:gsub("foo", "bar") |
local replacedContent = content:gsub("foo", "bar") |
||
return replacedContent -- Only return the modified string |
return replacedContent -- Only return the modified string |
Revision as of 02:24, 26 December 2024
Documentation for this module may be created at Module:TestAdjuster/doc