# Changes between Version 4 and Version 5 of WikiMacros

Ignore:
Timestamp:
Apr 18, 2013 10:02:31 AM (9 years ago)
Comment:

--

Unmodified
Removed
Modified
• ## WikiMacros

 v4 [[PageOutline]] Trac macros are plugins to extend the Trac engine with custom 'functions' written in Python. A macro inserts dynamic HTML data in any context supporting WikiFormatting. Trac macros are plugins to extend the Trac engine with custom 'functions' written in Python. A macro inserts dynamic HTML data in any context supporting WikiFormatting. Its syntax is [[macro-name(optional-arguments)]]. Another kind of macros are WikiProcessors. They typically deal with alternate markup formats and representation of larger blocks of information (like source code highlighting). The WikiProcessors are another kind of macros. They typically deal with alternate markup formats and transformation of larger "blocks" of information (like source code highlighting). They are used for processing the multiline {{{#!wiki-processor-name ... }}} blocks. == Using Macros == The list of available macros and the full help can be obtained using the !MacroList macro, as seen [#AvailableMacros below]. A brief list can be obtained via ![[MacroList(*)]] or ![[?]]. A brief list can be obtained via [[MacroList(*)]] or [[?]]. Detailed help on a specific macro can be obtained by passing it as an argument to !MacroList, e.g. ![[MacroList(MacroList)]], or, more conveniently, by appending a question mark (?) to the macro's name, like in ![[MacroList?]]. Detailed help on a specific macro can be obtained by passing it as an argument to !MacroList, e.g. [[MacroList(MacroList)]], or, more conveniently, by appending a question mark (?) to the macro's name, like in [[MacroList?]].

[[Image]]

Embed an image in wiki-formatted text. The first argument is the file â€¦ The first argument is the file …

[[InterTrac]]

Provide a list of known InterTrac prefixes.

[[InterWiki]]

Provide a description list for the known InterWiki prefixes.

[[KnownMimeTypes]]

List all known mime-types which can be used as WikiProcessors. Can be â€¦ Can be … }}} etc. For example, when writing: {{{ {{{#!HelloWorld style="polite" {{{#!HelloWorld style="polite" -silent verbose }}} One should get: {{{ Hello World, text = , args = {'style': u'polite'} Hello World, text = , args = {'style': u'polite', 'silent': False, 'verbose': True} Hello World, text = , args = {} Hello World, text = , args = None