Module:Redirect template: Difference between revisions

Undid revision 631146884 by Petr Matas (talk): This doesn't work at all, and nothing like it can work
(Get the embed parameter from the rcat template (the one which calls {{Redirect template}}))
(Undid revision 631146884 by Petr Matas (talk): This doesn't work at all, and nothing like it can work)
Line 44:
local namespace = mw.title.getCurrentTitle().namespace
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category']))
local parentParent = frame:getParent():getParent()
local embed = parentParent and (parentParent.args.embed == "yes") or false
--- XXX: this is a HORRIBLE HACK. kill it with fire as soon as https://bugzilla.wikimedia.org/show_bug.cgi?id=12974 is fixed
Anonymous user