wiki:HowtoLinkWikipages

How to link wiki pages together

In general, wiki links are written like this:

More details are found [[SomeArticle|in this article]].

which is displayed as:

More details are found in this article?.

Note however that this platform makes extensive use of hierarchical wiki pages:

Wiki pages can be stored in hierarchies. An example:

Hicdep 1.50 is the main article for the Hicdep_1.50/ hierarchy. This means that Hicdep_1.50/TableArt is a sub-article of Hicdep_1.50 and Hicdep_1.50/TableArt/FieldArtId is a sub-article of Hicdep_1.50/TableArt

It is important to understand this when linking wiki articles, because by default a link points to an article in the same hierarchy level. An example:

linking to higher-level articles

Writing the following in Hicdep_1.50/TableArt/FieldArtId:

[[TableVis|tblVIS]]

would create a link to the article Hicdep_1.50/TableArt/TableVis? instead of Hicdep_1.50/TableVis because they are not on the same hierachy level.

To account for this, we need to tell the wiki that we would reference an article one level higher:

[[../TableVis|tblVIS]]

linking to lower-level articles

The same problem arises when referencing articles on a lower hierarchy level:

Writing the following in Hicdep_1.50/TableArt:

[[FieldArtId|ART_ID]]

will link to the article Hicdep_1.50/FieldArtId? instead of Hicdep_1.50/TableArt/FieldArtId.

To account for this, we need to tell the wiki that we would reference an article one level lower:

[[./FieldArtId|ART_ID]]

or (alternatively):

[[TableArt/FieldArtId|ART_ID]]
Last modified 6 years ago Last modified on 01/14/11 13:44:18