Difference between revisions of "Template:AIScript"

From The Perfect Tower II
Jump to navigation Jump to search
Line 2: Line 2:
 
!
 
!
 
|-
 
|-
|{{#tag:syntaxhighlight
+
|{{#tag:syntaxhighlight|{{{code|}}}|lang=text}}
|{{{code|}}}
+
|-
|lang=text
+
|{{#tag:syntaxhighlight|{{{src|}}}|lang=actionscript}}
{{#if:{{{1|}}}
+
}}
|
 
{{!}}-
 
{{!}}{{#tag:syntaxhighlight
 
{{!}}{{{1}}}
 
{{!}}lang=actionscript
 
}}<!-- #tag -->
 
}}<!-- #if -->
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 18: Line 11:
 
{
 
{
 
"params": {
 
"params": {
"source": {
 
"label": "Source",
 
"description": "Script source code",
 
"type": "content",
 
"suggested": true
 
},
 
 
"code": {
 
"code": {
 
"label": "Import Code",
 
"label": "Import Code",
Line 29: Line 16:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 +
},
 +
                "src": {
 +
"label": "Source Code",
 +
"description": "Script source code",
 +
"type": "content",
 +
"suggested": true
 
}
 
}
 
},
 
},

Revision as of 17:03, 21 January 2021

}}

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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Import Codecode

Code for importing into TPT2

Stringrequired
Source Codesrc

Script source code

Contentsuggested