Module:Block value: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 9: | Line 9: | ||
-- Most of these transforms are unnecessary, but are kept for compatibility with original template | -- Most of these transforms are unnecessary, but are kept for compatibility with original template | ||
-- Strip trailing "s" on everything but these | -- Strip trailing "s" on everything but these | ||
local keepS = { | local keepS = { | ||
| Line 22: | Line 22: | ||
seagrass = true | seagrass = true | ||
} | } | ||
if | if type~="Blast resistance" and not keepS[block:match( '%w+$' )] then | ||
block = block:gsub( 's$', '' ) | block = block:gsub( 's$', '' ) | ||
end | end | ||
-- Other transforms | -- Other transforms | ||
if | if type~="Blast resistance" then | ||
block = block | block = block | ||
:gsub( 'wooden', 'wood' ) | :gsub( 'wooden', 'wood' ) | ||