Extension:WikiMindMap

From MediaWiki.org
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
WikiMindMap

Release status: Experimental

220px
Implementation Special page
Description Adds a special page to show a Mind Map of a searched article.
Author(s) Eric Larcher
Last Version 0.9a2
MediaWiki need at least 1.12
License No license specified
Download For testing and debbuging purposes only ! WikiMindMap.0.9a2
Example see #Sites using this extension

check usage (experimental)

This is an extension to add a Special:Wikimindmap page to MediaWiki, to view Mind Map of an wiki article. It is proposed by Eric Larcher. It's based on the tools from www.wikimindmap.org, plus the code of Special:Search, and the API of MediaWiki 1.12.

Contents

[edit] Be careful

For the moment - 10:15, 7 April 2008 (UTC) - this extension is under development and so is not really operational.

[edit] Javascript script calling

First, I have a big problem because I don't know how to run a javascript script which call an flash object inside a Special Page. So, for the moment, for development and testing purposes, this extension call a html page outside the wiki.

Solved using Extension:Gadgets.--Eric Larcher 18:16, 7 April 2008 (UTC)

[edit] API used

Second, my own wiki is still base on Mediawiki 1.11. So it don't use the good API. Due to that, to be able to test the code, the extension, for the moment, calls pages of the french wikipedia.

[edit] User must be registred

--Eric Larcher 12:31, 9 April 2008 (UTC) After the yesterday modifications, I only try today to use the WikiMindMap extension in anonymous mode. Argh ! No Mind Map at alls :-(. It appears that for the moment, it only runs in "registred users" mode. I will see this bug in a near futur. Perhaps this evening.

[edit] others known minors threads

There is some others minors bugs and work to do :

Done.--Eric Larcher 21:52, 8 April 2008 (UTC)
Having to open the Min Map in an different windows than the WikiMindMap Search windows.Not a good idea, in fact. --Eric Larcher 21:52, 8 April 2008 (UTC)
Done.--Eric Larcher 21:52, 8 April 2008 (UTC)

[edit] How it run

  1. The user has to go to the Special:Wikimindmap page. This page looks like the Special:Search page.
  2. The user give a term to search. Eventually modify the list of the namespaces to explore.
  3. The user validate his choice.
  4. If the term correspond exactly to a page name, the extension display the Mind Map of this page. This Map shows sections structure, page links in the main namespace, external links, category links, lang(uage) links, image page links and external links. A click on a wiki page node bring it to the center and develop his own Mind Map. Even if it's a lang link.
  5. If there is no page which correspond exactly to term, the extension display a list of pages in relation to the term.
  6. After the user click on the name of one of those pages, the extension display the Mind Map of the selected page.

[edit] To see the prototype in action

  1. Click on [this link]to go to the Special:WikiMindMap page of ericlarcher.fr. \\\* link doesn't work.
  2. Enter some selection :
for example, "aa" give nothing (too short expression)
"Albert Einstein" go directly to the MindMap of this page (the page of the french wikipedia - see API use)
"Analyse" give first name pages in relation with this term. And after clicking on the name of one of those pages, the extension display the Mind Map of the corresponding page in the french wikipedia. Remark : if the selection is "Infogestion", the map is empty ; it's because there is no page about Infogestion in Wikipedia.

[edit] Ask for debugging help

Does someone can help me to solve my Javascript script calling problem ???

If you want to to that, you can download the files (see the infobox for download links), and install the extension on a mediawiki site.

The incriminated function is wmmOutput () in Wikimindmap_body.php

To avoid the problem, I put the Mind Map call rendering in a page outside the wiki (http://wikidraw.ericlarcher.fr on my site). This page is build by the index.php file of the package.

Done. --Eric Larcher 21:40, 8 April 2008 (UTC)

There is still need for help (See others threads).

[edit] Installation

  1. Install first Extension:Gadgets
  2. Download WikiMindMap package (see the infobox for download links), and untar this archive. Copy the directory 'WikiMindMap' in your extensions directory.
  3. Copy the content of flashobject.js file to MediaWiki:Gadget-flashobject.js page.
  4. Active, in your Preferences's panel, the use of the gadget flashobject.
  5. Add the following sentence to your LocalSettings.php, somewhere near the bottom:
    require_once( "$IP/extensions/WikiMindMap/SpecialWikimindmap.php" );
    
  6. Under the previous line, you have to specifie who can use Special:WikiMindMap.
If you want that anybody can use it:
$wgGroupPermissions['*']['wikimindap'] = true;
If you want that only sysop can use it:
$wgGroupPermissions['sysop']['wikimindap'] = true;
If you want an additional user group, for example bureaucrats add:
$wgGroupPermissions['bureaucrat']['wikimindap'] = true;
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox