• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
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
7,064

edits

Navigation menu