Extension:ApiMagicWord

What can this extension do?
With a simple magic word  was declared as an interwikilink for  .

Note 2 : ApiMagicWord suppose too a simple relation between interwikilink to index.php and interwikilink to api.php : if  is an interwikilink for ,   is (one of) the interwikilink for  .









Remark :For meaning of, see Template:!.

To format the results
Templates can be used to filter and/or format items send to the current wiki page :

Remark : of course, for a correct rendering, the templates have to bee create before their usage.











Tips : As in the line above, it's possible to use an empty template to avoid all trace in the rendered wiki text.

Another way, when the result is not a list of more than one list of results can be :  .

Access to the Api of a local Mediawiki wiki
For access to the Api of the local Mediawiki wiki, no need to specify an interwikilink :







ToDo
''' A lot of work !! Every help is welcome ! '''

Download instructions
Please cut and paste the codes found in subpages : Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
 * ApiMagicWord.php : place it in.
 * ApiMagicWord_body.php : place it in.
 * ApiMagicWord.i18n.php : place it in.
 * ApiMagicWord.i18n.magic.php : place it in.
 * customwikibot.classes.php : place it in.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
If set $wgApiMagicWordUseNoPrefixHash to true, then the functions are without the preceeding hash symbol, and more like the built in function.

User rights
Have to be implemented.

Code
See :
 * Extension:ApiMagicWord/ApiMagicWord.php
 * Extension:ApiMagicWord/ApiMagicWord_body.php
 * Extension:ApiMagicWord/ApiMagicWord.i18n.php
 * Extension:ApiMagicWord/ApiMagicWord.i18n.magic.php
 * Extension:ApiMagicWord/customwikibot.classes.php