Jump to content

Hiruwiki

From mediawiki.org

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]

Geometry

[edit]

Probability

[edit]

Trigonometry

[edit]

Minigames

[edit]

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]