Hiruwiki

Hiruwiki is a collection of interactive, multilingual geometric and mathematical widgets designed for Wikimedia projects. Developed by Theklan from the Euskal Wikilarien Kultura Elkartea (Basque Wikimedians User Group) and updated for global use by ItsNyoty, it allows editors to embed dynamic proofs and visualisations directly into wiki articles.
The name is a play on the Basque word hiruki (triangle), reflecting its focus on geometric fundamentals.
What it does
[edit]Hiruwiki provides 25+ lightweight, interactive modules covering:
Algorithms
[edit]Arithmetic
[edit]- Graphical explanation of positive and negative percents
- Least Common Multiple and Greatest Common Factor
- Explanation of the Fibonacci sequence as sum and division
- Graphical proof of the division of a number
Geometry
[edit]- Various concepts on the division of angles
- Proof that the sum of the angles of an hexagon is always 720º
- Proof that the sum of the angles of a quadrilateral is always 360º
- Classification of quadrangles
- Slope between two points
- Proof that the sum of the angles of a pentagon is always 540º
- Proof of pythagoras theorem
- Radian calculator
- Explanation of the four basic transformation: rotation, mirror, scale and translation
- Proof that the sum of the angles of a triangle is always 180º
- Proof of the area of a triangle
- Incentre of a triangle
- Orthocentre of a triangle
- Classification of triangles
- Centroid of a triangle
- Circumcentre of a triangle
- Euler line
- Nine points circunference
- Proof of how the area of a circle is calculated
Probability
[edit]Trigonometry
[edit]Minigames
[edit]- Guess the angle!
- A minigame to learn about coordinates with positive numbers
- A minigame to learn about coordinates with integers
Installation Guide
[edit]To enable Hiruwiki on your wiki, follow these steps:
1. Register the Gadget
[edit]Add the following line to your wiki's MediaWiki:Gadgets-definition:
* hiruwiki[ResourceLoader|default|dependencies=mediawiki.util,mediawiki.api,mediawiki.language]|hiruwiki-core.js
2. Import
[edit]Create the page MediaWiki:Gadget-hiruwiki-core.js on your wiki and add the following line to it:
mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-hiruwiki-core.js&action=raw&ctype=text/javascript');
How to use in articles
[edit]You can use import the models in your articles by adding this HTML code and changing MODULENAME to the correct modulename:
<div class="hiruwiki" data-module="MODULENAME"></div> <includeonly>[[Category:Hiruwiki]]</includeonly>
Since most wiki's don't like pure HTML inside their article, we suggest creating a template per module: (e.g. Hiruwiki/MODULENAME)
You can use the deploy templates script on the Github to automate this process
This code above automatically adds the article to the Hiruwiki category. Please make the category hidden.
Localization (i18n)
[edit]Hiruwiki is designed to be fully multilingual. It automatically detects the user's interface language (wgUserLanguage).
Adding a new language
[edit]For the translation, Hiruwiki uses Translatewiki.net. You can translate the project here.
Development & Support
[edit]- Source Code: GitHub - ItsNyoty/Hiruwiki
- Original Author: Euskal Wikilarien Kultura Elkartea - Theklan
- Global Port: ItsNyoty