Changes

Jump to navigation Jump to search

Module:Protection banner

20 bytes removed, 18:17, 29 June 2014
make makeFullUrl a local helper function
tostring(dateString)
))
end
 
local function makeFullUrl(page, query, display)
return string.format(
'[%s %s]',
tostring(mw.uri.fullUrl(page, query)),
display
)
end
-- Static methods --
 
function Blurb.makeFullUrl(page, query, display)
return string.format(
'[%s %s]',
tostring(mw.uri.fullUrl(page, query)),
display
)
end
function Blurb.formatDate(num)
if self._protectionObj.action == 'move' then
-- We need the move log link.
return self.makeFullUrl(
'Special:Log',
{type = 'move', page = pagename},
else
-- We need the history link.
return self.makeFullUrl(
pagename,
{action = 'history'},
if self._protectionObj.action == 'autoreview' then
-- We need the pending changes log.
return self.makeFullUrl(
'Special:Log',
{type = 'stable', page = pagename},
else
-- We need the protection log.
return self.makeFullUrl(
'Special:Log',
{type = 'protect', page = pagename},
Anonymous user

Navigation menu