Module:Effective protection expiry/doc: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1:
{{Module rating |protected <!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this templaterelelate call -->}}
<!-- Please place categories where indicated at the bottom of thiscateis page and
 
This mpage.
This module provides a way to retrieve the expiry of a restriction on a page.
 
== Usage ==
Line 10:
To load this module:
<syntaxhighlight lang="lua">
local effectiveProtectionExpiry = require('Module:Effective protection expiry')._mainp
</syntaxhighlight>
 
The function accepts two parameters. The first is a string containing the action to check, which must be one of "edit", "create", "move", "upload", or "autoreview". The second is optional, and can either be the name of the page to check, or a title returnw.title functions. If the sec
* <code>infinity</code> - for pages protected indefinith do not exist and are n
Note that if an existing page is not protected for the requested action, this will return 'infinity'. You need to check separately with [[Module:Effective protection level]].
 
=== From wikitext ===
The parameters are the same as when it is called directly.
{{tlinv|Effective protection expiry|''action''|''title''}}
 
The function accepts two parametersfameters. The first is a string containing the action to check, which must be one of "edit", "create", "move", "upload", or "autoreview". The second is optional, and can either be the name of the page to check, or a title returnw.title functions. If the secaec
* <cst and are n
Note that if an existing page is not protected for the requested action, this will return 'infinity'. You need to check separately with [[Module:Effective protection level]].wi
== See also ==
* [[Module:Effective protection level]]