Last modified: 2010-07-01 13:30:42 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 T26004, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24004 - New magic word like PROTECTIONLEVEL to give flag restrictions information
New magic word like PROTECTIONLEVEL to give flag restrictions information
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-16 21:00 UTC by Nihiltres
Modified: 2010-07-01 13:30 UTC (History)
2 users (show)

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


Attachments

Description Nihiltres 2010-06-16 21:00:33 UTC
It would be good to have a magic word that was the equivalent of, or part of (think {{PROTECTIONLEVEL:flaggedrevs}} or something), the {{PROTECTIONLEVEL:foobar}} magic word that is used for protection. This is particularly the case as the Pending Changes implementation on the English Wikipedia uses the protection interface for changing the settings. There is already a use-case: existing code in the {{pp-meta}} template on the English Wikipedia uses {{PROTECTIONLEVEL:edit}} and {{PROTECTIONLEVEL:move}} code to determine whether the placement of a protection template on a page is appropriate. It's not super-high priority, but this is a relatively simple feature that is demonstrably useful.

Ideally, such a magic word would have similar output to the protectionlevel one: returning nothing if unprotected, and otherwise the minimum level of permissions required to edit it normally. So, for example, the "normal" level of Pending Changes would probably output "autoconfirmed" and the "Level II" setting "reviewer", but I might be incorrectly interpreting the semantics.
Comment 1 Rich Farmbrough 2010-06-29 00:14:25 UTC
Second use-case is at MediaWiki:Edittools, we currently tell people their changes will be immediately visible, which is not always the case.
Comment 2 Chad H. 2010-07-01 13:30:42 UTC
Done in r68830.

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


Navigation
Links