Revision as of 22:16, 21 November 2009 editDavidgothberg (talk | contribs)Extended confirmed users16,964 edits →CSS id needed: I have added the id to the message. I used the longer version that Izno suggested.← Previous edit | Revision as of 23:22, 2 July 2010 edit undoDinoguy1000 (talk | contribs)Administrators19,132 edits (Lead): +relatedNext edit → | ||
Line 1: | Line 1: | ||
{{Interface explanation|] contains the contents of the orange "new messages" div.}} | {{Interface explanation|] contains the contents of the orange "new messages" div.}} | ||
{{Related interface messages|Newmessageslink|Newmessagesdifflink}} | |||
== Revert == | == Revert == |
Revision as of 23:22, 2 July 2010
MediaWiki:Youhavenewmessages contains the contents of the orange "new messages" div. This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Misplaced Pages:Village pump (technical) to bring more people to the discussion. |
Key MediaWiki interface messages | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Edit window instructions | |||||||||||||||||||||
Search-related | |||||||||||||||||||||
Article-related | |||||||||||||||||||||
Edit notices | |||||||||||||||||||||
"Can't edit" notices | |||||||||||||||||||||
Admin action messages | |||||||||||||||||||||
Email-related | |||||||||||||||||||||
Preferences | |||||||||||||||||||||
Community notification |
| ||||||||||||||||||||
| |||||||||||||||||||||
For messages relating to Special: pages, see the list at mw:Manual:Interface/Special pages summary |
Template:Related interface messages
Revert
{{editprotected}}
Can someone please revert this page to the version that says 'You have new messages (last change)'? The current version ('Your user talk page has been edited') should at least have been discussed here first, and it would be very confusing for new users ('so what?' is the obvious response). Even a milder version was reverted earlier. --ais523 18:58, 26 January 2007 (UTC)
- If this change is accepted, MediaWiki talk:Newmessageslink will need to be reverted too. --ais523 18:59, 26 January 2007 (UTC)
- I am strongly opposed to this unilateral change. – Chacor 19:04, 26 January 2007 (UTC)
- Reason? J Di 19:13, 26 January 2007 (UTC)
- That it was unilateral? We shouldn't be making changes to well-established things without discussion. – Chacor 19:17, 26 January 2007 (UTC)
- Unilateral changes are made without discussion all the time. I'll start a discussion on one of the village pumps if discussion is what the people want. J Di 19:21, 26 January 2007 (UTC)
- There wasn't any consensus for a change, so yes, please start a discussion. – Chacor 19:23, 26 January 2007 (UTC)
- Unilateral changes are made without discussion all the time. I'll start a discussion on one of the village pumps if discussion is what the people want. J Di 19:21, 26 January 2007 (UTC)
- That it was unilateral? We shouldn't be making changes to well-established things without discussion. – Chacor 19:17, 26 January 2007 (UTC)
- Reason? J Di 19:13, 26 January 2007 (UTC)
- I am strongly opposed to this unilateral change. – Chacor 19:04, 26 January 2007 (UTC)
- But messages shouldn't be making assumptions; not all edits to user talk pages are new messages. J Di 19:13, 26 January 2007 (UTC)
CSS id needed
{{editprotected}} I would like to add a CSS id to this message. We currently have some user scripts that do things with this message, but those scripts only work in some skins since different skins put different tags around this message. And none of the skins add an id, just a class, so it is very inefficient to find the item from javascript. For that reason we usually see to that all MediaWiki messages have a CSS id. I want to change this message to this:
<span id="mw-newmessages">You have $1 ($2).</span>
--David Göthberg (talk) 06:14, 20 November 2009 (UTC)
- I went ahead and tagged this with {{editprotected}} even though we're both admins, since this is a very low-traffic page. Needless to say, I support this change. 「ダイノガイ千?!」 06:19, 20 November 2009 (UTC)
- I removed it. {{editprotected}} is not meant to draw attention, as the tag says, it should only be used when there is consensus. I'd suggest leaving a note at the relevant village pump if you want opinions on the proposed change. - Rjd0060 (talk) 14:33, 20 November 2009 (UTC)
- I think I'd prefer to see the id "youhavenewmessages" simply for consistency with the name of the mediawiki page, unless this is the only instance where newmessages could possibly be used. --Izno (talk) 04:10, 21 November 2009 (UTC)
- Izno: I thought it was kind of long. But you are right, better to avoid any risk of name collisions. And we usually do use the full name of the message in the id. Among other things it gives a good hint about which MediaWiki message inserts the code, when one views the source of the rendered page.
- Since this has been announced on the Village pump for about day now, I have now changed this message to this:
<span id="mw-youhavenewmessages">You have $1 ($2).</span>
- I have just checked in all the skins, it works fine. Now I'll have to update the scripts that modify the newmessages bar. And I'll inform the users who have their own hardcoded versions in their personal .js pages. Thankfully they are not that many. And their code will now be simpler and more efficient.
- --David Göthberg (talk) 22:16, 21 November 2009 (UTC)