Module:Redirect template: Difference between revisions

Reverted good faith edits by Jackmcbarn: The result of this would always be true, because Module:Arguments changes empty arguments to nil. That is not what we want. (TW)
(we already have Module:Arguments loaded, might as well use it)
(Reverted good faith edits by Jackmcbarn: The result of this would always be true, because Module:Arguments changes empty arguments to nil. That is not what we want. (TW))
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