Jun 15, 2026

PmWiki

PmWiki

pmwiki.org

edit SideBar

Search

Wikiトレイル

authors (basic)

(訳注:trail ã¯ã€ã“ã®ãƒšãƒ¼ã‚¸ã«ã‚‚ã‚るよã†(<< Group headers | DocumentationIndex | Page history >> ãªã©ã®éƒ¨åˆ†)ã«ã€ãƒšãƒ¼ã‚¸ã‚’é †åºä»˜ã‘ã¦é †ç•ªã«ãŸã©ã‚‹ã“ã¨ãŒå‡ºæ¥ã‚‹æ©Ÿèƒ½ã®ã‚ˆã†ã§ã™ã€‚ãã®ã¾ã¾ã€Œé“ã€ãªã©ã¨è¨³ã™ã¨ãªã‚“ã¨ãªãã‚ã‹ã‚Šã¥ã‚‰ããªã‚‹ã¨æ€ã£ãŸã®ã§ã€Œãƒˆãƒ¬ã‚¤ãƒ«ã€ã¨ã—ã¦ã„ã¾ã™ã€‚)

The WikiTrails feature allows wiki authors to create "trails" through sequences of pages in the wiki.

WikiTrails 機能ã§ã€wiki 作者ã¯ã€wiki ã®ãƒšãƒ¼ã‚¸ã®ä¸¦ã³é †ã‚’通る"トレイル(é“)"を作æˆã—ã¾ã™ã€‚

Creating a trail トレイルを作る

Before 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:

  1. PITS?
    1. 00895?
RoadMap?
ChangeLog? (This won't be in the trail because it is preceded by text)

creates the following "wikitrail":

トレイルインデックスページã®ä¾‹:

  • Installation? how to install
  • The Installation Page?
  • PmWiki 若干ã®ä»–ã®ãƒ†ã‚­ã‚¹ãƒˆ PmWikiPhilosophy? (テキストã®å¾Œã«ã‚ã‚‹ã®ã§ã€å¾Œè€…ã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã¯ã‚りã¾ã›ã‚“。)
  • 別ã®è‹¥å¹²ã®ä»–ã®ãƒ†ã‚­ã‚¹ãƒˆã€‚ PmWikiFeatures? (テキストã®å¾Œã‚ã«ç¶šãã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã‚りã¾ã›ã‚“。)
  • Download (%centre%スタイルã§å§‹ã¾ã£ã¦ã„ã‚‹ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã‚りã¾ã›ã‚“。)
  • PmWiki.WikiStyles
  • 若干ã®ãƒ†ã‚­ã‚¹ãƒˆ (リンクã§ã¯ãªã„ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã‚りã¾ã›ã‚“。)
  • PageLists
  • http://pmwiki.org (ページリンクã§ã¯ãªã„ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã‚りã¾ã›ã‚“。)
  • PmWiki:InterMap (InterMapリンクãªã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã‚りã¾ã›ã‚“。)
  • Cookbook
  • Security? ((ä¸å¯è¦–ã®)アンカーã®å¾Œã«ã‚ã‚‹ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã¯ã‚りã¾ã›ã‚“。)
  • Links? ((ä¸å¯è¦–ã®) %newwin% スタイルã®å¾Œã«ã‚ã‚‹ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã¯ã‚りã¾ã›ã‚“。)
  • Troubleshooting ((ä¸å¯è¦–ã®)斜体スタイルã®å¾Œã«ã‚ã‚‹ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã¯ã‚りã¾ã›ã‚“。)
  1. PITS?
    1. 00895?
RoadMap?
ChangeLog? (テキストã®å¾Œã«ã‚ã‚‹ã®ã§ã€ã“れã¯ãƒˆãƒ¬ã‚¤ãƒ«ã«ã¯ã‚りã¾ã›ã‚“。)

以下㮠"wikitrail" を作æˆã—ã¾ã™:

Observations 観察

  1. In general, indentation levels in the page list don't matter -- trails are a linear sequence of pages.
  2. A page is part of the trail only if the page link immediately follows the list markup.
  3. 一般ã«ã€ãƒšãƒ¼ã‚¸ãƒªã‚¹ãƒˆã®ã‚¤ãƒ³ãƒ‡ãƒ³ãƒˆãƒ¬ãƒ™ãƒ«ã¯ã€é‡è¦ã§ã‚りã¾ã›ã‚“ -- トレイルã¯ã€ãƒšãƒ¼ã‚¸ã®é€£ç¶šã—ãŸé †åºã§ã™ã€‚
  4. ページリンクãŒãƒªã‚¹ãƒˆãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—ã®ç›´å¾Œã«ç¶šãå ´åˆã ã‘ã€ãƒšãƒ¼ã‚¸ã¯ãƒˆãƒ¬ã‚¤ãƒ«ã®ä¸€éƒ¨ã§ã™ã€‚

Using the trail トレイルを使ã†

What 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 <<|[[TrailIndexPage]]|>> to a page, where TrailIndexPage is the page, described above, containing the bulleted list of pages in the trail. PmWiki will display the trail markup with links to any previous and next pages in the trail.

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.

トレイルを「åƒã‹ã›ã€ã‚‹ã«ã¯ã€ãƒˆãƒ¬ã‚¤ãƒ«ä¸Šã®ãƒšãƒ¼ã‚¸ï¼ˆã™ãªã‚ã¡ã€ãƒˆãƒ¬ã‚¤ãƒ«ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ãƒšãƒ¼ã‚¸ã®ç‚¹/番å·ä»˜ãリストã«ãƒªã‚¹ãƒˆã•れるページ)ã«ã€ãƒˆãƒ¬ã‚¤ãƒ«ãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—を加ãˆã¾ã™ã€‚

