Module:RemoveCountySuffix: Difference between revisions
From Trans People Together Wiki
Created page with "-- Module:Replace local p = {} function p.replace(frame) local str = frame.args[1] local pattern = frame.args[2] local replacement = frame.args[3] return mw.ustring.gsub(str, pattern, replacement) end return p" |
No edit summary |
||
Line 4: | Line 4: | ||
function p.replace(frame) | function p.replace(frame) | ||
local str = frame.args[1] | local str = frame.args[1] | ||
local pattern = frame.args[2] | local pattern = ' County, ' + frame.args[2] | ||
local replacement = | local replacement = '' | ||
return mw.ustring.gsub(str, pattern, replacement) | return mw.ustring.gsub(str, pattern, replacement) | ||
end | end | ||
return p | return p |
Revision as of 10:51, 14 May 2025
Documentation for this module may be created at Module:RemoveCountySuffix/doc