Module:Infobox Tools: Difference between revisions
Content added Content deleted
(fixing variable name) |
(Add commas between the links created by linkify_equip_list) |
||
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 output_str = output_str .. '[[' .. w .. ']]' end |
for w in temp_str:gmatch("(.-),") do output_str = output_str .. '[[' .. w .. ']], ' end |
||
--Remove the extra comma and space at the end |
|||
⚫ | |||
temp_str = temp_str:sub(1, -3); |
|||
⚫ | |||
return output_str; |
return output_str; |
||
end |
end |