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

Release status: beta

Implementation Tag
Description Provides an incremential tag (numbers, roman and alphabet)
Author(s) Thierry G. Veilleux (Kronoxttalk)
Latest version 0.3 (2012-02-07)
MediaWiki 1.18+
Database changes No
License public domain
  • <in>
  • <ir>
  • <ia>
Hooks used

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

Check usage and version matrix; code metrics

The NumerAlpha extension provides an incremental tag... it counts how many tag you insert in the page source. You can reset the count at any moment or begin to a specified number.

There are three forms:

  • a zero(s) padded number. (you can configure in the source code the length of your zero padded number. (0 = no zero padding)
  • Roman numeral (i, ii, iii, iv, etc.)
  • alphabetic (a,b,...,z,aa,ab,...,zz,...)


  • <in />
  • <ir />
  • <ia />

Why this extension?[edit | edit source]

First, it was for the Semantic Forms to add a table numbered when you use the multiple option... But you can use it in templates, using the {{#tag: }} magic word... and can be really useful.

You can reset it using the parameter reset, and restart the count with the parameter begin

<ir />
<ir />
<ir />
<ir />
<ir />
<ir />
<ir />
<ir />
<ir />
<ir />

<ir reset=1 />
<ir />
<ir />
<ir />
<ir />
<ir />

<ia />
<ia />
<ia />

<ir begin=10 />
<ir />
<ir />
<ir />

That will be render like

i ii iii iv v vi vii viii ix

i ii iii iv v

a b c

x xi xii xiii

So it's easy to list the alphabet:

<ia reset=1 /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia /><ia />


Usage[edit | edit source]

<ia reset=1>goodbye</ia>
<ia begin=11>jupiter</ia>
<in reset=1>goodbye</in>
<in begin=11>jupiter</in>
<ir reset=1>goodbye</ir>
<ir begin=11>jupiter</ir>

Installation[edit | edit source]

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