Page MenuHomePhabricator

Add page indicator to show that the page being viewed is protected
Open, LowestPublic

Description

Author: chemicalbit

Description:
I would like that a system message would be introduced in mediawiki.

A system message that will be shown if the page is protected (not in the edit page, in the page itself)

pointing out that that page is protected (pointing out event to the ones who are allowed to edit that page anyway. This is aometime usefull to avoid missunderstandigs).

This can be achived now with a template included in the page, but it's tricky expecially if an automatical protection expiry is set up.

And, off course, similar message for page that are semiprotected, move-protected and so on.

These system messages should be translated in different languages and customizibile as usual.


See Also:


Proposed in Community-Wishlist-Survey-2016. Received 31 support votes, ranked #50 out of 265 proposals. View full proposal with discussion and votes here.

Details

Reference
bz10347

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:50 PM
bzimport added a project: MediaWiki-Interface.
bzimport set Reference to bz10347.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Jun 23 2007, 9:24 PM

robchur wrote:

*** This bug has been marked as a duplicate of bug 6179 ***

robchur wrote:

After reconsideration, I'm reopening this as a clear request to have a notice somewhere on the page view in question. Something discreet but still noticeable, perhaps a little pastel box in the top, where the "subtitle" goes.

brion added a comment.Jul 18 2007, 6:03 PM
  • Bug 10630 has been marked as a duplicate of this bug. ***

Ideas for solutions as collected from users suggestions:

  • some kind of image (eg. lock) shown somewhere
  • different color of header (page title)
  • small line with text such as "this page is (semi-)protected", probably linking to protect log, in place where other additional infos are such as "redirected from foo" or links to parent pages
  • any other...

robchur wrote:

I'm of the view that a simple little message in the subtitle area, perhaps with a little image, if desired, is the best option, as I said in comment #2.

I agree. I just wanted to throw in for consideration what I've been told by users.

Huji added a comment.Aug 25 2007, 10:58 PM

Any progress with this one? I think a new system message would do it. It could normally show a piece of text (in small-sized font), but people may then change it to their desired look (like a lock image, etc).

cannon.danielc wrote:

Went ahead and committed r25151. By default it adds to the subtitle (This page is protected.) and provides two params to the message, $1 for edit restriction and $2 for move restriction, so that y'all can customize it with parserfunctions as you need to. Not sure I really like it's default view, so I'm going to leave this open for a bit to see if there are any suggestions as to how to improve it ....

aaron added a comment.Aug 26 2007, 9:50 AM

Tried to clean this up in r25152. Was making notices too.

fearow00 wrote:

What about wikis with different protection types? On one of my wiki's we had protection for other actions as well. Supporting just edit and move makes it unusuable by customised wikis.

(In reply to comment #10)

What about wikis with different protection types? On one of my wiki's we had
protection for other actions as well. Supporting just edit and move makes it
unusuable by customised wikis.

For that case, it will just say (This page is protected), which is what it did pre-commit.

Not to mention, raw canonical rights were being inputted into to wfMsg(), which is funky anyway. And I don't want this getting to messy.

Getting it to list each restricted 'right' and who can do it would be a bit of a mess. The message would end up in some [x=a,b:y=c] format or worse, and rights for actions/custom actions may not have corresponding UI messages. e.g. 'protect' or 'emailthispage' will show up as 'protect' or 'emailthispage', even in non-English langauges.

I suppose the 'this page is protected' could like to the action=protect URL so the user can see the levels.

brion added a comment.Aug 27 2007, 5:59 PM

I'm worried this is UI clutter at the moment. For a move-protected page this spits out *to every reader* the unnecessary details that:

(This page is protected. Some users (anyone) can still edit it while others (Sysops) can move it.)

It's not a very attractive message, and the information's going to be pretty useless for most people. If you have move permissions, you'll already be able to see that you can't move it, while if you don't you probably don't care.

I'd recommend taking this back out for the time being and thinking a bit more about how this kind of information should be presented, when, and where.

cannon.danielc wrote:

(In reply to comment #13)

I'm worried this is UI clutter at the moment. For a move-protected page this
spits out *to every reader* the unnecessary details that:
(This page is protected. Some users (anyone) can still edit it while others
(Sysops) can move it.)
It's not a very attractive message, and the information's going to be pretty
useless for most people. If you have move permissions, you'll already be able
to see that you can't move it, while if you don't you probably don't care.
I'd recommend taking this back out for the time being and thinking a bit more
about how this kind of information should be presented, when, and where.

I agree entirely. I think a far more subtle message needs to be used. With my initial commit I indicated that it could use a bit more subtlety, and it's now become even more in-your-face :). My suggestions would be either that the message be a) blank, but taking the two params, such that wikis can choose to customize the message as the need, b) a simple and small icon of some kind, displayed in a logical place that won't break local layouts, or c) a different display of the edit tab for users who can edit the article -- something to the effect of "edit (protected)" -- while users who can't edit/move the article will just see the standard "view source" tab. In any case, please don't sync this up on Wikimedia until it's a bit more figured out :)

aaron added a comment.Aug 27 2007, 7:19 PM

Maybe it should just be conveying info about edit rights?

Still, we does use huge ass ugly move-protect templates sometimes ;)

