More actions
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"..." |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Script | script 1 | The script to be displayed | String | required |
Script Name | name | The name of the script, to be shown as a label header. | Content | optional |
Line Number | line | What number to start counting on. | Number | optional |
Highlighted Lines | highlight | Lines to highlight. | String | optional |