Changes

Jump to: navigation, search

Module:Documentation

262 bytes added, 22:16, 15 January 2014
move diff link to the env table
return mw.title.new(env.templatePage .. '/' .. message('printSubpage', 'string'))
end
function envFuncs.compareLink()
-- Diff link between the sandbox and the main template using [[Special:ComparePages]].
local templateTitle = env.templateTitle
local sandboxTitle = env.sandboxTitle
local compareUrl = mw.uri.fullUrl(
'Special:ComparePages',
{page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText}
)
compareUrl = tostring(compareUrl)
local compareDisplay = message('compareLinkDisplay', 'string')
return makeUrlLink(compareUrl, compareDisplay)
end
return env
local sandboxEditDisplay = message('sandboxEditLinkDisplay', 'string')
local sandboxEditLink = makeUrlLink(sandboxEditUrl, sandboxEditDisplay)
local compareUrl = mw.uri.fullUrl('Special:ComparePages', {page1 compareLink = templateTitleenv.prefixedText, page2 = sandboxPage}) compareUrl = tostring(compareUrl) local compareDisplay = message('compareLinkDisplay', 'string') local compareLink = makeUrlLink(compareUrl, compareDisplay)
sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink)
else
Anonymous user

Navigation menu