brion added a comment.Aug 27 2007, 9:05 PM

Reverted a bunch of stuff in r25210. I'd recommend fiddling with this in a branch or patch for the moment.

Could we have classes "editprotected", "moveprotected", "editsemiprotected" and "movesemiprotected" added to <body>'s list of classes?

That would allow marking of (semi)protected pages on CSS basis as well.

brion added a comment.Aug 27 2007, 9:39 PM

These categories are fluid; there may be more or fewer available protection levels on any given wiki. There's no hard-and-fast rule as to what "semi-protected" means, for instance; that's what's informally used to refer to a page which has protection set at the autoconfirmed level on Wikimedia wikis, where the available levels are for all, autoconfirmed, and sysop.

How about adding it in more general way then, such as edit-<protectionlevel> and move-<protectionlevel> where protectionlevel would be the keyword such as autoconfirmed, sysop etc.?

aaron added a comment.Sep 27 2007, 7:58 PM

I'd recommend it just say "this page is protected". And 'protected' would be a blue link to &action=protect (which all users can see).

cannon.danielc wrote:

(In reply to comment #20)

I'd recommend it just say "this page is protected". And 'protected' would be a
blue link to &action=protect (which all users can see).

What if we simply it a step further and simply provide an alternative to MediaWiki:Edit and MediaWiki:Move for when the page is edit- and move-protected, respectively. For instance, if the page is semi-protected or full protected, a user or sysop viewing the page would just see "edit (protected)" in place of the normal text on the edit tab, or "move (protected)" on the move tab. Let me tinker a bit ...

cannon.danielc wrote:

Add edit-protected and move-protected messages.

Perhaps something along these lines?

Attached:

cannon.danielc wrote:

Add edit-protected and move-protected messages.

Perhaps something along these lines?

Attached:

aaron added a comment.Sep 27 2007, 8:18 PM

Longer tab names = bad, we already have enough ;)

aaron added a comment.Oct 27 2008, 3:06 PM

Done in r42658

brion added a comment.Oct 27 2008, 6:04 PM

The subtitle is just annoying and disruptive, IMHO. It doesn't seem worth it... I'm reverting in r42664 and marking this bug WONTFIX. If somebody comes up with some good UI models we might reconsider it.

herd wrote:

*** Bug 16649 has been marked as a duplicate of this bug. ***

Given the introduction of [[mw:Help:Page status indicators]], I believe this can now be implemented, deprecating scripts such as these

(In reply to Helder from comment #28)

Given the introduction of [[mw:Help:Page status indicators]], I believe this
can now be implemented, deprecating scripts such as these

Yes, but the concept is that these will be done per-wiki (or perhaps per farm), and not in MediaWiki itself. Consequently should this be tracked here?

Is the way forward then to create a separate extension that does this and enable it on Wikimedia wikis?

He7d3r updated the task description. (Show Details)Apr 9 2015, 2:24 PM
He7d3r added a project: JavaScript.
He7d3r set Security to None.

Is the way forward then to create a separate extension that does this and enable it on Wikimedia wikis?

I suppose this is what this task is about. Then JavaScript would not apply.

TheDJ added a subscriber: TheDJ.Dec 21 2015, 10:39 PM

Is there a way we could implement this by default, and still allow the wiki to override ?
I actually find it a bit of a shame that we don't use indicators unless implemented by a wiki. I mean if you download the software, I expect that to just work, without any interference from a template author..

We could add a switch to render some by default, enabled by default in core and disable on wmf properties perhaps ?

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 21 2015, 10:39 PM

We could. If we use the indicator system from T25796 for this, and use an indicator name that is also valid in <indicator> (I don't think we disallow any :P), and add our indicator with OutputPage::setIndicators() before the ParserOutput is added – then the indicator could naturally be overridden/hidden from wikitext.

Stryn added a subscriber: Stryn.Nov 19 2016, 2:16 PM
This task was proposed in the Community-Wishlist-Survey-2016 and in its current state needs owner. Wikimedia is participating in Google Summer of Code 2017 and Outreachy Round 14. To the subscribers -- would this task or a portion of it be a good fit for either of these programs? If so, would you be willing to help mentor this project? Remember, each outreach project requires a minimum of one primary mentor, and co-mentor.