Edgewall Software

Changes between Version 3 and Version 4 of 0.12/WikiMacros


Ignore:
Timestamp:
Apr 5, 2010, 9:39:49 PM (14 years ago)
Author:
Christian Boos
Comment:

4th argument args to expand_macro is None when the macro is called as a [[Macro()]] (fixed in r9199)

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/WikiMacros

    v3 v4  
    134134}}}
    135135
    136 Note that `expand_macro` optionally takes a 4^th^ parameter ''`args`''. When the macro is called as a [WikiProcessors WikiProcessor], it's also possible to pass `key=value` [WikiProcessors#UsingProcessors processor parameters]. If given, those are stored in a dictionary and passed in this extra `args` parameter (''since 0.12'').
    137 
    138 '''FIXME''' when called as a macro, `args` should be `None`.
     136Note that `expand_macro` optionally takes a 4^th^ parameter ''`args`''. When the macro is called as a [WikiProcessors WikiProcessor], it's also possible to pass `key=value` [WikiProcessors#UsingProcessors processor parameters]. If given, those are stored in a dictionary and passed in this extra `args` parameter. On the contrary, when called as a macro, `args` is  `None`. (''since 0.12'').
    139137
    140138For example, when writing: