Module:Uses TemplateStyles/sandbox: Difference between revisions

Content deleted Content added
better make sure tsSandboxTitle is not nil before calling .exists
fix
Line 38:
local tsSandboxTitle = mw.title.new(string.format('%s:%s/sandbox/%s', tsTitle.nsText, tsTitle.baseText, tsTitle.subpageText))
if tsSandboxTitle and tsSandboxTitle.exists then
sandboxLink = string.format(' ([[:%s|sandbox]])', tsSandboxtsSandboxTitle.prefixedText)
end
end