
![]() |
Show Changes |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
| Search |
History
| 9/12/2007 3:42:33 PM |
| -10.10.192.22 |
| 9/12/2007 3:41:12 PM |
| -10.10.192.22 |
| 9/12/2007 3:39:52 PM |
| -10.10.192.22 |
| 9/12/2007 3:39:06 PM |
| -10.10.192.22 |
| 9/12/2007 3:35:51 PM |
| -10.10.192.22 |
![]() |
List all versions |
Related Topics
A function has three things:
WikiTalk uses the FlexWikiParameters feature to allow the creation of functions.
Note: It is apparently very important that there is no space between the ':' and the '{' after the parameter name.
:TwoColumnRow:{ parameterOne, parameterTwo |
[ "||{!}" , parameterOne , ":||", parameterTwo , "||" ]
}
@@TwoColumnRow("Header","Item1")@@
@@TwoColumnRow("Header","Item2")@@
@@TwoColumnRow("Header","Item3")@@
split into different @@ blocks
| Header: | Item1 |
| Header: | Item2 |
| Header: | Item3 |
in the same @@ block
| Header: | Item1 |
| Header: | Item2 |
| Header: | Item3 |
Here's a sample I agonized over for a while, scraped from _NormalBorders: (Wes Williamson - 2005/02/01)
![]() |
MSN |
![]() |
|
![]() |
|
![]() |
|
![]() |
| Header |
| Fixed Text |
I (BarryKelly) have struggled to get a looping construct to work. In the absence of variables, I've used recursive functions in a similar way to a functional language. For example:
:CountUpTo:{
n |
n.Equals(0)
.IfTrue { "" }
IfFalse { [ CountUpTo(n.Subtract(1)), Tab, "* ", n.ToString, Newline ] }
}
@@CountUpTo(10)@@
Gives:
You must be careful not to cause an infinte loop, or you'll need to restart aspnet_wp or w3wp on the web server.