Module:CitizensLockdown

--| Module: CitizensLockdown (v0.0.0) --by "The JoTS"

-- A citizen's "lockdown" (see: Citizen's arrest), -- if a specified number of trusted editors signal to lockdown on their userpage -- then the wiki would automatically be placed into lockdown.

--[=[ DESIGN ]=]-- -- MUST: Block editing for all pages EXCEPT user pages, --    as to allow the "canary in the coal mine" editors to withdraw the lockdown. --    ALTERNATIVE: Only lock out non-autoconfirmed users, trusted editors should already be AC'd. -- VERIFY NEED: Use mw.site.stats (see scribunto docs) to ensure wiki qualifies for use, --    or in blatant terms– is a large wiki with a lot of activity. (#admins, #users, #views, etc.) -- VERIFY INTEGRITY: Uses title object's "protectionLevels" property to check if module is protected. -- TRIGGER FORMAT: -- LITMUS: Have a "litmus" function that is used on Community Messages & RC --    to state that the wiki is on lockdown. Indicates to admins that a lockdown occurred. --

-- For use in MediaWiki:Titleblacklist -- A prototype indicated that this concept can work.