Template:MacroFunction: Difference between revisions
Jump to navigation
Jump to search
(Fixed "bug" where the "see also" section depended on a parameter called "related" instead of "also") |
Verisimilar (talk | contribs) (Added proposed parameter, updated example.) |
||
Line 5: | Line 5: | ||
<pre>{{MacroFunction | <pre>{{MacroFunction | ||
|name=exampleFunction | |name=exampleFunction | ||
|proposed=true | |||
|trusted=true | |trusted=true | ||
|version=1.3b50 | |version=1.3b50 | ||
Line 34: | Line 35: | ||
}}</pre> | }}</pre> | ||
</noinclude> | </noinclude> | ||
{{#ifeq: {{{proposed|}}} | true | {{ProposedChange}} |}} | |||
=={{{name}}}() Function== | =={{{name}}}() Function== | ||
{{#ifeq: {{{trusted|}}} | true | {{TrustedFunction}} |}} | {{#ifeq: {{{trusted|}}} | true | {{TrustedFunction}} |}} |
Revision as of 19:58, 8 March 2009
Template Usage
Refer to Help:Editing for more detailed documentation.
Example
{{MacroFunction |name=exampleFunction |proposed=true |trusted=true |version=1.3b50 |compatibility=1.3b52 |description= This is an example function. It doesn't actually exist as a function in MapTool. |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. }}
{{{name}}}() Function
Usage
{{{usage}}}