Difference between revisions of "MediaWiki:Architecture of SAR service"

From Wikibase Personal data
Jump to navigation Jump to search
Line 11: Line 11:
 
== Gadgets, user scripts and CSS ==
 
== Gadgets, user scripts and CSS ==
  
MediaWiki has many extension systems. There is a way to add javascript code or CSS upon page load, and to configure for this to happen independently for each user or site-wide. See [https://www.mediawiki.org/wiki/Extension:Gadgets MediaWiki's documentation].
+
MediaWiki has many extension systems. There is a way to add javascript code or CSS upon page load, and to configure for this to happen independently for each user or site-wide. See [https://www.mediawiki.org/wiki/Extension:Gadgets MediaWiki's documentation].  
  
===Common.js system===
+
* gadgets are site-wide javascript, which can be configured by the admin to be opt-in or opt-out, with users able to change the choice in
 +
Currently, wiki.personaldata.io does not have that part of the system enabled.
 +
* common.js are also site-wide javascript, and defined on PersonalData.IO [http://wiki.personaldata.io/wiki/MediaWiki:Common.js here]
 +
* user-scripts are custom javascript, set up by each user separately. Yours is [https://www.mediawiki.org/wiki/Special:MyPage/common.js here]

Revision as of 11:30, 18 April 2019

Items & properties

Items and properties are core to wikibase. They operate like a very flexible database. The SAR service relies on some information being properly entered. See Deliveroo (Q102) for an example.

Templates

Templates are a MediaWiki system that allow filling text modularly. There is extensive documentation on the MediaWiki docs.

Note that templates can be used from within gadgets or user scripts (see below) as well as regular pages.

Gadgets, user scripts and CSS

MediaWiki has many extension systems. There is a way to add javascript code or CSS upon page load, and to configure for this to happen independently for each user or site-wide. See MediaWiki's documentation.

  • gadgets are site-wide javascript, which can be configured by the admin to be opt-in or opt-out, with users able to change the choice in

Currently, wiki.personaldata.io does not have that part of the system enabled.

  • common.js are also site-wide javascript, and defined on PersonalData.IO here
  • user-scripts are custom javascript, set up by each user separately. Yours is here