[go: nahoru, domu]

Jump to content

Template talk:Editnotice: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Amalthea (talk | contribs)
Line 74: Line 74:
[[File:Editnotice Showing Double.png]]<br />
[[File:Editnotice Showing Double.png]]<br />
—'''<span style="font-family:{{#if: monospace |monospace|sans-serif}};font-size:{{#if: |{{{size}}}|100%}};color:{{#if: |{{{color}}}|black}};background-color:{{#if: #555 |#555|transparent}};{{#if: |{{{css}}}|}}">{{#if: [[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub> |[[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub>|{{{text}}}}}</span>''' 04:31, 12 March 2012 (UTC)
—'''<span style="font-family:{{#if: monospace |monospace|sans-serif}};font-size:{{#if: |{{{size}}}|100%}};color:{{#if: |{{{color}}}|black}};background-color:{{#if: #555 |#555|transparent}};{{#if: |{{{css}}}|}}">{{#if: [[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub> |[[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub>|{{{text}}}}}</span>''' 04:31, 12 March 2012 (UTC)

: That's not actually an edit notice.<br>FWIW, I know there used to be a problem with wikEd that used to display some notices twice, do you happen to have that enabled? Does it also happen if you log out?<br>[[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 08:36, 12 March 2012 (UTC)

Revision as of 08:36, 12 March 2012

Why is this standard?

It's very annoying to me to show up at a talk page and see a redlink in the corner pushing the bar down. I'd love to know why this was made standard on talk pages. It's a useful template but forcing it up there is not going to make anyone's experience better. ResMar 01:29, 9 January 2010 (UTC)[reply]

Hi ResMar. You have come to almost the right place. The red "Page notice" link you see on user talk pages is added by the editnotice system, not by this template. So I have copied your message to Wikipedia talk:Editnotice#Why is this standard? and responded there.
--David Göthberg (talk) 06:45, 9 January 2010 (UTC)[reply]

ID

If |id= is not specified, then the editnotice fails validation because it creates a blank id. This needs to be made optional. I have to run away for a bit, but will look at it if no one else gets to it. ---— Gadget850 (Ed) talk 17:19, 17 July 2010 (UTC)[reply]

The problem is actually in {{fmbox}}, so I have proposed a fix there. ---— Gadget850 (Ed) talk 22:04, 17 July 2010 (UTC)[reply]
Done -— Gadget850 (Ed) talk 14:16, 26 July 2010 (UTC)[reply]

Expiry date

I suspect that most edit notices eventually become unneeded or out of date. I'm wondering whether adding an expiry parameter might be a good idea, so that the notice won't appear after a certain date. Even if the exact expiry date is not known, making it last for a year might be better than making it last forever. The expiry date could always be extended if the notice is still needed. I'm concerned that we may have a lot of irrelevant edit notices out there, which will take a lot of time sorting through some day. — Martin (MSGJ · talk) 16:11, 15 October 2010 (UTC)[reply]

Good idea. Amalthea 17:29, 15 October 2010 (UTC)[reply]
As long as there is some warning such as a notice on the article talk page and/or creator talk before expiration and a method to renew the editnotice. ---— Gadget850 (Ed) talk 17:59, 15 October 2010 (UTC)[reply]
An automatic reminder on the editnotice itself could certainly be arranged. I'm not sure any further warning system could be achieved without a bot. — Martin (MSGJ · talk) 17:08, 25 January 2011 (UTC)[reply]
Some proposed code is on Template:Editnotice/sandbox. I've been using Template:Editnotices/Page/1982 Lebanon War and 1982 Lebanon War to test it. Any checks or comments would be appreciated. — Martin (MSGJ · talk) 15:34, 26 January 2011 (UTC)[reply]

I've added this code. Please let me know of any problems. I will update the documentation shortly. — Martin (MSGJ · talk) 07:49, 28 January 2011 (UTC)[reply]

The edit notice at WP:Help desk is not displaying properly - the text beginining "This page is only for questions..." is formatted wrongly. I'm pretty sure it was OK yesterday, so is this a side-effect of the edit to {{Editnotice}}? -- John of Reading (talk) 09:23, 28 January 2011 (UTC)[reply]
Apologies, a extra space was causing this I believe. — Martin (MSGJ · talk) 10:39, 28 January 2011 (UTC)[reply]
I agree. I've restored the code and removed the space, looks good now. Cheers, Amalthea 11:40, 28 January 2011 (UTC)[reply]

Slight bug: when editing an editnotice the /notice of Template:Editnotices/Group/Template:Editnotices is also displayed. I'll have to improve the check to ensure that it's only displayed on the page of the actual editnotice (not any editnotice). — Martin (MSGJ · talk) 16:17, 28 January 2011 (UTC)[reply]

