|
PmWiki /
WikiTrailsauthors (basic)
Table of contentsThe WikiTrails feature allows wiki authors to create "trails" through sequences of pages in the wiki. The idea is explained in Vannevar Bush's 1945 article As We May Think(approve links), section 7, which describes an implementation using microfilm inspired by the trails of association in human thinking: . . . at any time, when one of these items is in view, the other can be instantly recalled merely by tapping a button below the corresponding code space. Moreover, when numerous items have been thus joined together to form a trail, they can be reviewed in turn, rapidly or slowly . . . . It is exactly as though the physical items had been gathered together to form a new book. It is more than this, for any item can be joined into numerous trails.
Creating a trailBefore you can use a trail through a group of pages, you have to create a "trail index" on a separate page, which we will call the "trail index page". On that trail index page, you simply create a numbered or bulleted list of links. (So every numbered or bulleted list of links implicitly creates a trail.) It is important that each page name (link) be the first item following each bullet. An example trail index page might contain:
creates the following "wikitrail", using pagelist to display it:
Observations
Trail typesPmWiki defines 2 trail markups:
Trail link syntaxThe trail link has the same syntax as a standard link, this means for example you can specify
Trail links can be restricted by anchors (links to a specific location within a page), this means you can have more than one trail on a page, or start a trail from a specific location in a page.
Using the trailWhat makes a trail "work" is adding trail markup on the pages in the trail (i.e. the pages that are listed in the bullet/numbered list on the trail index page). To build a trail, add trail markup like The trail markup can be placed anywhere in a page, and a page can contain multiple trail markups. If you are adding a trail to every page in a group, consider setting the trail markup in the GroupHeader or GroupFooter pages instead of on every individual page in your group. Path trail
Wiki administrators can change the trail separator of the "path" trail ( Circular trailsTypically, a trail is a linear list with a first and a last page. However, the trail can be made "circular" by repeating the first page as the last item in the trail index: * [[TrailPage1]] * [[TrailPage2]] ... * [[TrailPageN]] * [[TrailPage1]] If the trail index page is intended to be read by others, the last item can be made invisible using * [[TrailPage1]] * [[TrailPage2]] ... * [[TrailPageN]] * [[TrailPage1]] %item comment% Cross Group TrailsTrail pages on both sides of group boundaries must be fully qualified with group names. Other notesTrail stylePmWiki encapsulates the trail with a wikitrail css class. This allows the wiki trail to be customised by defining CSS for the wikitrail in the local.css file. Trail in page listsTrails from a single page can only be displayed using the pagelist trail parameter. For example
QuestionsHow can the trail be made to start at (or from) the "parent page"? That is the first trail markup should be visible on the "parent page". In the example below the next and prev pages should show as (arbitrarily) the first and last pages on the trail (excluding any loop entry).
Why doesn't my trail show up? Don't provide link text or title markup. (This is probably a bug for feature that needs a PITS. entry).
|