Change Note For Anchor Tags And Page Properties
Last changed: -198.238.39.238

.
Owner
RequiredBuild
RelatedBugs
RelatedFeatureRequests
Summary
SeeAlso

Anchor Tags

The main aim of this ChangePacket is to provide an implementation for anchor tags. The implementation goes as follows:

  1. Any WikiPageProperty (including a HiddenWikiPageProperty 1) is wrapped in an anchor tag (<a name="NameOfProperty">...</a>).
  2. The referenced anchor is displayed in the rendered page, so HomePage#Anchor is rendered as HomePage#Anchor and will be a link to the relevant bookmark on that topic page. 2
  3. Referenced anchors will not be rendered in the page for topic links that do not exist yet, so NonexistentPage#Anchor would be rendered as NonexistentPage.
  4. Referenced anchors will not be rendered in the page for relabelled topic links, so Relabel would be rendered as Relabel.

1 As there is nothing to wrap for a HiddenWikiPageProperty an empty anchor will be rendered in the HTML.

2 No checks are done to ensure the specified anchor exists. If it does not then the browser will display the page at the top.

Page Property Bugs

The two related bugs are that multiline hidden properties didn't work properly (only the first line was hidden) and that wiki formatting in properties didn't work. Both of these bugs have been resolved in this ChangePacket 3

3 Headings, tables and lists are not formatted in single line page properties and for the part of a multiline page property that is on the same line as the property declaration.

E.g.

 SingleLine: !Heading1

Will not be formatted.

 Multline:[ !Heading1
 !!Heading2
 ]

In this one !Heading1 will not be formatted, !!Heading2. However, the desired result can be achieved as follows:

 Multline:[
 !Heading1
 !!Heading2
 ]

Extras

This ChangePacket also makes some minor changes to the wiki.css file to format page properties wrapped in anchors so they don't turn in to links and to stop the text in multiline page properties from getting progressively smaller. And it fixes a bug in Array.Unique when array elements are arrays themselves.