Changes

no edit summary
Line 95: Line 95:  
   local s = _.join(result, '\n')
 
   local s = _.join(result, '\n')
 
   s = s:gsub("{{color|red|([^}]+)}}", '<span style="color:red">%1</span>')
 
   s = s:gsub("{{color|red|([^}]+)}}", '<span style="color:red">%1</span>')
   s = s:gsub("{{ShipLink|([^|^}]+)}}", "[[%1]]")
+
   s = s:gsub("{{ShipLink|([^|^}]+)}}", function(e) return string.format('[[%s]]', e:gsub('/', ' ')) end)
 
   s = s:gsub("{{EquipmentLink|([^|^}]+)|text=true|image=30px}}", "[[%1]]")
 
   s = s:gsub("{{EquipmentLink|([^|^}]+)|text=true|image=30px}}", "[[%1]]")
 +
  s = s:gsub("{{EquipmentLink|([^|^}]+)|image=30px|text=true}}", "[[%1]]")
 
   return s
 
   return s
 
end
 
end
cssedit, gkautomate
6,926

edits