Module:Protection banner/doc: Difference between revisions

Content deleted Content added
Line 62:
 
Below is a list of some of the common errors that this module can produce, and how to fix them.
 
=== Invalid expiry ===
 
{{error|Error: invalid expiry ("abc")}}
 
This error is produced if you supply an {{para|expiry}} parameter value that is not recognised as a valid date by the #time parser function. If in doubt, you can just use a date in the format "dd Month YYYY", e.g. "{{#time:j F Y|+ 1 week}}". To see a full range of valid inputs, see the [[mw:Help:Extension:ParserFunctions##time|#time documentation]] (only the first parameter, the ''format string'', may be specified).
 
You do not need to specify the expiry except for pending changes, as it is automatically retrieved.
 
=== Invalid protection date ===