Module:Copied: Difference between revisions

Content deleted Content added
test
test
Line 13:
local text = "Text and/or other creative content from "
if not (from_oldid == "") then
text = text .. "[" .. tostring(mw.uri.fullUrl(from, {diff=diff, oldid=from_oldid} )) .. " this version] of "
end
text = text .. "[[" .. from .."]]"
Line 21:
text = text .. " with [" .. diff .. "|this edit]"
elseif not (to_oldid == "") then
text = text .. "with [{{fullurl:" .. to tostring(mw.uri. "|fullUrl(to,{diff=" .. to_diff, .. "&oldid="to_oldid} .. to_oldid)) .. "}}|this edit]"
end
if not (date == "") then
Line 30:
end
text = text .. ". The former page's "
text = text .. "[{{fullurl:" .. tostring(mw.uri.fullUrl(from,{action=history} )) .. "|action=history}} history] "
text = text .. "now serves to [[WP:Copying within Wikipedia|provide attribution]] for that content in the latter page, and it must not be deleted so long as the latter page exists."
return text