Difference between revisions of "Data controller popup"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "The data controller popup is what shows up in the top right when someone loads an item that is a data controller, for instance {{Q|101}}. =Current implementation * MediaWi...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
The data controller popup is what shows up in the top right when someone loads an item that is a data controller, for instance {{Q|101}}.  
 
The data controller popup is what shows up in the top right when someone loads an item that is a data controller, for instance {{Q|101}}.  
  
=Current implementation
+
= Current implementation =
 
* [[MediaWiki:Common.js]], which is run for everyone accessing a page, loads [[MediaWiki:Access.js]]
 
* [[MediaWiki:Common.js]], which is run for everyone accessing a page, loads [[MediaWiki:Access.js]]
 
* `Access.js` checks whether the page is an {{P|3}} {{Q|96}}
 
* `Access.js` checks whether the page is an {{P|3}} {{Q|96}}
Line 7: Line 7:
 
* a `href` is created
 
* a `href` is created
  
=Wishlist
+
= Wishlist =
 
* Make the whole popup be a wikitext template, using the MediaWiki Template framework
 
* Make the whole popup be a wikitext template, using the MediaWiki Template framework
 
* A warning to check the email address that things are sent to (this would be a sneaky way to be a bad guy)
 
* A warning to check the email address that things are sent to (this would be a sneaky way to be a bad guy)
 
* A button to copy to clipboard the mailto link (browsers make it difficult to copy this type of link)
 
* A button to copy to clipboard the mailto link (browsers make it difficult to copy this type of link)
 
* An invitation to Tweet "I just asked my data from company ____, join me at ____"
 
* An invitation to Tweet "I just asked my data from company ____, join me at ____"
 +
 +
= How to do it =
 +
* Ask for access to be able to modify the MediaWiki namespace
 +
* better yet, implement your new version as a user script:
 +
** go to '''your own''' [[Special:Mypage/common.js]]
 +
** add a line to load your own script (see how it's done and get inspired by any other user's scripts, for instance [[User:Podehaye/common.js]])
 +
** copy/paste/modify [[MediaWiki:Access.js]] into this new script, to do what you want in parallel to the current version (so you have two popups!)
 +
** tell an admin to take your script and make it sidewide

Latest revision as of 11:01, 2 August 2019

The data controller popup is what shows up in the top right when someone loads an item that is a data controller, for instance Uber (Q101).

Current implementation

Wishlist

  • Make the whole popup be a wikitext template, using the MediaWiki Template framework
  • A warning to check the email address that things are sent to (this would be a sneaky way to be a bad guy)
  • A button to copy to clipboard the mailto link (browsers make it difficult to copy this type of link)
  • An invitation to Tweet "I just asked my data from company ____, join me at ____"

How to do it

  • Ask for access to be able to modify the MediaWiki namespace
  • better yet, implement your new version as a user script:
    • go to your own Special:Mypage/common.js
    • add a line to load your own script (see how it's done and get inspired by any other user's scripts, for instance User:Podehaye/common.js)
    • copy/paste/modify MediaWiki:Access.js into this new script, to do what you want in parallel to the current version (so you have two popups!)
    • tell an admin to take your script and make it sidewide