トレイルを造るãŸã‚ã«ã¯ã€<<|[[TrailIndexPage]]|>> ã®ã‚ˆã†ãªãƒˆãƒ¬ã‚¤ãƒ«ãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—をページã«åŠ ãˆã¦ãã ã•ã„。TrailIndexPage ã¯ã€ä¸Šè¨˜ã®ãƒˆãƒ¬ã‚¤ãƒ«ä¸Šã®ãƒšãƒ¼ã‚¸ã‚’点付ãリストã¨ã—ã¦å«ã‚“ã§ã„るページã§ã™ã€‚PmWiki ã¯ã€ãƒˆãƒ¬ã‚¤ãƒ«ãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—をトレイル上ã®ä½•れã‹ã®å‰ã€ã¾ãŸã¯ã€å¾Œã‚ã®ãƒšãƒ¼ã‚¸ã¸ã®ãƒªãƒ³ã‚¯ã¨ã—ã¦è¡¨ç¤ºã—ã¾ã™ã€‚

トレイルマークアップã¯ã€ãƒšãƒ¼ã‚¸ã®ã©ã“ã«ã§ã‚‚é…ç½®ã™ã‚‹ã“ã¨ãŒã§ãã€ãã—ã¦ã€è¤‡æ•°ã®ãƒˆãƒ¬ã‚¤ãƒ«ãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—ã‚’å«ã‚€ã“ã¨ãŒå‡ºæ¥ã¾ã™ã€‚ã‚‚ã—ã€ã‚°ãƒ«ãƒ¼ãƒ—ã®å…¨ã¦ã®ãƒšãƒ¼ã‚¸ã«ãƒˆãƒ¬ã‚¤ãƒ«ã‚’追加ã™ã‚‹ãªã‚‰ã°ã€ã‚°ãƒ«ãƒ¼ãƒ—ã®å€‹ã€…ã®ãƒšãƒ¼ã‚¸å…¨ã¦ã®ä»£ã‚りã«ã€GroupHeader? ã‚„ GroupFooter ページã«ãƒˆãƒ¬ã‚¤ãƒ«ãƒžãƒ¼ã‚¯ã‚¢ãƒƒãƒ—を設定ã™ã‚‹ã“ã¨ã‚’考ãˆã¦ãã ã•ã„。

Trail types トレイルã®ã‚¿ã‚¤ãƒ—

PmWiki defines 2 trail markups:

  • <<|[[TrailIndexPage]]|>> displays as "<< PreviousPage | TrailIndexPage | NextPage >>".
  • <|[[TrailIndexPage]]|> displays as "< PreviousPage | TrailIndexPage | NextPage >", except the appropriate arrow is omitted at the beginning and end of the trail.

Path trail

^|[[TrailIndexPage]]|^ treats the list levels as a hierarchy and displays the "path" to reach the current page (i.e., a "breadcrumb" trail). In the example trail above, the markup ^|TrailIndexPage|^ on TrailPage4 would display as "TrailIndexPage | TrailPage2 | TrailPage4".

Wiki administrators can change the trail separator of the "path" trail ( ^|[[TrailIndexPage]]|^ ) from the default | by setting the variable $TrailPathSep in the config.php file. For instance $TrailPathSep = ' > '; will output "TrailIndexPage > TrailPage2 > TrailPage4".

Circular trails

Typically, 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 %item comment%:

    
    * [[TrailPage1]]
    * [[TrailPage2]]
    ...
    * [[TrailPageN]]
    * [[TrailPage1]] %item comment%

Cross Group Trails

Trail pages on both sides of group boundaries must be fully qualified with group names.

Other notes

Trail style

The %trail% markup that is used in many of PmWiki's documentation pages is just a WikiStyle? that creates a grey background, and is not required for WikiTrails to work. It's defined in the PmWiki.GroupHeader page. Q: Is there a Site.GroupHeader where the style can be declared for all groups and pages

To get it to work, you must create the index page for the trail and the trail pages as stated above. Then you must define the wikistyle you want in the groupheader of the group you want it to appear in. Then you must refer or call to it with the %trail% markup from the trail pages.

Trail in page lists?

Trails from a single page only can be displayed using the pagelist trail parameter. For example

(:pagelist trail=PmWiki/WikiTrails fmt=PmWiki.WikiTrails#traillist order=random count=1:)

<< | DocumentationIndex? | >>

Page Actions

Recent Changes

Group & Page

Back Links