Module:CRTModel: Difference between revisions
Tag: Undo |
No edit summary |
||
| Line 197: | Line 197: | ||
addSectionRow(container, 'Documents') | addSectionRow(container, 'Documents') | ||
-- Build the upload link with | -- 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 = | local target = "Document:" .. timestamp .. "-" .. random | ||
local uploadUrl = mw.uri.fullUrl( | local uploadUrl = mw.uri.fullUrl( | ||
"Special:FormEdit", | "Special:FormEdit", | ||