Difference between revisions of "Template:Script overview/doc"
From Roll20 Wiki
(→Usage) |
|||
Line 35: | Line 35: | ||
| <pre>{{script overview | | <pre>{{script overview | ||
|name=Auto Initiative | |name=Auto Initiative | ||
− | |author=84478 | + | |author={{script author|84478|Josh}} |
|lastmodified=2013-12-30 | |lastmodified=2013-12-30 | ||
|version=2.2}}</pre> | |version=2.2}}</pre> | ||
− | | {{script overview|author=84478|lastmodified=2013-12-30|version=2.2|nocat=true}} | + | | {{script overview|author={{script author|84478|Josh}}|lastmodified=2013-12-30|version=2.2|nocat=true}} |
|} | |} | ||
This page would also be categorized with <code><nowiki>[[Category:User API Scripts|Auto Initiative]]</nowiki></code>, although the <code>nocat</code> parameter is being invoked on this demonstration. | This page would also be categorized with <code><nowiki>[[Category:User API Scripts|Auto Initiative]]</nowiki></code>, although the <code>nocat</code> parameter is being invoked on this demonstration. | ||
<noinclude>[[Category:Template Documentation]]</noinclude> | <noinclude>[[Category:Template Documentation]]</noinclude> | ||
<includeonly>[[Category:API Templates]]</includeonly> | <includeonly>[[Category:API Templates]]</includeonly> |
Revision as of 20:06, 7 January 2015
Creates a metadata box for displaying on a script page
Parameters
Name | Description |
---|---|
name | The name to use when categorizing this script page in API Scripts |
author | The user ID of the script author. This template will then link to that user's wiki userpage. |
lastmodified | The date that the script was most recently updated. Should be in the form yyyy-mm-dd
|
version | The current version of the script. A version number in the form major.minor is recommended.
|
nocat | If given and set to any value except false , the page will not be automatically categorized. The name parameter and the second unnamed parameter then become superfluous.
|
Additionally, if an unnamed parameter is given, it will be used to set the float direction of the box. (Default is right
.) If two unnamed parameters are given, the second will be used as the default value for name
Usage
Wikitext | Output |
---|---|
{{script overview |name=Auto Initiative |author={{script author|84478|Josh}} |lastmodified=2013-12-30 |version=2.2}} |
This page would also be categorized with [[Category:User API Scripts|Auto Initiative]]
, although the nocat
parameter is being invoked on this demonstration.