MediaWiki talk:Protectedpagetext

From Wikipedia, the free encyclopedia

This interface message is documented on its manual page.
The page forms part of the MediaWiki interface, and can only be edited by administrators. To request a change to the page, add {{editprotected}} to this page, followed by a description of your request.

Contents

[edit] Semi-protection

I've updated this to include semi-protection. Thanks! Flcelloguy (A note?) 16:30, 22 December 2005 (UTC)

[edit] Separate?

Would it be possible for the text for protected and s-protected pages to be separated into two messages? As is, it's rather confusing, since if you're not an admin and you're looking at a protected page it doesn't actually tell you you can't edit it. In fact, depending on your interpretation, it could be telling you you can edit it. Chick Bowen 04:19, 1 February 2006 (UTC)

Yes, this should be split into two different messages. joturner 04:44, 25 June 2006 (UTC)
Indeed it should. Haukur 15:15, 26 June 2006 (UTC)

[edit] Bypassing redirect / capitalization

Please bypass a redirect from Wikipedia:protected page to Wikipedia:List of protected pages. Please make capitalization of the first letter of each page name after 'Wikipedia:'. -- ADNghiem501 23:25, 26 June 2006 (UTC)

Also please make the first capital letter of each page name after 'Wikipedia:', shown below:

Note that the first letter of each page name on the main title is usually capitalized. -- ADNghiem501 08:42, 27 June 2006 (UTC)

Done by Haukurth. Make sure to remove the editprotected from this talk page once the request is completed. -- ADNghiem501 08:55, 27 June 2006 (UTC)

[edit] Requested Edit

add name of protecting admin, reason for protection and add an instruction for requesting an edit via the editprotected template —The preceding unsigned comment was added by Myrtone86 (talkcontribs) .

MediaWiki doesn't work like that. Anyone can check the logs to find out who protected the page and why. Naconkantari 01:30, 8 July 2006 (UTC)
How about including a link to the logs for the page? Myrtone ()

[edit] Problem with mentioning time period

The text shouldn't mention the time period necessary to wait before editing this article. The purpose of the semi-protect is to prevent new, rather non-established users from editing these pages, and it only so happens that 4 days is the time chosen to imperfectly determine that. The person who is advised by such a blatant message is the person who only creates a Wikipedia account to vandalize or push some novelty on a particular article. Instead, the person who will be a productive contributor who happens to be interested in editing that article will rightly become a registered user and edit various articles. They will also easily click on the message that refers to the semi-protection policy and informs them of the precise time when they could edit that article. —Centrxtalk • 01:37, 9 September 2006 (UTC)

It's perfectly possible that a good honest new productive editor will want to legitimately edit a semi-protected page during their first four days. They should know the time limit up front. It's similar to new users legitimately wanting to move pages - see [1] for an example of that. Haukur 08:57, 9 September 2006 (UTC)
That information is in the first sentence of the semi-protection policy, which any editor so inclined can read. The issue is whether the text should be the first and obvious thing every random person sees when they view the source of the article, not whether a new editor is inconvenienced to click a link and read a single sentence. —Centrxtalk • 21:46, 15 September 2006 (UTC)

[edit] This message links to a "Talk talk:Page name" page for protected talk pages

As in the title of this section. If a page in a talk namespace (talk, category talk, portal talk, etc) is (semi-)protected, the "Discuss this page" link points to a non-existent "Talk talk:" namespace page. Please change "[[{{NAMESPACE}} talk:{{PAGENAMEE}}|Discuss this page]]" to "[[{{TALKPAGENAME}}|Discuss this page]]", or just use ParserFunctions to hide the message altogether if the protected page is in one of the talk namespaces. Flyingtoaster1337 04:56, 29 January 2007 (UTC)

Done and tested. Not sure why it was set up that way, in the first place, couldn't find mention of it. Luna Santin 05:30, 29 January 2007 (UTC)
I think it's because MediaWiki didn't support the TALKPAGENAME thing until recently (version 1.7). Flyingtoaster1337 05:47, 29 January 2007 (UTC)
That would be a good answer, come to think of it. ;) I suppose we could work out some parser functions to hide/change the text when viewed from a talk page, but that seems a bit much (I could be wrong, of course). Luna Santin 07:21, 29 January 2007 (UTC)
We could use {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|*You may [[Wikipedia:Requests for page protection{{!}}request unprotection]]. *You may [[Special:Userlogin{{!}}sign in]] if you have not done so already.| *[[{{TALKPAGENAME}}{{!}}Discuss this page]] with others; on that page, you can request an edit by adding <tt>{{editprotected}}</tt> with a reason for the request. *You may [[Wikipedia:Requests for page protection{{!}}request unprotection]]. *You may [[Special:Userlogin{{!}}sign in]] if you have not done so already.}} ~ ΜΛGиυs ΛΠιмυМ ≈ √∞ 01:19, 31 May 2007 (UTC)

