Extension:CrossReference

WARNING: This currently does not work with the latest MediaWiki version because it uses the deprecated "wfMsgEx" function.

The CrossReference extension allows to create automatically numbered cross references on a wiki page, LaTeX style. It provides tags to declare objects as referenced objects: figure, table... Then because these referenced objects have identifiers, they may be referenced somewhere in the text.

Declare Referenced Objects
A referenced object is an object which has an identifier, and may have a caption.

Several types of referenced objects are supported:
 * : a figure,
 * : a table,
 * : an equation,
 * : a theorem,
 * : a definition, and
 * : a bibliographical reference.

Each of these types have a dedicated HTML tag to declare an object instance, except for the bibliography which is not supported by this extension:

In the text describing the referenced object, the tag &lt;caption/&gt; may enclose the caption of the object. This caption will be rendered near the referencing object and will appear in all the references in the text.

Example: gives: 

Add Reference in Text
Somewhere on the page, you can put the following to reference the element: where identifier is the code of the referenced object to reference. The given text is put back in the reference hyper link. If this text is not given, the default text is used (basically the object number).

Example: gives: "Figure [#label-fig:myobject 1]".

Subfigures, Subtables...
When a figure is the composition of a set of subfigures, CrossReference extension make you able to define a number and caption for each subfigure.

The inner components must be enclosed by a tag which is corresponding to the enclosing components, ie. subfigure in a figure, subfigtable in a figtable... The inner tags do not take parameter:

&lt;xrlabel/&gt;
All the referenced object declarations are wrappers to the tag. This tag supports several parameters:
 * : the identifier of the referenced object;
 * : the type of the referenced object, one of the types describes before;
 * : if present, display the object number between parenthesis (for backward compatibility with the original CrossReference extension);
 * : if present, do not output the HTML tags which are dedicated to referenced objects;
 * : if present, do not apply default caption formatter on the given caption.

&lt;xr/&gt;
Tag &lt;xr/&gt; takes parameters:
 * : the identifier of the referenced object;
 * : if present, do not output the hyperlink.

Simple Example
The following text is taken from Janus website:

Subfigure Example
The following text is taken from Janus website:

Changes

 * 3.0 (2010-08-15)
 * Add comments for translation contributors.
 * Move translations in subdirectory i18n.
 * Add French, Norwegian and Russian translations.
 * 2.0 (2010-08-03)
 * Add support for subfigures, subtables...
 * 1.1 (2010-08-03)
 * Internal caches are no more clear to avoid reference loose.
 * 1.0 (2010-08-02)
 * Complete Refund of the source code.
 * Add more supported tags.
 * Add parameters to tags.
 * 1.0-beta (2009-08-03)
 * First public release on Mediawiki website.