Page MenuHomePhabricator

create gadget for showing padlock on protected item pages
Closed, ResolvedPublic

Description

Katie worked on a script that shows a padlock on protected items. It needs reviewing and then proposing to the community as a gadget to be enabled by default on Wikidata. This will be a temporary solution until we have the full solution in Wikibase or Core.

Event Timeline

Lydia_Pintscher assigned this task to aude.
Lydia_Pintscher raised the priority of this task from to Medium.
Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher subscribed.

code is on test.wikidata and can be enabled as a gadget:

https://test.wikidata.org/wiki/MediaWiki:Gadget-ProtectionIndicators.js and https://test.wikidata.org/wiki/MediaWiki:Gadget-ProtectionIndicators.css

https://test.wikidata.org/wiki/Q1017 - protected item to test it

surely the gadget could be further improved or tweaks, but think it's already useful.

this can also be tested on Wikidata, by putting in your common.js (e.g. "User:Aude/common.js"):

mw.loader.using([], function() {
importStylesheet('User:Aude/protection.css')
importScript('User:Aude/protection.js');
});

a list of protected pages to try it on:

https://www.wikidata.org/wiki/Special:ProtectedPages

Community discussion started at https://www.wikidata.org/wiki/Wikidata:Project_chat#Protection_indicators.
@aude: would you prefer that the script be moved from your userspace, or that a new MediaWiki page be created?

@Ricordisamoa I have no preference.

one question with the script... It works for all namespaces. Do we want that or just for entity namespaces? I'm thinking perhaps we want that (at least to start with). It might not be necessary or desired to show protection status for the Main page (e.g.) or user pages.

Can somebody explain when we consider this task as done? @aude @Lydia_Pintscher

@Ricordisamoa: Nothing on Project chat. Do you think we can interpret this as "ok to go ahead"? Do you want to do it or should I try to find someone else?

I like the script, but I'd prefer that it be provisionally enabled for entity namespaces only.

@Ricordisamoa agree and can modify the script accordingly.

Moved pages and announced on Project Chat.

New tasks may be created about making it an extension or enabling it for non-entities.