Module:Lockbox and Module:Lockbox/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
... I told you so! ... |
Jackmcbarn (talk | contribs) Avoid an unnecessary call to frame:preprocess |
||
Line 15: | Line 15: | ||
local function make_wikitext_warning(msg) |
local function make_wikitext_warning(msg) |
||
return string.format('<strong class=" |
return string.format('<strong class="warning">Warning: %s.</strong>', msg) |
||
end |
end |
||
Line 44: | Line 44: | ||
-- This creates an extaneous self-transclusion for all pages using the |
-- This creates an extaneous self-transclusion for all pages using the |
||
-- module, but we treat that as a necessary evil. |
-- 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 |
do |
||
mw.title.getCurrentTitle():getContent() -- Generate self-transclusion |
mw.title.getCurrentTitle():getContent() -- Generate self-transclusion |
||
Line 56: | Line 54: | ||
end |
end |
||
end |
end |
||
--]] |
|||
-- Generate transclusions to the templates, and build the output list. |
-- Generate transclusions to the templates, and build the output list. |