Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation: Difference between revisions

Content added Content deleted
(sandbox notice - separate test cases blurb with a line break rather than a space)
(fix revision id code)
Line 308: Line 308:
local text = ''
local text = ''
local frame = mw.getCurrentFrame()
local frame = mw.getCurrentFrame()
local isPreviewing = frame:callParserFunction('REVISIONID') == '' -- True if the page is being previewed.
local isPreviewing = frame:preprocess('{{REVISIONID}}') == '' -- True if the page is being previewed.
local templateLink = makeWikilink(templateTitle.prefixedText)
local templateLink = makeWikilink(templateTitle.prefixedText)
if isPreviewing then
if isPreviewing then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.