Content deleted Content added
Tom.Reding (talk | contribs) m ce, from sandbox |
Tom.Reding (talk | contribs) Implement Category:Described in year with manual category, from sandbox |
||
Line 46:
[1] = '', --placeholder for [[Category:Described in year unknown category]]
[2] = '', --placeholder for [[Category:Described in year error]]
[3] = '', --placeholder for [[Category:Described in year with manual category]]
}
local outString = nil
Line 321 ⟶ 322:
break
end
end
--check for manual cats
if currentTitle.namespace == 14 then --category namespace
local currContent = mw.title.makeTitle( 'Category', currCat or '' ):getContent()
local mancat = mw.ustring.match(currContent or '', '%[%[%s*Category')
if mancat then trackingCats[3] = '[[Category:Described in year with manual category]]' end
end
Line 359 ⟶ 367:
end
outString = outString..br..mw.ustring.gsub(table.concat(trackingCats, br), '%[%[', '[[:')
--ws cleanup
outString = string.gsub(outString, br..br, br)
end
end
|