Changes

no edit summary
Line 93: Line 93:  
     table.insert(result, table_footer)
 
     table.insert(result, table_footer)
 
   end
 
   end
 
  −
 
  −
 
   
   local s = _.join(result, '\n')
 
   local s = _.join(result, '\n')
 
   s = s:gsub("{{Audio|file=([^}]+)}}", '<span class="audio-button">[[Media:%1|Play]]</span>')
 
   s = s:gsub("{{Audio|file=([^}]+)}}", '<span class="audio-button">[[Media:%1|Play]]</span>')
  s = s:gsub("{{color|red|([^}]+)}}", '<span style="color:red">%1</span>')
   
   s = s:gsub("{{ShipLink|([^|^}]+)}}", function(e) return string.format('[[%s]]', e:gsub('/', ' ')) end)
 
   s = s:gsub("{{ShipLink|([^|^}]+)}}", function(e) return string.format('[[%s]]', e:gsub('/', ' ')) end)
 
   s = s:gsub("{{ShipLink|([^|^}]+)|kai=x}}", function(e) return string.format('[[%s]] (Kai)', e:gsub('/', ' ')) end)
 
   s = s:gsub("{{ShipLink|([^|^}]+)|kai=x}}", function(e) return string.format('[[%s]] (Kai)', e:gsub('/', ' ')) end)
Line 104: Line 100:  
   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]]")
 
   s = s:gsub("{{EquipmentLink|([^|^}]+)|image=30px|text=true}}", "[[%1]]")
 +
  s = s:gsub("{{color|red|([^}]+)}}", '<span style="color:red">%1</span>')
 
   return s
 
   return s
 
end
 
end
cssedit, gkautomate
7,064

edits