Module:Update: Difference between revisions
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 | local function qprlink(qpr) | ||
return ' | return '' .. string.gsub(qpr, '%-', ',') | ||
end | end | ||
| Line 290: | Line 290: | ||
local link | local link | ||
if hc(a. | if hc(a.qpr) then | ||
if a. | if a.qpr == 'no' then | ||
link = 'the patch note page' | link = 'the patch note page' | ||
elseif a. | elseif a.qpr == 'none' then | ||
link = '' | link = '' | ||
else | else | ||
link = '[' .. | link = '[' .. qprlink(a.qpr) .. ' this forum thread]' | ||
end | end | ||
else | else | ||
link = '( | link = '(qpr missing)' | ||
cat = cat .. '[[Category:Missing patch notes | 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. | elseif hc(a.qpr) then | ||
-- if it has | -- if it has qpr, {{Patch Notes}} | ||
cat = 'Patch Notes' | cat = 'Patch Notes' | ||
else | else | ||