[edit] Mention /doc page if it exists

{{editprotected}} Could this message be changed to mention that the documentation page can be edited if there is a /doc subpage? It would help to cut down on spurious editprotected requests. ais523 13:40, 2 July 2007 (UTC)

Hmm... I'm not sure how parser functions work out on MediaWiki pages, but couldn't we use clever combinations if #ifeq and NAMESPACE to only display this for protected templates? Or, perhaps better, use #ifexist to check for the presence of a /doc page to begin with? Just a thought. – Luna Santin (talk) 23:24, 3 July 2007 (UTC)
{{#ifeq:{{NAMESPACE}}|Template|{{#ifexist:{{FULLPAGENAME}}/doc|*Please note that [[{{FULLPAGENAME}}/doc{{!}}the documentation]] can still be edited|}}|}} That should suffice. « ANIMUM » 00:44, 4 July 2007 (UTC)
Edited. The {{!}} trick doesn't work. I rephrased the message to fix that. — Carl (CBM · talk) 17:49, 5 July 2007 (UTC)

[edit] Please add a link to the protection log

{{editprotected}} Please place a link to the protection log of the page, to allow new users to see why the page is protected. Od Mishehu 07:24, 20 July 2007 (UTC)

Done. – Luna Santin (talk) 08:08, 20 July 2007 (UTC)

[edit] Parameter

{{sudo}}

The protection level of a page is now available to this message via a parameter (bug 11211), the parameter, $1, taking one of the values "autoconfirmed" for semi-protection or "protect" for full protection. It is thus now possible to re-word this message to remove the "either this is the case, or this is", by effectively turning it into two separate messages, which should be less confusing for inexperienced users.

I cannot do this myself, but I can suggest a possible implementation.

As MediaWiki page parameters cannot be passed directly to parser functions, it will be necessary to create and protect a template containing the messages and transclude that template in this message. Such a workaround can be seen in use at MediaWiki:Longpagewarning, which transcludes {{MediaWiki longpage message}} and {{MediaWiki longpage talk message}}; one template will be sufficient here. The template will, like {{MediaWiki longpage message}}, display an error message when viewed directly, as the $1 parameter is only given a value on certain pages in the MediaWiki namespace.

Assuming that this template is named Template:MediaWiki protectedpage message, the contents of MediaWiki:Protectedpagewarning can simply be reduced to:

{{MediaWiki protectedpage message}}

The template itself will need to conditionally display one of two messages based on the value of the $1 parameter, via an {{#ifeq:}} expression. One possibility is:

{{#ifeq:$1|protect|<div id="mw-protectedpagetext" style="background: white; border: solid 1px #AAAAAA; margin-bottom: 0.5em; padding: 4px">
<strong style="font-size:130%">This page is currently protected, and can only be edited by [[Wikipedia:Administrators|administrators]].</strong>
* Some [[Wikipedia:Templates|templates]] and site interface pages are permanently [[Wikipedia:Protection policy#Full protection|protected]] due to visibility. Occasionally, articles are temporarily protected because of [[Wikipedia:Edit war|editing disputes]].
{{#ifeq:{{NAMESPACE}}|Template|{{#ifexist:{{FULLPAGENAME}}/doc|*This template has a [[Wikipedia:Template documentation|documentation]] page — [[{{FULLPAGENAME}}/doc]] — which may be freely edited.}}}}
* The reason for protection can be found in the <span class="plainlinks">[{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log]</span>.
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||* You can [[{{TALKPAGENAME}}|discuss this page]] with others. If you have noticed an error or have a suggestion for a simple change, start a <span class="plainlinks">[{{fullurl:{{TALKPAGENAMEE}}|action=edit&section=new}} new section]</span> and insert the text <code>{{editprotected}}</code> followed by your request. An administrator may then make the change on your behalf.}}
* You may [[Wikipedia:Requests for page protection|request unprotection]] of the page.
</div>|<div id="mw-semiprotectedpagetext" style="background: white; border: solid 1px #AAAAAA; margin-bottom: 0.5em; padding: 4px">
<strong style="font-size:130%">This page is currently semi-protected, and can only be edited by established [[Wikipedia:Why create an account?|registered users]].</strong>
* [[Wikipedia:Protection policy#Semi-protection|Semi-protection]] is sometimes necessary to prevent [[Wikipedia:Vandalism|vandalism]] to popular pages. Most articles can be edited by anyone.
* The reason for protection can be found in the <span class="plainlinks">[{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log]</span>.
* If you have a user account, [[Special:Userlogin|sign in]] first. If you do not yet have an account, you may <span class="plainlinks">[{{fullurl:Special:Userlogin|type=signup}} create one]</span>; after a while, you will be able to edit semi-protected pages.
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||* You can [[{{TALKPAGENAME}}|discuss this page]] with others. You are welcome to suggest improvements on the discussion page, which may then be made by established users.}}
*You may [[Wikipedia:Requests for page protection|request unprotection]] of the page.
</div>}}

which will display one of the following messages:

This page is currently protected, and can only be edited by administrators.

  • The reason for protection can be found in the protection log.
  • You can discuss this page with others. If you have noticed an error or have a suggestion for a simple change, start a new section and insert the text {{editprotected}} followed by your suggestion. An administrator may then make the change on your behalf.
  • You may request unprotection of the page.

This page is currently semi-protected, and can only be edited by established registered users.

  • Semi-protection is sometimes necessary to prevent vandalism to popular pages. Most articles can be edited by anyone.
  • The reason for protection can be found in the protection log.
  • If you have a user account, sign in first. If you do not yet have an account, you may create one; after a while, you will be able to edit semi-protected pages.
  • You can discuss this page with others. You are welcome to suggest improvements on the discussion page, which may then be made by established users.
  • You may request unprotection of the page.

Note that I have omitted the conditionals around the "You can discuss this page..." lines in the display examples, so that they are visible on this page. When viewed as part of the message, the line will appear only if the protected page is not a discussion page itself; the bolded text will then be a link to the page's discussion page.

I have taken the opportunity to re-word some of the messages to be more informative.

It goes without saying that changes to interface messages should be checked carefully. Ensure in particular that Template:MediaWiki protectedpage message is protected before changing the contents of MediaWiki:Protectedpagetext.

Thanks – 86.142.251.151 21:19, 12 September 2007 (UTC)

Y Done - thank you for the great update. Nihiltres(t.l) 01:04, 13 September 2007 (UTC)

[edit] What?

Why does it default to saying (When viewed as the MW: namespace) that it's semiprotected? Isn't the MW: interface always fully protected? 68.39.174.238 23:56, 14 September 2007 (UTC)

Yes, it defaults to the semiprotected display here. That is because the ParserFunction it is fed defaults its output to the semi-protect display if the value given is non-standard. On the message page itself, the value given is non-standard: the syntax feeds the default for the parameter, "$1", similar to the way some templates might output something containing {{{1}}} when fed no parameters. It is probably a good idea that on Wikipedia, the syntax defaults to semi-protect, because more pages which would be edited by newbies (articles) are semi-protected than protected - established users would generally spot any incongruities, such as being given the semi-protect message, and report a bug. Nihiltres(t.l) 18:40, 15 September 2007 (UTC)
Having said that, it would be possible to use {{#ifeq:{{NAMESPACE}}|MediaWiki| ... }} to give a MediaWiki namespace-specific message. Except there already is a MediaWiki namespace-specific message (the "This page contains interface text for the software, and has been locked to prevent abuse" one), so it would be a little redundant – 81.153.158.137 20:29, 16 September 2007 (UTC)
I'll take a wild stab at this, but all mediawiki pages would have to be manually protected for this template to output correctly, no? —[[Animum | talk]] 20:52, 16 September 2007 (UTC)
MediaWiki pages can't be protected. Observe the lack of a "protect" tab. It could be made to work correctly by checking for the value "autoconfirmed" and displaying the semi-protected message if so, rather than looking for "protect" and displaying the fully protected message if so. Alternatively, {{NAMESPACE}} could be employed – 81.153.158.137 20:54, 16 September 2007 (UTC)
Just to clarify that, changing the text of Template:MediaWiki protectedpage message to:
{{#ifeq:$1|autoconfirmed|<div id="mw-semiprotectedpagetext" style="background: white; border: solid 1px #AAAAAA; margin-bottom: 0.5em; padding: 4px">
<strong style="font-size:130%">This page is currently semi-protected, and can only be edited by established [[Wikipedia:Why create an account?|registered users]].</strong>
* [[Wikipedia:Protection policy#Semi-protection|Semi-protection]] is sometimes necessary to prevent [[Wikipedia:Vandalism|vandalism]] to popular pages. Most articles can be edited by anyone.
* The reason for protection can be found in the <span class="plainlinks">[{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log]</span>.
* If you have a user account, [[Special:Userlogin|sign in]] first. If you do not yet have an account, you may <span class="plainlinks">[{{fullurl:Special:Userlogin|type=signup}} create one]</span>; after a while, you will be able to edit semi-protected pages.
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||* You can [[{{TALKPAGENAME}}|discuss this page]] with others. You are welcome to suggest improvements on the discussion page, which may then be made by established users.}}
*You may [[Wikipedia:Requests for page protection|request unprotection]] of the page.
</div>|<div id="mw-protectedpagetext" style="background: white; border: solid 1px #AAAAAA; margin-bottom: 0.5em; padding: 4px">
<strong style="font-size:130%">This page is currently protected, and can only be edited by [[Wikipedia:Administrators|administrators]].</strong>
* Some [[Wikipedia:Templates|templates]] and site interface pages are permanently [[Wikipedia:Protection policy#Full protection|protected]] due to visibility. Occasionally, articles are temporarily protected because of [[Wikipedia:Edit war|editing disputes]].
{{#ifeq:{{NAMESPACE}}|Template|{{#ifexist:{{FULLPAGENAME}}/doc|*This template has a [[Wikipedia:Template documentation|documentation]] page — [[{{FULLPAGENAME}}/doc]] — which may be freely edited.}}}}
* The reason for protection can be found in the <span class="plainlinks">[{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log]</span>.
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||* You can [[{{TALKPAGENAME}}|discuss this page]] with others. If you have noticed an error or have a suggestion for a simple change, start a <span class="plainlinks">[{{fullurl:{{TALKPAGENAMEE}}|action=edit&section=new}} new section]</span> and insert the text <code>{{editprotected}}</code> followed by your request. An administrator may then make the change on your behalf.}}
* You may [[Wikipedia:Requests for page protection|request unprotection]] of the page.
</div>}}
should fix the problem. You might want to double-check that first, though – 81.153.158.137 20:56, 16 September 2007 (UTC)

[edit] conditional broken

The use of "#if:$1" in this template to display a different message at each protection level is broken, possibly due to the new parser. I've changed this message to a "unified" version until this is fixed (it was saying "semi-protected" on fully protected pages). —Random832 19:38, 26 January 2008 (UTC)

[edit] editprotected -> protect

{{editprotected}} With rev:31462, editprotected permission was changed back to protect. Now the message says that all pages are semi-protected even if they are fully protected. Thanks in advance. IAlex (talk) 08:04, 3 March 2008 (UTC)

Y Done. Jon513 (talk) 13:14, 3 March 2008 (UTC)

[edit] No {editprotected} for semi-protected

{{editprotected}}

Please undo this edit since it contradicts with {{editprotected}} description and Category:Wikipedia protected edit requests description. —AlexSm 13:52, 7 March 2008 (UTC)

Y Done What an ironic use of an {{editprotected}} tag :D Happymelon 15:27, 7 March 2008 (UTC)
Well, what template should people use to request an edit on a semiprotected page, then? It seems dumb to restrict the use of {{editprotected}} to fully protected pages. —Angr If you've written a quality article... 15:49, 7 March 2008 (UTC)
I think the idea is that anon/new users can wait for a normal user to come along and make their edit. In practice this just doesn't work, since requests from anonymous users are often entirely ignored on talk pages. Someone recently made {{unanswered}}, a template that seems to be intended for semi-protected pages, though it looks like only one guy uses it and nobody pays any attention to it. I personally would support the idea of {{editprotected}} being used on any protected page. --- RockMFR 15:32, 27 May 2008 (UTC)
I am not sure, however, why we should give more work to administrators, work which any auto-confirmed editor could do. I propose taking up {{unanswered}} more seriously, and having editors on the way to adminship ("who should do some admin-like work"...) fulfil the requests. Waltham, The Duke of 17:37, 27 May 2008 (UTC)

[edit] Spaced em dashes

{{editprotected}}

Yes, the requested change (to remove the spaces flanking two em dashes) seems extremely trivial, but I try to be as extremely careful with style, and em dashes are much better-looking when unspaced, in addition to their better wrapping in line breaks, which is why the Manual of Style recommends them. And to make it easy for you...

The part where the em dashes in question are located is this: This template has a [[Wikipedia:Template documentation|documentation]] page — [[{{FULLPAGENAME}}/doc]] — which may be freely edited.

The removal of four spaces is uncontroversial enough not to warrant any discussion, am I right? Regards, Waltham, The Duke of 08:11, 27 May 2008 (UTC)

Not if some people would rather replace the spaced em dashes with spaced en dashes, which are also allowed in the MOS and which many people consider more attractive than unspaced em dashes. :-) (BTW, I'm still waiting for an answer to my question in the previous thread, which is why this page is on my talk pagewatchlist at all.) —Angr 14:24, 27 May 2008 (UTC)
Perhaps you mean "watchlist"? :-)
Anyway, you are right, and in this particular case spaced en dashes might actually look better, considering that there's just one link between the pair. But for Unicorn's sake, please no spaced em dashes. Waltham, The Duke of 17:41, 27 May 2008 (UTC)
Talk page, watchlist, WP:AGF, one o' those damn Wikipedia jargon terms... —Angr 17:49, 27 May 2008 (UTC)
Y Done, replaced with spaced en dashes. --Random832 (contribs) 17:45, 27 May 2008 (UTC)
Thank you, random sysop. My conscience can rest at last. Waltham, The Duke of 17:52, 27 May 2008 (UTC)