Changes between Version 2 and Version 3 of WikiMacros
- Timestamp:
- Mar 22, 2004, 3:38:52 AM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiMacros
v2 v3 3 3 4 4 Another kind of macros are WikiProcessors. They typically deal with alternate markup formats and representation of larger blocks of information (like source code highlighting). See also: WikiProcessors. 5 6 == Using Macros == 7 Macro calls are enclosed in two ''square brackets''. Like python functions, macros can also have arguments, a comma separated list within parenthesis. 8 9 === Examples === 10 11 {{{ 12 [[Timestamp]] 13 }}} 14 Display: 15 [[Timestamp]] 16 17 {{{ 18 [[HelloWorld(Testing)]] 19 }}} 20 Display: 21 [[HelloWorld(Testing)]] 22 5 23 6 24 == Available Macros == … … 10 28 * '''!HelloWorld''' -- An example macro, useful for learning how to write macros. 11 29 * '''Timestamp''' -- Insert the current date and time. 12 13 === Examples ===14 !HelloWorld:15 [[HelloWorld(Testing)]]16 17 Timestamp:18 [[Timestamp]]19 30 20 31 … … 48 59 49 60 Example: 61 50 62 {{{ 51 63 def execute(hdf, args):