Module:Sandbox/Q8j: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Q8j (talk | contribs)
No edit summary
Q8j (talk | contribs)
No edit summary
Line 3: Line 3:
local m_summary = ''
local m_summary = ''
local m_timestamp = frame:callParserFunction( 'REVISIONTIMESTAMP', 'Test Wiki:Request permissions' )
local m_timestamp = frame:callParserFunction( 'REVISIONTIMESTAMP', 'Test Wiki:Request permissions' )
local m_time = frame:callParserFunction( '#time', 'Y-m-d\TH:i:s\Z', m_timestamp )
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_id = frame:callParserFunction( 'REVISIONID', 'Test Wiki:Request permissions' )
local m_editor = frame:callParserFunction( 'REVISIONUSER', 'Test Wiki:Request permissions' )
local m_editor = frame:callParserFunction( 'REVISIONUSER', 'Test Wiki:Request permissions' )

Revision as of 11:51, 18 July 2022

Documentation for this module may be created at Module:Sandbox/Q8j/doc

local p = {}
	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 m_summary
	end
return p