Template:MacroFunction: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) mNo edit summary |
Verisimilar (talk | contribs) (→Example: Updated to reflect previous parameter additions.) |
||
Line 23: | Line 23: | ||
==Template Usage== | ==Template Usage== | ||
===Example=== | ===Example=== | ||
All parameters are optional, except '''|name=''' and '''|usage='''. You can use '''|example=''' or '''|examples=''' depending on the number of examples you intend to supply. | |||
<pre>{{MacroFunction | <pre>{{MacroFunction | ||
|name=NameOfMacro | |name=NameOfMacro | ||
|trusted=true | |||
|version=X.Y | |version=X.Y | ||
|compatibility=X.Y | |||
|description= | |description= | ||
NameOfMacro is an example of a macro function. It doesn't actually exist as a function in MapTool. | NameOfMacro is an example of a macro function. It doesn't actually exist as a function in MapTool. | ||
Line 34: | Line 37: | ||
</source> | </source> | ||
| | |example= | ||
This example doesn't really do anything. | This example doesn't really do anything. | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 01:20, 7 March 2009
Function {{{name}}}
Usage
{{{usage}}}
Template Usage
Example
All parameters are optional, except |name= and |usage=. You can use |example= or |examples= depending on the number of examples you intend to supply.
{{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. }}