I think this can be remedied, by not actually using Template:Editnotice on Template:Editnotices/Group/Template:Editnotices. 117Avenue (talk) 00:00, 1 February 2011 (UTC)[reply]
Do you want the editnotice to disappear after the expiry date? If so, you'll need to update it with my edit to the sandbox, which closes the #ifexpr. Also, shouldn't it go into a category where admins are alerted, and either delete it or change the expiry? 117Avenue (talk) 01:11, 29 January 2011 (UTC)[reply]
Changing categorization via parser function doesn't work, I'm afraid, you always need a (null) edit or purge for that. Amalthea 09:41, 29 January 2011 (UTC)[reply]
Then what is the purpose of it expiring if there is no way of seeing the ones that have? Pages are automatically purged every week. 117Avenue (talk) 20:44, 29 January 2011 (UTC)[reply]
I think the current code is correct actually. It should always display on the template itself, but not on the article when it has expired, obviously. And in fact the >1 is not required if you are only using ifexpr to compare between zero and non-zero - try it! — Martin (MSGJ · talk) 22:17, 29 January 2011 (UTC)[reply]
Okay, it is comparing it with 0, then the first 1/0 should be swapped, because currently, even if its expired (0) it is still 1 for being on Template:Editnotices. 117Avenue (talk) 22:57, 29 January 2011 (UTC)[reply]
Yeah, that is the intended behaviour. I wanted it to appear on the editnotice template page even when expired. But it won't appear on the article as an editnotice when it has expired. — Martin (MSGJ · talk) 23:00, 29 January 2011 (UTC)[reply]
So when it is displaying while editing an article, its FULLROOTPAGENAME isn't Template:Editnotices? This is still new to me, since I am new to making edits in the Template:Editnotices space. A disclaimer will need to be added to the documentation, instructing not to use expiry when using it in a different space, as it will cause the box to disappear. 117Avenue (talk) 23:10, 29 January 2011 (UTC)[reply]
Correct, PAGENAME returns the name of the current page, so on an article this will be the name of the article. The meaning of your last sentence is lost on me though. I suggest you try it and either convince yourself that it is working properly or else give an example of where it is not working. — Martin (MSGJ · talk) 12:30, 31 January 2011 (UTC)[reply]
If this template is used on a different space, with an expiry, it will disappear. 117Avenue (talk) 23:20, 31 January 2011 (UTC)[reply]
Correct, it's not supposed to produce any output if it has expired! — Martin (MSGJ · talk) 18:01, 1 February 2011 (UTC)[reply]

Just a reminder, the documentation still needs to be updated to include information on the expiry parameter. -- œ 09:30, 29 January 2011 (UTC)[reply]

Yup, I haven't forgotten ;) Will do shortly. — Martin (MSGJ · talk) 22:44, 29 January 2011 (UTC)[reply]
 Done — Martin (MSGJ · talk) 18:01, 1 February 2011 (UTC)[reply]

I think a tweak to Template:Active editnotice is in order. Can someone double-check this for me? — Martin (MSGJ · talk) 18:01, 1 February 2011 (UTC)[reply]

  • Sorry to be negative, and for not bringing this up earlier (I was only aware of the new feature now), but this is really, really annoying - especially because those who are explicitly declaring that an editnotice will apply indefinitely (by means of expiry=indefinite) are still faced with an ugly "This template is set to never expire. Please insert an expiry date" messagebox. AGK [] 22:54, 20 February 2011 (UTC)[reply]
    I think it is important that the expiry date is displayed somewhere on the editnotice template, otherwise it would cause more confusion ("why isn't the template displaying?"). I suppose the information about setting the parameter could be left out, when the parameter has been set. Feel free to make the change to Template:Editnotice/notice. — Martin (MSGJ · talk) 12:44, 21 February 2011 (UTC)[reply]

Edit request on 2 January 2012

Update the page with the code on Template:Editnotice/sandbox. This will allow users to change the size of the picture with retaining the original size for other users.

Armbrust, B.Ed. Let's talk aboutabout my edits? 15:33, 2 January 2012 (UTC)[reply]

 Done, and added |imagerightsize= too in case someone wants the two images to be different sizes for some reason. Anomie 20:39, 3 January 2012 (UTC)[reply]

It would be nice if the right side image box could have 2 images side by side (if you don't have much text in the box, there's a lot of whitespace left), I'm not quite sure how to get it to work a bit out of touch with wikicode I actually tried subst'ing it and making my own version but because there's so many ifs and stuff subst'ing it just breaks it horribly:

User talk:Mistress Selina Kyle/editnotice

Thanks for any help --Mistress Selina Kyle (Α⇔Ω ¦ ⇒✉) 07:22, 15 February 2012 (UTC)[reply]

It would have to be added to {{fmbox}} which is quite widely used, that would in my opinion be too much feature creep. If it's only needed for your editnotice I think it can be handled there by passing the desired structure directly. I've made changes to your editnotice that I believe do what you asked for.
Amalthea 11:28, 15 February 2012 (UTC)[reply]
Thanks! --Mistress Selina Kyle (Α⇔Ω ¦ ⇒✉) 12:08, 15 February 2012 (UTC)[reply]

Editnotice Showing Twice

Hi. Does anyone know if this is a bug with Editnotice, or is it just me? Whenever I go to edit a page with an Editnotice on it, the message displays twice. I've noticed this on protected pages, deleted pages, and user talk pages... Here is a screenshot of the problem:
JmaJeremy TALK CONTRIBS 04:31, 12 March 2012 (UTC)[reply]

That's not actually an edit notice.
FWIW, I know there used to be a problem with wikEd that used to display some notices twice, do you happen to have that enabled? Does it also happen if you log out?
Amalthea 08:36, 12 March 2012 (UTC)[reply]