Template:MacroFunction: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) mNo edit summary |
m (Moved note about optional parameters out of the "Example" section.) |
||
Line 20: | Line 20: | ||
<noinclude> | <noinclude> | ||
==Template Usage== | ==Template Usage== | ||
All parameters are optional, except '''|name=''' and '''|usage='''. You can use '''|example=''' or '''|examples=''' depending on the number of examples you intend to supply. | |||
===Example=== | ===Example=== | ||
<pre>{{MacroFunction | <pre>{{MacroFunction | ||
|name=NameOfMacro | |name=NameOfMacro |
Revision as of 18:32, 7 March 2009
{{{name}}}() Function
Usage
{{{usage}}}
Template Usage
All parameters are optional, except |name= and |usage=. You can use |example= or |examples= depending on the number of examples you intend to supply.
Example
{{MacroFunction |name=NameOfMacro |trusted=true |version=X.Y |compatibility=X.Y |description= NameOfMacro is an example of a macro function. It doesn't actually exist as a function in MapTool. |usage= <source lang="mtmacro" line> [h: NameOfMacro()] </source> |example= This example doesn't really do anything. <source lang="mtmacro" line> [h: NameOfMacro()] </source> |changes= In version X.N this function also didn't exist. }}