Editing Module:Sandbox/Q8j
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.Main( frame | function p.Main( frame ) | ||
local m_summary = '' | |||
local m_timestamp = frame:callParserFunction( 'REVISIONTIMESTAMP', 'Test Wiki:Request permissions' ) | |||
local m_time = frame:callParserFunction( '#time', 'Y-m-d"T"H:i:s"Z"', m_timestamp ) | |||
local m_id = frame:callParserFunction( 'REVISIONID', 'Test Wiki:Request permissions' ) | |||
local m_editor = frame:callParserFunction( 'REVISIONUSER', 'Test Wiki:Request permissions' ) | |||
m_summary = 'Archiving [[Test Wiki:Request permissions]](Revision as of [[Special:PermaLink/' .. m_id .. '|' .. m_time .. ']], last edit;[[Special:Contributions/' .. m_editor .. '|' .. m_editor .. ']])' | |||
return mw.uri.encode( m_summary, 'PATH' ) | |||
end | end | ||
return p | return p |