User:Krinkle/Gadgets 3.0

From MediaWiki.org
Jump to navigation Jump to search

Rough notes[edit]

ala Chrome market place / Firefox Add-ons

Search, Find, Inform, Install

Search:
- Search: [_____________________]
- [x] Search through descriptions as well
- Source:
-- [x] Local wiki
-- [x] Foreign repositories the site trusts
--/ [+] Add repo
- Filter:
-- [x] Only search for gadgets known to support the MediaWiki version this wiki has (''1.18.1'')
-- [x] Only search for gadgets known to work with your current skin (''Vector'')

Find:
- Search engine result pages
[       ]   {Title of gadget}
[{Thumb}]      from: {repo}                               {Category}    { [+] Install gadget }
[       ]   {Description (snippet)}   .. .....            [{Rating}]  {# users}   
            ....  .......  .......  .... ...  ....

Inform:
/head
- Title of gadget
-- Rating, Category, # users
- Authors (from repowiki)
- + [+] Install gadget
/tab: intro
- Screenshot slider
- Short description
/tab: details
- Larger description    - Authors (from repowiki)
- Screenshot slider     - Report bug | Support | Website
                        - Last updated: #date#
                        - Compatible with:
                           [\/ MediaWiki 1.20] [\/ Monobook]
                           [ Not officially supported] (402 people say it works, 9 people say it's broken)
                        - This gadget can access: /nice to have, possible?, closure could include local window/document/mw faux
                             * user.options 
                             * user.tokens
                             * ..
                        - This gadget is an add-on to the following gadgets,
                          these will be automatically enabled upon enabling this one:
                             * ...
                             * ...

([Report abuse], reports to repo-owner)

/tab: changelog
- version, date, changes
- version, date, changes
- version, date, changes

/tab: stats
- download stats


Install:
/write to user_options.gadgets_custom_sources
    ["http://localhost/mw-scriptpath/"]
/write to user_options.gadgets_enabled
  {
    "local": {"gadgetid": false, "gadgetid": true},
    "mediawikiwiki": {"gadgetid": true, "gadgetid": true},
    "http://localhost/mw-scriptpath/": {"gadget.id": true}
  }

Once installed, on Special:MyGadgets
- List of installed gadgets (a bit like chrome://settings/extensions)
- Uninstall / Options

/write to user_option.gadget_options
  {
    "gadgetid": {
      "some-pref": 123
    },
    "gadgetid": {
      "some-pref": 123
    }
  }

Assumed / consequence[edit]

Gotchas learned from Gadgets 2.0[edit]

  • Deal with naming conflicts between gadgets from different repositories by identifying them with both the repository ID and the gadget ID.

See also[edit]