Module:Infobox Tools: Difference between revisions
Content added Content deleted
(Removing other spaces that shouldn't be parsed as spaces...) |
(Testing removing characters from ends to remove the extra spaces in the output) |
||
Line 186: | Line 186: | ||
temp_str = temp_str .. ','; |
temp_str = temp_str .. ','; |
||
--Loop through the list and append link brackets and the value to the output |
--Loop through the list and append link brackets and the value to the output |
||
for w in temp_str:gmatch("(.-),") do |
for w in temp_str:gmatch("(.-),") do |
||
local tmp = w:sub(2,-2); |
|||
output_str = output_str .. '[[Equipment/' .. tmp .. '|' .. tmp ..']], ' |
|||
end |
|||
--Remove the extra comma and space at the end |
--Remove the extra comma and space at the end |
||
output_str = output_str:sub(1, -3); |
output_str = output_str:sub(1, -3); |