Extension:WikiMindMap

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
WikiMindMap

Release status: Experimental

Implementation Special page
Description Adds a special page to show a Mind Map of a searched article.
Author(s) Eric Larcher
Latest 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

Translate the WikiMindMap extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

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

Be careful[edit | edit source]

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

Javascript script calling[edit | edit source]

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)

API used[edit | edit source]

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.

User must be registred[edit | edit source]

--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.

Others known minors threads[edit | edit source]

There is some others minors bugs and work to do :

  • Problems with accentuated characters;
Done.--Eric Larcher 21:52, 8 April 2008 (UTC)
  • Extend the Map Mind view to page links outside the main namespace (very easy to do);
  • Give in the Map Mind abstract of each wiki linked page (easy to do after solving problems 1 and 2);
  • I have too, to document the code !!!
  • In the internationalisation file, there is only translation for french.
  • After solving 1, It seems :
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)
  • Problem with the 'bring to center' functionality
Done.--Eric Larcher 21:52, 8 April 2008 (UTC)
  • Change the "Search Result message"
  • Give a better aspect
  • Give the ability to show images

How it runs[edit | edit source]

  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.

Live demo[edit | edit source]

  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.

Ask for debugging help[edit | edit source]

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).

Hello where can i download it please? Eva

Installation[edit | edit source]

  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;

See also[edit | edit source]