Extension:GeoGebra

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎日本語 • ‎polski • ‎português
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
GeoGebra

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Allows to use GeoGebra applets on pages
Author(s)Template:Extension#username Zbynek, Rudolf Großmann (Rudolf.Grossmanntalk)
Latest versionTemplate:Extension#version 3.0.7
MediaWikiTemplate:Extension#mediawiki needs >= 1.17.0
tested with 1.19.2 and 1.19.7
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPLv2+
Download
Old changelog (History)Extension:GeoGebra/Changelog
ExampleTemplate:Extension#example See the page Extension:GeoGebra/ExamplesExtension:GeoGebra/Examples
ParametersTemplate:Extension#parameters

See the page Extension:GeoGebra/ParametersExtension:GeoGebra/Parameters

Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

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

Check usage and version matrix.

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]

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]

  • Download and place the file(s) in a directory called GeoGebra in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/GeoGebra/GeoGebra.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

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

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]

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]

Version 3.0.5 is installed at wikis.zum.de/zum (German language) and about 60 other wikis related to ZUM. Version 3.0.2 was installed since June, 2014, and slightly modified at wikis.zum.de and 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]

  • 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]

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]