listFormat: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
Verisimilar (talk | contribs) m (Macros:Functions:listFormat moved to listFormat) |
(No difference)
|
Revision as of 02:49, 9 March 2009
listFormat() Function
Returns a custom-formatted version of the list.
Usage
[ listFormat(list, listFormat, itemFormat, separator) ]
[ listFormat(list, listFormat, itemFormat, separator, delim) ]
- listFormat is a string that is emitted once. It should contain the text "%list", which is replaced with the formatted items.
- itemFormat is emitted once per item. Each instance of "%item" in the string is replaced with the value of the list item.
- separator is emitted in between the formatted items.
Example
[ listFormat("apple,bear,cat", "BEGIN LIST<br>%list<br>END LIST", "This item is: %item", "<br>") ]