Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
Linksauthors (basic)
A key feature of Wiki Wiki Webs is the ease of creating hyper links in the text of a document. Pm Wiki provides multiple mechanisms for creating such links. Links to other pages in the wikiTo create a link to another page, simply enclose the name of the page inside double square brackets, as in Pm Wiki creates a link by using the text inside the double brackets. It does this by removing spaces between words, and automatically capitalizing words following spaces or other punctuation (like ~). Thus In other words, Pm Wiki will automatically create the link path name using title case as a rule, but link text will display in the format you have entered it. A suffix can also be added to the end of a link, which becomes part of the link text but not the target. Thus Link text in (parentheses) will not be not displayed, so that Finally, you can specify the link text via a vertical brace, thus Some sites also recognize WikiWord links, in which a camel case (capitalised) WikiWord appearing in the text is automatically treated as a link to a page of the same name. Link shortcutsUse of special characters in title is not a problem for Pm Wiki, but sometimes the character set is different from your computer and the server computer or the client computer that is used to read your wiki. Specially UTF-8 gives some problems. So it's better not to use these and keep ASCII characters if possible. Any page can have a (:title <name>:) directive to display a localized title instead of the page file name. In this case, the following tip is important and usefull.
Links to specific locations within a page -- "anchors"To define a location within a page to which you may jump directly, use the markup
For example, here's a link to the Intermaps section, below. Notes:
Links to actionsTo link to a specific action for the current page use Examples:
Links outside the wikiLinks to external sites (URLs)Links to external sites simply begin with a prefix such as 'http:', 'ftp:', etc. Thus If the external link includes (parentheses), escape these using %28 for "(" and %29 for ")" :
Links to intranet (local) filesYou can link to a file system by including the prefix Link characteristicsLinks as ReferencesLinks may also be specified as References, so the target appears as an anonymous numeric reference rather than a textual reference. The following markup is provided to produce sequential reference numbering within a Pm Wiki page: Formatting the link as: Subsequent occurrence of the reference link format on the same page will be incremented automatically as per the following example: Entering IntermapsInter Map links are also supported (see Inter Map). In particular, the Links to pages in other wiki groupsSee Wiki Group. Links that open a new browser windowTo have a link open in another window, use
You can also specify that links should open in a new window via the
Links that are not followed by robotsPrefix a link with %rel=nofollow% to advise robots and link checkers not to follow it. Links and CSS ClassesPm Wiki automatically gives classes to several types of links. Among other things, this enables you to format each type differently. Note: This may be an incomplete list.
NotesNote: The default behavior of "+" above can be overridden to display the spaced title, rather than simply the title by adding the following to config.php: ## [[target |+]] title links Markup('[[|+', '<[[|', "/(?>\\[\\[([^|\\]]+))\\|\\s*\\+\\s*]]/e", "Keep(MakeLink(\$pagename, PSS('$1'), PageVar(MakePageName(\$pagename,PSS('$1')), '\$Titlespaced') ),'L')"); How do I create a link that will open as a new window? Use the
How do I create a link that will open a new window, and configure that new window? This requires javascript. See Cookbook:PopupWindow. How do I place a mailing address in a page? Use the
The markup See also Cookbook:DeObMail for information on protecting email addresses from spammers. How can I enable links to other protocols, such as nntp:, ssh:, xmpp:, etc? How do I make a Wiki Word link to an external page instead of a Wiki Page? Use link markup. There are two formats: [[http://example.com/ | WikiWord]] [[WikiWord -> http://example.com/]] How do I find all of the pages that link to another page (i.e., backlinks)? In the wiki search form, use Use the (:pagelist link=SomePage list=all:) -- show all links to SomePage (:pagelist link={$FullName} list=all:) -- show all links to the current page What link schemes does Pm Wiki support? How do I open external links in a new window or mark them with an icon? How can I use an image as a link? Use [[Page| Attach:image.jpg ]] or [[ http://site | http://site/image.jpg ]] See Images#links This page may have a more recent version on pmwiki.org: PmWiki:Links, and a talk page: PmWiki:Links-Talk. |