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.
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdlrobson | T78430 [Epic] Getting Wikidata to render nicely on mobile web | |||
Open | None | T158181 Aim for workflow equivalence for MediaWiki on desktop and mobile web | |||
Open | None | T95878 [Story] Make Wikidata editable on mobile web | |||
Open | None | T95649 Create and document a stable framework for extending the Wikibase UI | |||
Stalled | None | T40968 Keyboard-navigability of the repo UI | |||
Open | None | T54136 [Epic] Redesign Item UI for Wikidata repo | |||
Duplicate | None | T64554 Tag protected items with a padlock | |||
Resolved | aude | T92384 create gadget for showing padlock on protected item pages |
Event Timeline
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:
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.
@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 updated the script.
https://test.wikidata.org/wiki/MediaWiki:Gadget-ProtectionIndicators.js
and
https://www.wikidata.org/wiki/User:Aude/protection.js
and per https://test.wikidata.org/wiki/MediaWiki:Gadgets-definition, note that this also comes with some css.
Moved pages and announced on Project Chat.
New tasks may be created about making it an extension or enabling it for non-entities.