Topic Property Table
Last changed: -76.30.20.161

.

I don't like the standard way FlexWiki displays TopicProperties. It takes up too much valuable screen space. So I made a tabular version.

First, define your properties using the hidden property syntax.

:Owner:JamesRoeSmith
:Age:35
:EyeColour:Blue

Then include a call to the TopicPropertyTable WikiTalk method.

 @@TopicPropertyTable(topic,["Owner","Age","EyeColour"])@@
Property Value
Topic TopicPropertyTable
Owner JamesRoeSmith
Age 35
EyeColour Blue

The TopicPropertyTable WikiTalk method is as follows:

:TopicPropertyTable:{ thistopic, listofproperties |
		[
				"||{!}*Property*||{!}*Value*||", Newline,
				"||{!}%purple%*Topic*%%||", "[", thistopic.Name, "]", "||", Newline,
				listofproperties.Collect { thisproperty |
						[
								"||{!}*", thisproperty, "*||", thistopic.GetProperty(thisproperty), "||", Newline,
						]
				}
		]
}