DiffLinkTag

Search SINQ Wiki:
SINQ LIN

SINQ Wiki
- Main Page
- Search SINQ Wiki
- Sample Environment
- Probenumg. Intern
- Troubleshooting SICS

This Page
- Page Info
- Printer Friendly

Referenced by
JSPWikiTags

Wiki Info
- Unused pages
- Undefined pages
- RecentChanges
- Page Index
- System Info
- JSPWiki Docu
- SandBox
- OneMinuteWiki
- Create a New Page




JSPWiki v2.0.52


Creates a link to a diff of a WikiPage?.

Why would you use this instead of a standard anchor? The LinkToTag automatically adds things like the correct class information (for styles), the jspwiki.baseURL property, etc.


Usage

<wiki:DiffLink page="<page name>" format="anchor|url" version="<version number>" newVersion="<version number>">

Link text
</wiki:DiffLink>

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.
version
The older version of the page. Can be "latest" to refer to the latest version; or "previous" to link to the previous version.
newVersion
The newer version of the page. Can be "latest" to refer to the latest version; or "previous" to link to the previous version.

Example

<i>
This page was last changed on 
<wiki:DiffLink version="latest" newVersion="previous">
    <wiki:PageDate/>
</wiki:DiffLink> 
by <wiki:Author />.
</i>

Displays a text similar to the bottom of this page.


Printer Friendly  Page Info
This page last changed on 19-Mar-2003 22:09:46 UTC by unknown.