Commit graph

8 commits

Author SHA1 Message Date
Sam Smith 7995ce4a42 Use extension registration
Add extension.json and populate it with information from both
RelatedArticles.php and the RelatedArticles extension wiki page [0].

Migrate the hook handlers to static functions operating on static data
rather than having a single, global instance of RelatedArticles so that
the hook handler definitions can be added to extension.json easily.

N.B. During testing the handlers for both the SkinBuildSidebar and
SkinTemplateToolboxEnd appeared to have the same effect so the TODO was
removed but not the handler for the former.

Additional changes include:

* RelatedArticles.class.php -> includes/RelatedArticles.php
* RelatedArticles -> RelatedArticles\Hooks
* Documenting all of the methods of RelatedArticles\Hooks

[0] https://www.mediawiki.org/wiki/Extension:RelatedArticles

Bug: T87965
Change-Id: I9944b9186746386ee18ca28657bb547c00ae2b8c
2015-10-07 15:54:07 +01:00
Sam Smith cd055fde89 Add extension boilerplate
Copypasta the following files from the BoilerPlate extension [0]:

* package.json
* Gruntfile.js
* .jscsrc
* .jshintrc
* .jshintignore
* composer.json
* phpcs.xml

Add the following supporting files:

* .gitignore
* composer.lock

Finally, fix the existing coding standard violations.

[0] https://github.com/wikimedia/mediawiki-extensions-BoilerPlate

Change-Id: I30c6cf9e0a637bab5d8f47790b9af57183b6e6fb
2015-10-07 15:48:26 +01:00
Siebrand Mazeland 09f973f56a Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I4a71a12bebd4546e26d76f09e121ff38950074c6
2014-03-28 21:44:00 +01:00
Reedy 4c61d5d106 Fixup documentation
Add a TODO

Change-Id: I535b667f97d6bcf4d00dff17169ee8da7dbbe850
2012-12-07 21:43:05 +00:00
Matthias Mullie 046bc1c0b0 maintenance
Change-Id: I66d814c14f79374e912a0ca8f6bc685a32cd0d9d
2012-11-05 12:09:37 +01:00
raymond 58b117812a Some consistency tweaks:
* ExtensionCredits
** Add path
** Use an array for multiple authors

* i18n file
** Standardize prefix ra -> relatedarticles
** Article -> Page for consistenxy
** Standardize description message
** Add message documentation

Change-Id: I1b50f879f468cff2847751be32eacc51d524fd08
2012-10-16 13:25:38 +02:00
Reedy bb5e4ff182 Reformat code. Remove ?>
Change-Id: Ief2c9620b65aee4d72a1669f965dda4218444d13
2012-10-12 15:51:29 +01:00
Reedy 2c93d90d86 Initial commit
Change-Id: Id5c36e4d21a18a7a6d13e3bdda8c7950b36abf3d
2012-10-12 15:48:14 +01:00