Difference between revisions of "Template:AIScript"

From The Perfect Tower II
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{code|}}}
 
 
{| class="wikitable mw-collapsible mw-collapsed"
 
{| class="wikitable mw-collapsible mw-collapsed"
 
!
 
!
 
|-
 
|-
|{{#tag:syntaxhighlight|lang=actionscript|
+
|{{#tag:syntaxhighlight|{{{code|}}}|lang=text}}
{{{source|}}}
 
}}
 
 
|-
 
|-
|{{#tag:syntaxhighlight|lang=text|
+
|{{#tag:syntaxhighlight|{{{src|}}}|lang=actionscript}}
{{{code|}}}
 
}}
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 15: Line 10:
 
{
 
{
 
"params": {
 
"params": {
"source": {
 
"label": "Source",
 
"description": "Script source code",
 
"type": "content",
 
"suggested": true
 
},
 
 
"code": {
 
"code": {
 
"label": "Import Code",
 
"label": "Import Code",
Line 26: Line 15:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 +
},
 +
                "src": {
 +
"label": "Source Code",
 +
"description": "Script source code",
 +
"type": "content",
 +
"suggested": true
 
}
 
}
 
},
 
},

Latest revision as of 16: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