Extension:GeoGebra

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

Release status: stable

Implementation Tag
Description Allows to use GeoGebra applets on pages
Author(s) Rudolf Großmann (Rudolf.Grossmanntalk)
Latest version 3.0d-web
MediaWiki needs >= 1.17.0
tested with 1.19.2 and 1.19.7
Database changes No
License GPLv2+
Download
Old Changelog (History)
Example See the page with examples
Parameters

See the page on parameters

Hooks used
ParserFirstCallInit

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

Check usage and version matrix; code metrics

The GeoGebra extension allows to use GeoGebra applets on a page.

GeoGebra applets use Java technology to combine an interactive geometry environment with the ability to directly enter equations and coordinates making it very useful in math education and math explorations.

The latest versions of GeoGebra provide applets using HTML5/JavaScript/CSS instead of Java. These applets can be used on mobile devices like Android tablets and iPads, even on a few smartphones (depending on CPU speed).

GeoGebra applets and worksheets are shared at: www.geogebratube.org (community)

Usage[edit | edit source]

You can export a GeoGebra file to a wiki very comfortably (since GeoGebra 3.2.33.0).

Use the export function of GeoGebra:

Choose File - Export - Dynamic Worksheet as Webpage... Then go to "Advanced" and choose "Clipboard:MediaWiki" (bottom right).
See the tutorial at wiki.geogebra.org: GeoGebra with MediaWiki

Paste the clipoard to your wiki in edit mode. Done! This will create a tag like this:

<ggb_applet height="300" width="600" ggbBase64="AbCd67Fg...KhRs" />


Upload of ggb files to the wiki is obsolete and not longer supported!

You can also pass GeoGebra applet parameters. See Parameters

Example:

<ggb_applet height="200" width="400" showMenuBar="true" showResetIcon="true" ggbBase64="AbCd67Fg...KhRs" />

Installation (MediaWiki Version >= 1.17.x)[edit | edit source]

  • Download and extract the file(s) in a directory called GeoGebra in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/GeoGebra/GeoGebra.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Installation (MediaWiki Version <= 1.16.x)[edit | edit source]

Note Note: If you are using an older version (<= 1.16.x) of MediaWiki, you will have to use an older version of this extension. Version 2.7i is the latest version of this extension which does not need MediaWiki 1.17.x or younger. It can be found here: Older version of this page

Support of mobile devices since version 3.0d-web[edit | edit source]

if a mobile browser is detected, version 3.0d-web delivers HTML5/JavaScript instead of a Java applet. GeoGebra applets inside a wiki now can be used with Android tablets, iPads, and smartphones. (Maybe there is a speed problem with some smartphones).

GeoGebra applets using the syntax 'filename="xyz.ggb"' (obsolete) are delivered only as Java applets.

You can force the delivery of HTML5 by using the parameter ?mobile=true appended to the URL. Use &mobile=true if there is already a ? in the URL.

New version 3.0.2 installed at wikis.zum.de and wiki.geogebra.org[edit | edit source]

Version 3.0.2 is installed at wikis.zum.de/zum (German, former wiki.zum.de) and more then 30 other wikis related to ZUM since June, 2014, and slightly modified at wiki.geogebra.org.

Support of mobile devices now can be testet at wikis.zum.de/zum.

Version 3.0.2 supports only output of HTML5/JavaScript. Java support is discarded. Version 3.0.2 will be published here after testing.

Changes of status[edit | edit source]

  • 2011-03-05: After testing version 2.7 with with many wikis, without critical errors, status of version 2.7i was changed to stable.
  • 2012-08-09: Syntax changes with MediaWiki 1.17.x made changes of the extension necessary. Status was changed back to beta.
  • 2013-12-01: Version 3.0d-web was installed at many other wikis.
  • 2014-02-09: No errors about 3.0d-web were reported. Status was changed back to stable.

Incompatibility with MediaWiki 1.19 fixed[edit | edit source]

Zbynek Konecny from the GeoGebra team told me that this line did not work after updating to MediaWiki 1.19:

$ggbFile = Image::newFromName($ggbBinary);

Fixed with version 2.8a.

See also[edit | edit source]

Language: English  • Deutsch • português