Difference between revisions of "Template:API parameter/doc"
From Roll20 Wiki
m |
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> | + | |}<noinclude>[[Category:Template Documentation]]</noinclude><includeonly>[[Category:API Templates]]</includeonly> |
Revision as of 23:06, 30 December 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] |