Difference between revisions of "Template:API parameter/doc"
From Roll20 Wiki
(Created page with "Displays a parameter to an API command for use with API script syntax descriptions. == Usage == Parameters can be optional or required. Indicate that the parameter is option...") |
m |
||
Line 15: | Line 15: | ||
| <code><nowiki>{{API parameter|name=my-optional-parameter|optional=true}}</nowiki></code> | | <code><nowiki>{{API parameter|name=my-optional-parameter|optional=true}}</nowiki></code> | ||
| {{API parameter|name=my-optional-parameter|optional=true}} | | {{API parameter|name=my-optional-parameter|optional=true}} | ||
− | |} | + | |}<noinclude>[[Category:Template Documentation]]</noinclude> |
Revision as of 23:03, 25 July 2014
Displays a parameter to an API command for use with API script syntax descriptions.
Usage
Parameters can be optional or required. Indicate that the parameter is optional with the optional parameter to this template.
Wikitext | Output |
---|---|
{{API parameter|name=my-parameter}}
|
<my-parameter> |
{{API parameter|name=my-optional-parameter|optional=true}}
|
[my-optional-parameter] |