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...")
 
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
!
 
!
 
|-
 
|-
|<syntaxhighlight lang="actionscript">
+
|{{#tag:syntaxhighlight|{{{code|}}}|lang=text}}
{{{source}}}
 
</syntaxhighlight>
 
 
|-
 
|-
|<syntaxhighlight lang="text">
+
|{{#tag:syntaxhighlight|{{{src|}}}|lang=actionscript}}
{{{code}}}
 
</syntaxhighlight>
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 14: Line 10:
 
{
 
{
 
"params": {
 
"params": {
"source": {},
+
"code": {
"code": {}
+
"label": "Import Code",
 +
"description": "Code for importing into TPT2",
 +
"type": "string",
 +
"required": true
 +
},
 +
                "src": {
 +
"label": "Source Code",
 +
"description": "Script source code",
 +
"type": "content",
 +
"suggested": true
 +
}
 
},
 
},
"format": "block"
+
"format": "block",
 +
"description": "Displays the source and code for an AI script in syntax-highlighted code sections."
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

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