Template:Script: Difference between revisions

From FiguraMC
Slyme (talk | contribs)
Created page with "<templatestyles src="Template:Script/style.css"/> <div class="scriptbox">{{#if:{{{name|}}}|<div class="scriptname">{{{name}}}</div>|}} {{#tag:syntaxHighlight|{{{1|{{{script}}}}}}|lang="lua"|start={{{line}}}|line=}} </div> <noinclude> <templatedata> { "params": { "name": { "label": "Script Name", "type": "content", "required": false, "description": "The name of the script, to be shown as a label header." }, "script": { "aliases": [ "1"..."
 
Slyme (talk | contribs)
Add highlight parameter
 
Line 1: Line 1:
<templatestyles src="Template:Script/style.css"/>
<templatestyles src="Template:Script/style.css"/>
<div class="scriptbox">{{#if:{{{name|}}}|<div class="scriptname">{{{name}}}</div>|}}
<div class="scriptbox">{{#if:{{{name|}}}|<div class="scriptname">{{{name}}}</div>|}}
{{#tag:syntaxHighlight|{{{1|{{{script}}}}}}|lang="lua"|start={{{line}}}|line=}}
{{#tag:syntaxHighlight|{{{1|{{{script}}}}}}
|lang="lua"
|start={{{line}}}
|line=
|highlight={{{highlight}}}}}
</div>
</div>
<noinclude>
<noinclude>
Line 27: Line 31:
             "required": false,
             "required": false,
             "description": "What number to start counting on."
             "description": "What number to start counting on."
        },
        "highlight": {
            "label": "Highlighted Lines",
            "type": "string",
            "required": false,
            "description": "Lines to highlight."
         }
         }
},
},
Line 32: Line 42:
"script",
"script",
"name",
"name",
         "line"
         "line",
        "highlight"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 01:57, 7 October 2024

{{{script}}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Scriptscript 1

The script to be displayed

Stringrequired
Script Namename

The name of the script, to be shown as a label header.

Contentoptional
Line Numberline

What number to start counting on.

Numberoptional
Highlighted Lineshighlight

Lines to highlight.

Stringoptional