Module:Protection banner/doc: Difference between revisions

Content deleted Content added
Usage: deprecate expiry
Line 48:
* '''small''' - if set to "yes", "y", "1", or "true", a padlock icon is generated instead of a full protection banner.
* '''action''' - the protection action. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes). The default value is "edit".
* '''expiry''' - the expiry date of the protection. This can be a date (for temporary protection), or one of the strings "indef", "indefinite", "indefinitely", or "infinite" (for indefinite protection). If this is a date, it must be valid input to the second parameter of the [[mw:Help:Extension:ParserFunctions##time|#time parser function]].
* '''date''' - the protection date. This must be valid input to the second parameter of the [[mw:Help:Extension:ParserFunctions##time|#time parser function]]. This argument has an effect for reasons that use the PROTECTIONDATE parameter in their configuration. As of July 2014, those were the "office" and "reset" reasons.
* '''user''' - the username of the user to generate links for. As of July 2014, this only has an effect when the "usertalk" reason is specified.