Template:MacroFunction: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Removed custom title.)
mNo edit summary
Line 39: Line 39:
=={{{name}}}() Function==
=={{{name}}}() Function==
{{#ifeq: {{{trusted|}}} | true | {{TrustedFunction}} |}}
{{#ifeq: {{{trusted|}}} | true | {{TrustedFunction}} |}}
{{#if: {{{version|}}} | <div>• '''Introduced in version {{{version|}}}'''</div> |}}
{{#if: {{{version|}}} | <div class="template_version">• '''Introduced in version {{{version|}}}'''</div> |}}
{{#if: {{{compatibility|}}} | <div>• '''Last checked for compatibility with version {{{compatibility|}}}'''</div> |}}{{{description|}}}
{{#if: {{{compatibility|}}} | <div class="template_compatibility">• '''Last checked for compatibility with version {{{compatibility|}}}'''</div> |}}{{{description|}}}
===Usage===
===Usage===
{{{usage}}}
{{{usage}}}
Line 46: Line 46:


===Example===
===Example===
{{{example|}}} |}}
<div class="template_example">{{{example|}}}</div> |}}
{{#if: {{{examples|}}} |
{{#if: {{{examples|}}} |


===Examples===
===Examples===
{{{examples|}}} |}}
<div class="template_examples">{{{examples|}}}</div> |}}
{{#if: {{{also|}}} |
{{#if: {{{also|}}} |
===See Also===
===See Also===
{{{also|}}} |}}
<div class="template_also">{{{also|}}}</div> |}}
{{#if: {{{changes|}}} |
{{#if: {{{changes|}}} |
===Version Changes===
===Version Changes===
{{{changes|}}} |}}
<div class="template_changes">{{{changes|}}}</div> |}}
<includeonly>[[Category:Macro Function]]__NOEDITSECTION__</includeonly><noinclude>[[Category:Templates]]
<includeonly>[[Category:Macro Function]]__NOEDITSECTION__</includeonly>
<noinclude>[[Category:Templates]]</noinclude>

Revision as of 05:41, 20 February 2019

Template Usage

Refer to Help:Editing for more detailed documentation.

Example

{{MacroFunction
|name=exampleFunction
|proposed=true
|deprecated=[[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}}}