Module:Redirect template: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Grandparent parameters cannot be obtained, so get the passed parameter) |
(we already have Module:Arguments loaded, might as well use it) |
||
Line 44: | Line 44: | ||
local namespace = mw.title.getCurrentTitle().namespace |
local namespace = mw.title.getCurrentTitle().namespace |
||
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category'])) |
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category'])) |
||
local embedPossible = |
local embedPossible = args.embed == nil or args.embed == '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 |
--- XXX: this is a HORRIBLE HACK. kill it with fire as soon as https://bugzilla.wikimedia.org/show_bug.cgi?id=12974 is fixed |