Changes

no edit summary
Line 61: Line 61:  
_event_map_name_template = "${year} ${quarter} E-${map}",
 
_event_map_name_template = "${year} ${quarter} E-${map}",
 
_date_template = "${year}/${month:2}/${day:2}",
 
_date_template = "${year}/${month:2}/${day:2}",
_quest_label = "Quests",
  −
_quest_link = "[[Quests#${label}|${label}]]",
   
_all_nodes_symbol = "*",
 
_all_nodes_symbol = "*",
 
_max_drops_before_collapsible = 6,
 
_max_drops_before_collapsible = 6,
Line 133: Line 131:  
return format{self._person_template, name = Formatting:format_external_link(person:link()), japanese_name = japanese_name}
 
return format{self._person_template, name = Formatting:format_external_link(person:link()), japanese_name = japanese_name}
 
end
 
end
 +
 +
local custom_quest_links = {
 +
    ["5A05"] = "Partials/Updates/2018_April_23rd#5A05"
 +
}
    
function ShipMetaKai:availability()
 
function ShipMetaKai:availability()
Line 149: Line 151:  
end
 
end
 
if availability and availability.quest then
 
if availability and availability.quest then
         table.insert(result, self._quest_label .. ": " .. U.ijoin(U.imap(availability.quest, function(label) return format{self._quest_link, label = label} end), ", "))
+
         table.insert(result, "Quest: " .. U.ijoin(U.imap(availability.quest, function(label)
 +
            return string.format("[[%s|%s]]", custom_quest_links[label] or string.format("Quests#%s", label), label)
 +
        end), ", "))
 
end
 
end
 
for _, method in ipairs(availability or {}) do
 
for _, method in ipairs(availability or {}) do
cssedit, gkautomate
7,064

edits