Jump to content

Module:Infobox Tools: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 187:
--Loop through the list and append link brackets and the value to the output
for w in temp_str:gmatch("(.-),") do
--Remove whitespace from the ends of the strings
local tmp = w:sub(2,-1);
local str = string.gsub(w, '^%s*(.-)%s*$', '%1')
output_str = output_str .. '[[Equipment/' .. tmpstr .. '|' .. tmpstr ..']], '
end
--Remove the extra comma and space that got added at the end
output_str = output_str:sub(1, -3);
Cookies help us deliver our services. By using our services, you agree to our use of cookies.