Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:View/Quest
(view source)
Revision as of 22:16, 18 October 2020
131 bytes added
,
3 years ago
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