Module:CRTModel: Difference between revisions

Undo revision 563 by Arclight (talk)
Tag: Undo
No edit summary
Line 197: Line 197:
addSectionRow(container, 'Documents')
addSectionRow(container, 'Documents')
-- Build the upload link with UUID-like unique identifier
-- Build the upload link with pseudorandom unique identifier
local timestamp = os.time()
local timestamp = os.time()
local random = math.random(1000, 9999)
local random = math.random(1000, 9999)
local target = pageName .. " - document " .. timestamp .. "-" .. random
local target = "Document:" .. timestamp .. "-" .. random
local uploadUrl = mw.uri.fullUrl(
local uploadUrl = mw.uri.fullUrl(
"Special:FormEdit",
"Special:FormEdit",
MediaWiki Appliance - Powered by TurnKey Linux