Reference Macro for the Numbered Content Applications

Version 29.3 by Michael Hamann on 2022/04/04 12:06

cogProvides Numbered Headings and Figures, and references to them.
Recommended
TypeJAR
CategoryMacro
Developed by

Manuel Leduc, Michael Hamann

Active Installs15
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Compatibility

14.0+

Installable with the Extension Manager

Description

The reference macro allows to make references to numbered contents. Currently, references can be made to Numbered Headings, Numbered Paragraphs, and Numbered Figures. This application is part of the Numbered Content.

Note: This macro is an alternative to Numbered Reference Macro

Reference Macro

Example

= Title 1 =

See Figure {{reference figure="Circles"/}}, and {{reference figure="Typo"/}}.

== Title 2 ==

Please see section {{reference section="HTitle1"/}}.

{{figure}}
[[image:circles.png||height="200" width="200"]]

{{figureCaption}}
{{id name="Circles"/}}Generative Art - Circles
{{/figureCaption}}
{{/figure}}

Numbered Content 1.3+ 

Instead of specifying the id in the caption as shown in the example above, the id for the reference can also be specified on the image itself:

[[image:circles.png||height="200" width="200" id="Circles"]]

XWiki 14.2+ The automatically generated image ids can also be used to reference a figure.
The advantage of using an id on the image is that the browser will directly jump to the image instead of the caption when clicking on the reference link.

Release Notes

1.10.1

1.10.0

1.9.3

1.9.2

1.9.1

1.9

1.8.4

1.8.3

1.8.2

1.8.1

1.8

  • The minimal XWiki dependency is now 14.10
  • Translations: Japanese, German

1.7.1

Translations: Japanese

1.7

1.6

1.5

1.4

1.3

1.2

Breaking change The parameter used to skip numbering (data-numbered-headings-skip) is now replaced by data-xwiki-rendering-protected.

1.1

1.0

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.numbered.content:application-numbered-content-reference-macro 1.3):

Tags:
    

Get Connected