Edgewall Software

Changes between Version 11 and Version 12 of WikiMacros


Ignore:
Timestamp:
Jul 28, 2005, 5:40:12 PM (19 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WikiMacros

    v11 v12  
    55
    66== 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.
     7Macro calls are enclosed in two ''square brackets''. Like python functions, macros can also have arguments, a comma separated list within parentheses.
    88
    99=== Examples ===
     
    5959def execute(hdf, args, env):
    6060    # Currently hdf is set only when the macro is called
    61     # From a wiki page
     61    # from a wiki page.
    6262    if hdf:
    6363        hdf.setValue('wiki.macro.greeting', 'Hello World')
    6464       
    65     # args will be null if the macro is called without parenthesis.
     65    # args will be null if the macro is called without parentheses.
    6666    args = args or 'No arguments'
    6767    return 'Hello World, args = ' + args