Page MenuHomePhabricator

Document how to add the editnotices functionality to a wiki
Closed, InvalidPublic

Description

I'm trying to use an editnotice on the arbitration wiki. I've created the notice as it would be on enwiki. Nothing appears. There are no page notice or group notice links.
There is, afaict, no documentation on how to configure editnotices on a wiki.
Arbwiki is up to date, 1.40.0-wmf.21 (2789b80) 02:24, 31 January 2023

Please provide documentation.

Event Timeline

I'm trying to use an editnotice on the arbitration wiki. I've created the notice as it would be on enwiki.

What does "as it would be" mean exactly? Under which full URL? Which of the "arbitration wikis" is this about?

"as it would be" - for the page Appeals/2023 I created Template:Editnotices/Page/Appeals/2023
Which of the "arbitration wikis" - https://arbcom-en.wikipedia.org

I will also note that the usual editnotice-related content does not appear on any page, i.e. when you edit a page there is no "Group notice" or "Page notice" redlink that appears as an option for making an editnotice.

In this specific case, at https://arbcom-en.wikipedia.org/wiki/Appeals/2023 there should be an option to create a page notice using https://arbcom-en.wikipedia.org/wiki/Template:Editnotices/Page/Appeals/2023 but that option is not present, and even after creating the template there is no editnotice.

matmarex subscribed.

The edit notice system based on Template:Editnotices is not part of the MediaWiki software, it is an invention specific to English Wikipedia. It is documented briefly at https://en.wikipedia.org/wiki/Wikipedia:Editnotice#Technical_details.

MediaWiki's own edit notice system is different, and it is already documented at https://www.mediawiki.org/wiki/Manual:Interface/Edit_notice.

A lot of reference is given to (what appears) enwiki here; please note that editnotice system is heavily customized on enwiki and now is quite different (for the user) from the core actual design.

The core system is quite simple by design, and self-explanatory: To create a page notice for the page given above, you need to create it here https://arbcom-en.wikipedia.org/wiki/MediaWiki:Editnotice-0-Appeals-2023.

In this specific case, at https://arbcom-en.wikipedia.org/wiki/Appeals/2023 there should be an option to create a page notice using https://arbcom-en.wikipedia.org/wiki/Template:Editnotices/Page/Appeals/2023 but that option is not present, and even after creating the template there is no editnotice.

I think what you should ask first, is why the links appear on enwiki. The links are not provided by core, they're generated on enwiki. If you need the link arbwiki, you know, you have to copy that template to there.

The choices here are simple:

  1. Use the core simple system: That's already documented here. Just follow the simple rules to find the right notice page.
  2. Use the enwiki complex system. It's (partly) documented here: https://en.wikipedia.org/wiki/Wikipedia:Editnotice#Technical_details

If you want have exact expereince as enwiki, then you have to copy all these templates and any extra template or Lua module dependecies any of them might have.

Thanks Ammarpad. That sorted it.
It worked once we also created https://arbcom-en.wikipedia.org/wiki/MediaWiki:Editnotice-0

I hope you understand that's a namespace-level notice, so it will appear on all pages in namespace 0. (Task description shows you probably want it for https://arbcom-en.wikipedia.org/wiki/Appeals/2023 only)

Thanks Ammarpad. That sorted it.
It worked once we also created https://arbcom-en.wikipedia.org/wiki/MediaWiki:Editnotice-0

I hope you understand that's a namespace-level notice, so it will appear on all pages in namespace 0. (Task description shows you probably want it for https://arbcom-en.wikipedia.org/wiki/Appeals/2023 only)

Primefac moved the notice to https://arbcom-en.wikipedia.org/wiki/MediaWiki:Editnotice-0-Appeals-2023.
I looked an hour or so later and it didn't work.
Once I created https://arbcom-en.wikipedia.org/wiki/MediaWiki:Editnotice-0 :Editnotice-0-Appeals-2023 started to work. Was Editnotice-0 (even a blank one) a necessary pre-requisite, or did its creation force a cache purging of the subordinate pages? Anyhow, it works now. Thanks.