Module:Handbook: Difference between revisions

Kuhlau (talk | contribs)
No edit summary
Kuhlau (talk | contribs)
No edit summary
Line 65: Line 65:
-- add categories if correct page
-- add categories if correct page
local subpage = args.title or title.subpageText
local subpage = args.title or title.subpageText
if (not args['table'] and title.baseText == 'Handbook Entry' and (subpage ~= nil and not lib.inArray({ 'Planar Travel', 'Nexus Battle' }, subpage))) then
if (not args['table'] and title.baseText == 'Handbook Entry' and (subpage ~= nil and not lib.inArray({ 'Planar Travel', 'Nexus Battle', 'Uncategorized' }, subpage))) then
local cat = mw.html.create()
local cat = mw.html.create()
cat:wikitext('[[Category:Handbook Entries|', subpage, ']]')
cat:wikitext('[[Category:Handbook Entries|', subpage, ']]')