Difference between revisions of "Template:AIScript"

From The Perfect Tower II
Jump to navigation Jump to search
(Created page with "{| class="wikitable mw-collapsible mw-collapsed" ! |- |<syntaxhighlight lang="actionscript"> {{{source}}} </syntaxhighlight> |- |<syntaxhighlight lang="text"> {{{code}}} </syn...")
 
Line 14: Line 14:
 
{
 
{
 
"params": {
 
"params": {
"source": {},
+
"source": {
"code": {}
+
"label": "Source",
 +
"description": "Script source code",
 +
"type": "content",
 +
"suggested": true
 +
},
 +
"code": {
 +
"label": "Import Code",
 +
"description": "Code for importing into TPT2",
 +
"type": "string",
 +
"required": true
 +
}
 
},
 
},
"format": "block"
+
"format": "block",
 +
"description": "Displays the source and code for an AI script in syntax-highlighted code sections."
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 16:09, 21 January 2021

{{{source}}}
{{{code}}}

Displays the source and code for an AI script in syntax-highlighted code sections.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Sourcesource

Script source code

Contentsuggested
Import Codecode

Code for importing into TPT2

Stringrequired