Help:Glossary

From QED

Jump to: navigation, search

Contents

Special Syntax for Glossaries

One way to create multiple glossary entries on a single page is to use the special syntax illustrated by the following:

; First glossary item : The text for the entry can appear on the same line as the heading.
; Second glossary item
: The text on this line will be indented at the same level as previously.

The above snippet produces:

First glossary item 
The text for the entry can appear on the same line as the heading.
Second glossary item
The text on this line will be indented at the same level as previously.

Alternatives

There are many alternatives, e.g. using ":" or <br>. For example:

Using :

'''First glossary item'''
: The text for the entry begins on a new line.

''' Second glossary item'''
: The text on this line will be indented at the same level as previously.

The above snippet produces:

First glossary item

The text for the entry begins on a new line.

Second glossary item

The text on this line will be indented at the same level as previously.

Using <br>

'''First glossary item'''<br>The text for the entry follows the <br>.

''' Second glossary item'''<br>
The text on this line will be indented at the same level as previously.

The above snippet produces:

First glossary item
The text for the entry follows the <br>.

Second glossary item
The text on this line will be indented at the same level as previously.

Cross-References

To create a hyperlink to a glossary entry on the same page, the technique using anchors as illustrated by the following snippet can be used:

; {{anchor|Apple}} : Entry for Apple.
; {{anchor|Granny Smith}} : see [[#Apple|Apple]].

The above two lines produce:

Apple 
Entry for Apple.
Granny Smith 
see Apple.

If the glossary entry name conflicts with the name of another anchor on the same page, then specify a suitable name explicitly, along the lines of the following: {{anchor|GLOSSARY NAME|ANCHORNAME}}

See also

Personal tools