Commit graph

18 commits

Author SHA1 Message Date
Kaldari f982f4c117 Converting README to Markdown file and adding config documentation
Change-Id: I24814b8236cef0eaf7b9e0628d92912cbc2924a6
2015-12-18 14:40:00 -07:00
Kunal Mehta 519f30355e Implement Gadgets definition namespace repo
Implements:
* Gadget definition content and content handler
* Basic validation for gadget definition content
* GadgetDefinitionNamespace implementation of GadgetRepo
* DataUpdates upon editing/deletion of Gadget definition pages
* EditFilterMerged hook for improved error messages
* 'GadgetsRepoClass' option to switch GadgetRepo implementation used
* Lazy-load the GadgetResourceLoaderModule class so we don't need to
load each individual gadget object unless its needed

Note that Special:Gadgets's export feature intentionally doesn't work
yet, and will be fixed in a follow up patch.

Bug: T106177
Change-Id: Ib11db5fb0f7b46793bfa956cf1367f1dc1059b1c
2015-11-20 12:01:21 -06:00
Kunal Mehta f52d81a245 Update README
* Requires 1.27
* require_once is not a function
* BeforePageDisplay does run in modern versions of the CologneBlue skin.
* User code typically runs after Gadgets now, and they do have access to
things defined in gadgets.

Change-Id: I37431940693abdc2df840980025ff517e95f4a09
2015-11-06 17:38:23 -08:00
Lewis Cawte fc31e94ac9 HTTPS MediaWiki.org redirects to HTTP, so changing to WWW.
Change-Id: Iffbb3751753b211221728fa890e2c82e94f0150e
2013-06-14 18:10:19 +01:00
Siebrand Mazeland 31d5b9a186 Replace remaining deprecated wfMsg calls.
Change-Id: I126968cc09a75bb72987a035e9435dab5e854a35
2012-09-18 00:26:39 +00:00
Siebrand Mazeland 76b26174eb stylize.php, update whitespace, remove superfluous comment lines
update indentation and sprinkle some braces.
2011-09-23 06:48:37 +00:00
Max Semenik dbc8ef531f Bug 13742 - Allow for gadgets to be turned on by default.
Because I'm lazy to do everything twice, README now points to on-wiki docs for definition format.
2011-04-12 18:09:50 +00:00
Sam Reed eaee1521d9 * (bug 27512) update documentation for Gadgets extension 2011-02-18 11:03:47 +00:00
Purodha B Blissenbach 40ea6a2f27 README: two typos fixed. 2011-01-08 11:02:52 +00:00
Max Semenik 43133f5655 Follow-up r76527: updated readme 2010-11-11 18:46:54 +00:00
Brion Vibber 740da4c34d Revert r37263 for now:
* (bug 12211) Show some gadgets only for admins
	* (bug 13742) Allow for gadgets to be turned on by default

I'm a bit leery of the 'on by default' entirely at the moment. :)

A few comments:
* The readme examples don't seem to clearly show the option format
* Why are numeric constants being used as indexes to the option array? Strings are easier to work with and debug.
* There's a lot of stuff like this which feels very ugly:
	if( isset( $gadget->options[Gadget::RIGHTS] ) && !empty( $gadget->options[Gadget::RIGHTS] ) ) {
  Since it's all hard-coded anyway, why not just do something nice and clear like this?
	if( !empty( $gadget->rights ) ) {
* And this:
    if( wfGadgetAllowed( $gadget->options ) ) {
  to:
    if( $gadget->isAllowed() ) {
2008-07-07 18:50:47 +00:00
Victor Vasiliev a1e40d79c1 * (bug 12211) Show some gadgets only for admins
* (bug 13742) Allow for gadgets to be turned on by default
Modified patch by MaxSem
2008-07-07 16:54:20 +00:00
Siebrand Mazeland 29813fc87a Whitespace fixes 2008-02-04 08:08:43 +00:00
Daniel Kinzler 9a6aeab259 updated to reflect new naming convention 2007-11-16 20:46:48 +00:00
Brion Vibber 6805aeea2b spelling fixes 2007-11-16 19:21:19 +00:00
Daniel Kinzler ebc206ba2b normalize gadget names, allow spaces 2007-08-01 21:25:27 +00:00
Daniel Kinzler 124364fb2e fixed i18n issues 2007-07-31 22:28:30 +00:00
Daniel Kinzler 724a7b85d9 Gadgets extension: enable JS based gadgets via user preferences 2007-07-31 10:21:34 +00:00