Module:Update: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 55: Line 55:
-- converting month names to hex for sortkeys
-- converting month names to hex for sortkeys
local hexmonthconv = {
local hexmonthconv = {
January = '1',
January = '0',
February = '2',
February = '1',
March = '3',
March = '2',
April = '4',
April = '3',
May = '5',
May = '4',
June = '6',
June = '5',
July = '7',
July = '6',
August = '8',
August = '7',
September = '9',
September = '8',
October = 'A',
October = '9',
November = 'B',
November = 'A',
December = 'C',
December = 'B',
}
}


Line 242: Line 242:
local cat = ''
local cat = ''
-- cats only in update namespace
-- cats only in update namespace
if title.namespace == 100 then
if title.namespace == 3000 then
cat = '[[Category:' .. get_update_category(a.category) .. '|' .. postTitle .. ']]'
cat = '[[Category:' .. get_update_category(a.category) .. '|' .. postTitle .. ']]'
cat = cat .. get_time_categories(day, month, year)
cat = cat .. get_time_categories(day, month, year)
Line 375: Line 375:
-- not update namespace, remove cat
-- not update namespace, remove cat
if title.namespace ~= 100 then
if title.namespace ~= 3000 then
cat = ''
cat = ''
end
end
Line 406: Line 406:
if hc(a.link) then
if hc(a.link) then
if a.link == 'no' then
if a.link == 'no' then
link = "''RuneScape'' website"
link = "''Gemini Station'' website"
else
else
link = '[' .. a.link .. " ''RuneScape'' website]"
link = '[' .. a.link .. " ''Gemini Station'' website]"
end
end
else
else
Line 420: Line 420:
end
end
link = '[https://secure.runescape.com/m=rswiki/en/DevBlog:' .. link .. " ''RuneScape'' website]"
link = '[https://forum.geministation.com/forumdisplay.php?fid=2'.. link .. " ''Gemini Station'' forum]"
end
end
Line 469: Line 469:
-- cats only in update namespace
-- cats only in update namespace
if title.namespace == 100 then
if title.namespace == 3000 then
cat = '[[Category:Developer Blogs|' .. blogtitle .. ']]'
cat = '[[Category:Developer Blogs|' .. blogtitle .. ']]'
cat = cat .. get_time_categories(day, month, year)
cat = cat .. get_time_categories(day, month, year)