Content deleted Content added
always show warnings at the top, and use a more descriptive name than "output", seeing as it's not technically the output any more |
Jackmcbarn (talk | contribs) Avoid an unnecessary call to frame:preprocess |
||
(One intermediate revision by one other user not shown) | |||
Line 44:
-- This creates an extaneous self-transclusion for all pages using the
-- module, but we treat that as a necessary evil.
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 87 ⟶ 83:
warnings[#warnings + 1] = make_wikitext_warning(string.format(
'invalid title "%s" in argument #%d',
i
))
|