Module:Protection banner/doc: Difference between revisions

Content deleted Content added
Tag: Reverted
mNo edit summary
 
(11 intermediate revisions by 11 users not shown)
Line 1:
{{High-use| 36098 }}
{{Module rating|protected}}
{{Lua|Module:Protection banner/config|Module:No globals|Module:File link|Module:Effective protection level|Module:Effective protection expiry|Module:Yesno|Module:Arguments|Module:Message box|Module:Submit an edit request}}
This module creates protection banners and padlock icons that are placed at the top of [[Help:Protection|protected pages]].
 
Line 19:
| user = ''username''
| section = ''talk page section name''
| category = ''noyes''
}}
 
Line 69:
{{error|Error: invalid protection date ("abc")}}
 
This error is produced if you supply ana {{para|date}} 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).
 
=== Invalid action ===
 
{{error|Error: invalid action ("abc")}}
 
This error is produced if you specify an invalid protection action. There are only three valid actions: <code>edit</code> (the default, for normal protection), <code>move</code> (for move-protection), and <code>autoreview</code> (for [[WP:PC|pending changes]]). This should only be possible if you are using a template that supports manually specifying the protection action, such as {{tl|pp}}, or if you are using #invoke directly. If this is not the case, please leave a message on [[Module talk:Protection banner]].