Module:Protection banner: Difference between revisions

add notes about when to add error/tracking categories
Enwikipedia>Mr. Stradivarius
(add a function to get the protection data, and start work on a main function)
Enwikipedia>Mr. Stradivarius
(add notes about when to add error/tracking categories)
Line 488:
return mMessageBox.main('mbox', mbargs)
end
 
--[[
When to add "Category:Wikipedia pages with incorrect protection templates":
* If it uses a type which is incompatible with the actual protection level of a page, or
* If an expiry date is set and is in the past
 
When to add "Category:Wikipedia protected pages without expiry":
* No expiry is set, and
* Expiry can be set, and
* The protection type is not "move" (could change this?), and
* The reason doesn't have "indefinitely protected" categories (pp-blp, pp-semi-indef and pp-move-indef have these), and
* The reason is not the generic pp-protected (could change this?)
(This leaves reasons "dispute", "vandalism", "usertalk", and "sock")
]]
 
return p