Wikipedia talk:Editnotice

(Redirected from Wikipedia talk:EDN)
Latest comment: 1 month ago by SilverLocust in topic Own user talk editnotice creation

Editnotice 2.0 implementation

edit

As previously discussed in WP:VPT#Enhanced editnotice loader, please implement the following changes:

You may wish to see the versions on test Wikipedia to help with implementation. I'll drop them here so you can view and copy:

Awesome Aasim 20:04, 8 October 2024 (UTC)Reply

I don't know the background or intricacies of this set of changes, but please do not remove the new magic word __EXPECTUNUSEDTEMPLATE__ from pages where it has been inserted. That magic word prevents edit notices from appearing on the list at Special:UnusedTemplates. Thanks. – Jonesey95 (talk) 20:35, 8 October 2024 (UTC)Reply
Also there are multiple page protections that would need to be done first. — xaosflux Talk 20:43, 8 October 2024 (UTC)Reply
Only two really: Module:Editnotice load and Module:Editnotice load/config and maybe Module:Editnotice load/i18n. Most of the internationalization should be done when the module is exported, etc. or on projects like Fandom Dev Wiki (or Wikimedia equivalents). After, it is done. Awesome Aasim 14:11, 9 October 2024 (UTC)Reply
And Module:Editnotice load/config loader. Awesome Aasim 16:36, 9 October 2024 (UTC)Reply
Good catch! I thought after letting sit at the village pump for a month someone would discover problems, but apparently not until after I opened that edit request. Awesome Aasim 21:19, 8 October 2024 (UTC)Reply
  • I have no time to touch this anytime soon, and not sure it is needed - seems to be severely increasing technical debt that will have to be locally supported. — xaosflux Talk 14:28, 9 October 2024 (UTC)Reply
    To be fair, migrating arcane wiki templates to Lua is the opposite of "increasing technical debt". Although the complexity of the request does mean actioning it likely requires setting aside an hour. Nevertheless, should be a net positive. – SD0001 (talk) 04:48, 16 November 2024 (UTC)Reply
Not done for now: @Awesome Aasim I'm going to close this as {{not done}} for now, especially given that this has been languishing long enough that I'm pretty sure multiple administrators have looked at it and declined to implement these changes. Personally, my pet peeve is that Module:Editnotice load is marked as alpha and does not have any concrete description of its purposes and various flags as well as a set of test cases mirroring IRL use cases.
TLDR: please document and provide test cases for what is going on in Module:Editnotice load and very clearly document the exact administrative actions that need to be taken by admins in order to implement your changes. Sohom (talk) 13:13, 16 November 2024 (UTC)Reply
@Awesome Aasim I have some time now and can action this. But two things:
  • I don't think we should mix lua invocations with parser function conditions. It would be better for the module to provide entry points which messages like MediaWiki:Protectedpagetext can use directly.
  • I don't think we should combine this rewrite with new features like editnotices by category and by page id which people haven't asked for, and for which no consensus has been obtained. Can you remove these for now and propose adding them separately?
SD0001 (talk) 12:32, 2 January 2026 (UTC)Reply
@SD0001 For the former I agree. For the latter I might agree that consensus may be necessary. The main use case for category editnotices would be stuff like showing contentious topics notices on appropriate groups of pages (such as {{ct/en|r-i}} on pages in categories related to WP:CT/R-I), but also it would make it easier to centralize BLP and disambiguation editnotices than the current system of calling a module on {{Editnotices/Namespace/Main}}. I'll probably set a feature flag to disable the category notice code or just comment it out.
I already have a demo on Test Wikipedia and it has been there for a little over a couple of years, although I don't recall when they were last in sync and there may still be some bugs all this time later.
There are other improvements such as editnotices and protection notices by page ID (which can help reduce the chance of an editnotice not being displayed when a page is renamed). Aasim (話すはなす) 18:09, 13 January 2026 (UTC)Reply

All editnotices

edit

After Wikipedia:Categories_for_discussion/Log/2026_January_13#Category:Pages_with_unclassified_custom_editnotice following the previous section, I had an idea of creating a tracking category, attached directly to Template:Editnotice, that tracks all editnotices. That is, Category:All pages with editnotices. Most other maintenance tracking categories have one. –LaundryPizza03 (d) 03:57, 3 February 2026 (UTC)Reply

Editnotices don't need to use {{editnotice}}. Also, naming a category "All pages with editnotices" would be misleading, because you would be putting the editnotices themselves into the cat, and not the pages using them. --Redrose64 🌹 (talk) 14:57, 3 February 2026 (UTC)Reply
Wouldn't that warrant renaming all subcategories of Category:Pages with editnotices? –LaundryPizza03 (d) 01:24, 4 February 2026 (UTC)Reply
With no further response, I have opened Wikipedia:Categories_for_discussion/Log/2026_March_22#Category:Pages_with_editnotices. –LaundryPizza03 (d) 20:15, 22 March 2026 (UTC)Reply

NOTCENSORED-like editnotices

edit

Two edit notices, {{Sex editnotice}} and {{Non-sexual nudity editnotice}} (although no pages seem to have been added to the later in many years), are very similar to each other, and are both covered on corresponding talk pages by {{Censor}} (also used for violence/graphic imagery and some political topics). There are also many pages using that talk template that do not have either of the two editnotices. Xeroctic (talk) 16:09, 15 April 2026 (UTC)Reply

@Xeroctic: Go to WP:TFD. –LaundryPizza03 (d) 21:36, 4 May 2026 (UTC)Reply
I have started a discussion at Wikipedia:Templates for discussion/Log/2026 May 5#Template:Sex editnotice. Xeroctic (talk) 11:59, 5 May 2026 (UTC)Reply

Own user talk editnotice creation

edit

Did something change about Other users generally don't see them at all, except on their own user and user talk basepage, where they only see the red "Page notice" link, since they can create and edit such notices. recently? I was looking at my own user talk (not a template editor or a page mover) and it's not visible by default for me. It shows up as a [div class="editnotice-link editnotice-redlink sysop-show templateeditor-show extendedmover-show" ...] for me in the local HTML, and I can make them visible if I add, say, extendedconfirmed-show. I don't believe I have any custom css that would be hiding it, either.

If I follow the link nothing seems to have changed about my ability to create it if desired, at least. ScalarFactor (talk) 04:53, 9 May 2026 (UTC)Reply

Perhaps it never actually worked, but yeah it doesn't work now. It is supposed to work by using {{REVISIONUSER}} to be the username of the person editing, but in an editnotice (while editing) that "{{REVISIONUSER}}" just parses as "" (empty). The code for that is currently in Template:Editnotice load/content and was added to the parent template on 14 January 2010. ~ Jenson (SilverLocust 💬) 12:52, 9 May 2026 (UTC)Reply