Template:MacroFunction: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Added NOEDITSECTION since it links to editing the template on function pages. Added DISPLAYTITLE.)
Line 12: Line 12:
|description=
|description=
This is an example function.  It doesn't actually exist as a function in MapTool.
This is an example function.  It doesn't actually exist as a function in MapTool.
 
{{__TOC__}}
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
Line 57: Line 57:
===Version Changes===
===Version Changes===
{{{changes|}}} |}}
{{{changes|}}} |}}
<includeonly>[[Category:Macro Function]]</includeonly>
<includeonly>[[Category:Macro Function]]
{{__NOEDITSECTION__}}{{DISPLAYTITLE:{{{name}}}()}}</includeonly>

Revision as of 15:01, 12 March 2009

Template Usage

Refer to Help:Editing for more detailed documentation.

Example

{{MacroFunction
|name=exampleFunction
|proposed=true
|depreciated=[[newFunction|newFunction()]]
|trusted=true
|version=1.3b50
|compatibility=1.3b52
|description=
This is an example function.  It doesn't actually exist as a function in MapTool.
{{__TOC__}}
|usage=
<source lang="mtmacro" line>
exampleFunction(param1, param2)
</source>

|example=
This example doesn't really do anything.
<source lang="mtmacro" line>
[h: exampleVariable = "a,b,c"]
[r: exampleFunction(exampleVariable, reverse)]
</source>
Returns:
<source lang="mtmacro" line>
c,b,a
</source>

|also=
[[linkToRelatedArticle|Display Name of Related Article]]

|changes=
* '''1.3b52''' - Added reverse parameter.
}}

Source

{{{name}}}() Function

Usage

{{{usage}}}