Editing Module:Param Parse
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 480: | Line 480: | ||
if variant_name and name:sub(-1-#variant_name) == ' '..variant_name then |
if variant_name and name:sub(-1-#variant_name) == ' '..variant_name then |
||
-- Ends with the variant name. Remove it |
-- Ends with the variant name. Remove it |
||
name = name:sub(1, - |
name = name:sub(1, -1-#variant_name) |
||
end |
end |
||
return name |
return name |