Creates a link to a WikiPage. This also works with WikiAttachments, that is, if the page you are referring to is an attachment, it will generate the correct link.
Why would you use this instead of a standard anchor? The LinkTag automatically adds things like the correct class information (for styles), the jspwiki.baseURL property, attachment links, etc.
Provides a generic link tag for all kinds of linking purposes.
If parameter jsp is defined, constructs a URL pointing to the specified JSP page, under the baseURL known by the WikiEngine. Any ParamTag name-value pairs contained in the body are added to this URL to provide support for arbitrary JSP calls.
See also: JSPWikiTags, LinkToTag, LinkToParentTag, CommentLinkTag, EditLinkTag, DiffLinkTag, PageInfoLinkTag, UploadLinkTag.
Usage#
<wiki:Link page="<page name>" format="anchor|url" version="<version number>"> <wiki:Param name='skin' value='raw'/> Link text </wiki:Link>
Parameters#
- page
- Page name to link to. If not set, uses the current page.
- format
- If "anchor", creates the full hyperlink (<a href="...">link text</a>); if "url", outputs only the URL.
- templatefile
- String key
- accessKey
- String key
- absolute
- String arg
- version
- Links to a specific version of a page. If not set, links to the latest version of the page. Can be "latest" to refer to the latest version; or "current" to refer to the current version; or "previous" to link to the previous version.
- cssClass
- String arg
- style
- String style
- title
- String title
- target
- String target
- compareToVersion
- Can be latest to refer to the latest version; or current to refer to the current version; or previous to link to the previous version.
- rel
- String rel
- ref
- String wiki reference; can be a regular pagename, InterWiki reference, a internal named section reference, footnote reference, attachment reference.
- jsp
- String jsp
- context
- String context
Example#
Please see the <wiki:Link page="RecentChanges">list of recently changed pages</wiki:Link>.