Template:MacroEvent: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Initial template.)
 
No edit summary
 
Line 55: Line 55:
{{{changes|}}}
{{{changes|}}}
</div> |}}
</div> |}}
[[Category:Events]]__NOEDITSECTION__</includeonly>
[[Category:Macro Function]][[Category:Events]]__NOEDITSECTION__</includeonly>
<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 03:18, 21 June 2021

Template Usage

You should always write the description as though the words "This event..." are automatically supplied by the template.

Refer to Help:Editing for more detailed documentation.

Example

{{MacroEvent
|name=onEventTrigger
|proposed=true
|deprecated=[[onNewTrigger]]
|version=1.5.2
|compatibility=1.9.0
|description=Refers to some MapTool event which triggers a macro. This example of course doesn't refer to any real event, but it will when you use this template! "&nbsp;"
{{__TOC__}}
|usage=
Set a macro on a library token named <code>onEventTrigger</code> and the macro code will execute whenever the event occurs.
|example=
The following macro code would cause the text "Triggered!" to broadcast every time this fake event happens in game:
<source lang="mtmacro" line>
[r: broadcast("Triggered!")]
</source>

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

|changes=
* '''1.5.2''' - Introduced.
}}

Source

Edit this section to view template source.