Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I would like to reference Figures in my wiki, much like you can in LaTeX. For example, say: "As you can see in Figure 3, mediawiki is awesome".

I found the CrossReference extension which does what I want, however, the HTML markup for it is too verbose and does not seem to be part of the regular MediaWiki syntax.

I would like to specify a Figure id inside the [[File:bla.jpg]] syntax for specifying images. Is this possible?

share|improve this question

migrated from stackoverflow.com Aug 6 '11 at 23:38

This question came from our site for professional and enthusiast programmers.

1 Answer 1

I don't think I get what you are trying to do. If you want to reference objects inside a page, you can give each object an ID, and form the links so they will point to the ID you you've tagged.

Template page:

<div id="{{{ID|1}}}">{{{object|2}}}</div>

On relevant pages:

{{obj|cool_table|image}}

...some text...[[#cool_table|in figure 4]] ...rest of text...
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.