Show Changes Show Changes
Edit Edit
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

6/3/2005 8:07:01 AM
-193.122.14.126
6/3/2005 8:06:36 AM
-193.130.145.98
6/1/2005 11:23:36 AM
-62.65.194.43
12/16/2004 5:41:05 AM
-213.26.52.195
12/14/2004 9:38:45 AM
-131.107.71.96
List all versions List all versions

RSS feed for the FlexWiki namespace

Tip For Adding Headings To Wiki Talk Tables
.

Here is a WikiTalk function that makes a table of namespaces and their topic counts.

NamespaceAndTopicCounts

This produces output like so. (This site has only one namespace so there is only one row.) This is called a behavior invocation and is done with double @ signs.

FlexWiki 1561
Playground 2
TestJwd 471
WebLog 17
WebLogDiscuss 10
WikiTalkLibrary 5
DevDiscuss 44

Now if we want to put some titles on this output we might expect to just type it in text in front of the behaveior invocation.

Namespace Topic Count
FlexWiki 1561
Playground 2
TestJwd 471
WebLog 17
WebLogDiscuss 10
WikiTalkLibrary 5
DevDiscuss 44

Oops, it didn't connect the heading and the table. That is because the behavior invocation generates what appears to be an extra Newline before its output.

Let's try putting the invocation on the same line as the headings.

||Namespace||Topic Count||

FlexWiki 1561
Playground 2
TestJwd 471
WebLog 17
WebLogDiscuss 10
WikiTalkLibrary 5
DevDiscuss 44

Darn, that doesn't work either. The invocation interferes with the table markup recognition.

We need to generate the headings and the table at the same time. We can do this by hacking the invocation or by writing a new function to do the hacking.

NamespaceAndTopicCountsWithHeading

When we invoke this function, we get the headings and the data together. Notice that the Newline is required, because it is not our function that is generating the extra Newline, but the behavior invocation.

Namespace Topic Count
FlexWiki 1561
Playground 2
TestJwd 471
WebLog 17
WebLogDiscuss 10
WikiTalkLibrary 5
DevDiscuss 44

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics