Module:Update: Difference between revisions

Undo revision 4948 by Banri (talk)
Tag: Undo
mNo edit summary
Line 277: Line 277:
-- [[Template:Patch Notes]]
-- [[Template:Patch Notes]]
function p.patchnotes(frame)
function p.patchnotes(frame)
local function qfclink(qfc)
local function qprlink(qpr)
return 'https://www.geministation.com/patch-notes' .. string.gsub(qfc, '%-', ',')
return '' .. string.gsub(qpr, '%-', ',')
end
end
Line 290: Line 290:
local link
local link
if hc(a.qfc) then
if hc(a.qpr) then
if a.qfc == 'no' then
if a.qpr == 'no' then
link = 'the patch note page'
link = 'the patch note page'
elseif a.qfc == 'none' then
elseif a.qpr == 'none' then
link = ''
link = ''
else
else
link = '[' .. qfclink(a.qfc) .. ' this forum thread]'
link = '[' .. qprlink(a.qpr) .. ' this forum thread]'
end
end
else
else
link = '(QFC missing)'
link = '(qpr missing)'
cat = cat .. '[[Category:Missing patch notes QFC]]'
cat = cat .. '[[Category:Missing patch notes qpr]]'
end
end
Line 555: Line 555:
-- if it has category, {{Update}}
-- if it has category, {{Update}}
cat = category_info[cat_switch[string.gsub(string.lower(a.category), ' ?updates?', '')]][2]
cat = category_info[cat_switch[string.gsub(string.lower(a.category), ' ?updates?', '')]][2]
elseif hc(a.qfc) then
elseif hc(a.qpr) then
-- if it has qfc, {{Patch Notes}}
-- if it has qpr, {{Patch Notes}}
cat = 'Patch Notes'
cat = 'Patch Notes'
else
else