Difference between revisions of "Module:Documentation"

Jump to navigation Jump to search
13 bytes removed ,  15:37, 18 August 2020
pass mw.title object to expandTemplate to avoid script errors on mainspace pages like m:Wikimedia LGBT/Barnstar
>Hasley
m (idem rev 3325217)
>Tacsipacsi
(pass mw.title object to expandTemplate to avoid script errors on mainspace pages like m:Wikimedia LGBT/Barnstar)
Line 637: Line 637:
local content = args.content
local content = args.content
if not content and docTitle and docTitle.exists then
if not content and docTitle and docTitle.exists then
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText}
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle}
end
end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
-- The line breaks below are necessary so that "=== Headings ===" at the start and end
Anonymous user

Navigation menu