890
pakeitimų
SNėra keitimo santraukos |
SNėra keitimo santraukos |
||
| 422 eilutė: | 422 eilutė: | ||
if hc(a.category) then | if hc(a.category) then | ||
-- if it has category, {{Update}} | |||
local category_key = cat_switch[string.gsub(string.lower(a.category), ' ?updates?', '')] | |||
if category_key then | |||
cat = category_info[category_key][2] | |||
else | |||
-- If the category key doesn't exist, default to 'Patch Notes' | |||
cat = 'Patch Notes' | |||
end | |||
else | else | ||
-- missing both probably means {{Patch Notes}} | |||
cat = 'Patch Notes' | |||
end | end | ||
return string.format("'''%s''' – %s: [[Update:%s|%s]]",year,cat,page,page) | return string.format("'''%s''' – %s: [[Update:%s|%s]]",year,cat,page,page) | ||