Difference between revisions of "Template:Kray3script"

From Kray
Jump to: navigation, search
(Usage)
(Usage)
 
(8 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
  <nowiki>{{kray3script|path=pathtoscript|button=1}}</nowiki>
 
  <nowiki>{{kray3script|path=pathtoscript|button=1}}</nowiki>
  
</noinclude>
+
* button=1 Will show Run in KrayLive button.
<includeonly>
+
* highlight=1-10 Will highlight those lines.
{{#tag:include||
+
highlight=kray3|
+
src=http://www.kraytracing.com/pub/kray3_script/{{{path}}}
+
}}
+
  
{{#if: {{{button|1}}} | No button | THIS IS BUTTON}}
+
</noinclude>
</includeonly>
+
<includeonly>{{#tag:include||highlight=kray3|src=/pub/kray3_script/{{{path}}}}}{{#ifeq: {{{runbutton}}}|1|{{Runkray3live|path={{{path}}}}}|}}</includeonly>

Latest revision as of 10:17, 19 December 2012

Usage

This script adds code block and optionaly run button for Kray scripts. To add it use the following keyword:

{{kray3script|path=pathtoscript|button=1}}
  • button=1 Will show Run in KrayLive button.
  • highlight=1-10 Will highlight those lines.