Module:Redirect template: Difference between revisions

we already have Module:Arguments loaded, might as well use it
(Grandparent parameters cannot be obtained, so get the passed parameter)
(we already have Module:Arguments loaded, might as well use it)
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 embedPossible = (frame.args.embed == nil or frame:getParent().args.embed or 'yes') == 'yes'
 
--- 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