Last modified: 2014-09-24 00:01:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19354, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17354 - Magic word returning protection expiry
Magic word returning protection expiry
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page protection (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-04 19:00 UTC by Cenarium
Modified: 2014-09-24 00:01 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
(patched against r63544) (2.79 KB, patch)
2010-03-10 10:42 UTC, Luna Santin
Details
patched against r64623 (1.56 KB, patch)
2010-04-05 19:51 UTC, Luna Santin
Details

Description Cenarium 2009-02-04 19:00:26 UTC
Kind of follow-up to bug:9947, it would be very practical to have variables returning the expiration date for a protection, e.g. {{PROTECTIONEXPIRY:edit}}, and returning indefinite if the protection is indefinite.

Expiries are often forgotten in protection templates, or wrongly applied. This would make the precision of expiry automated.
Comment 1 Luna Santin 2010-03-10 10:42:12 UTC
Created attachment 7187 [details]
(patched against r63544)

Submitting a patch that adds {{#protexpiry:<action>}} to Extension:ParserFunctions

Outputs a timestamp if the page is protected ("infinity" if protection is indef), or an empty string if the page is not currently protected.

As a side note, this is my first patch submission. Be gentle?
Comment 2 Luna Santin 2010-04-05 19:51:07 UTC
Created attachment 7266 [details]
patched against r64623

Submitting a revised patch, per feedback from #mediawiki

Change is now made in CoreParserFunctions.php, so that protectionexpiry will be next to and in the same style as the pre-existing protectionlevel function.
Comment 3 Sumana Harihareswara 2012-05-25 02:45:46 UTC
Luna, I apologize for the wait!  Thanks for the patch.  Are you interested in updating it and in using developer access to directly suggest it into our Git source control system?

https://www.mediawiki.org/wiki/Developer_access

https://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links