Content deleted Content added
don't show warnings on pages transcluding a lockbox, and make page-name-processing logic more robust by using mw.title objects |
... I told you so! ... |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 15:
local function make_wikitext_warning(msg)
return string.format('<strong class="
end
Line 44:
-- This creates an extaneous self-transclusion for all pages using the
-- module, but we treat that as a necessary evil.
--[[ This entire block no longer works following https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/1074581
do
mw.title.getCurrentTitle():getContent() -- Generate self-transclusion
local parent_title = frame:getParent():getTitle()
if
warnings[#warnings + 1] = make_wikitext_warning(string.format(
'the page "%s" is not cascade-protected',
Line 58 ⟶ 56:
end
end
--]]
-- Generate transclusions to the templates, and build the output list.
|