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.

Others ways, are :


 * when the result is not a list of more than one list of results :  .


 * (since version 0.1c) when the result is a list of one or more  list of results :  , if for example we want to build a table. Remark : Of course, for that,   should be active. See Extension:Semantic Forms.

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  is set to , then magic word   is without the preceeding hash symbol, and more like a 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