Template:BSLvarinfo: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(Created page with "<includeonly>{{Anchor|{{{name|placeholder}}}}} {| |- |{{#ifeq:{{{mac|yes}}}|no|{{#ifeq:{{{win|yes}}}|no|20px <!--i...")
 
(matching name size to BSLfunc, putting default on second row, and in quotes if it's a string)
Line 9: Line 9:
                       -->}}<!--
                       -->}}<!--
-->}}
-->}}
|{{{name|}}}
|style="font-size:166%; vertical-align:bottom"|{{{name|}}}
|default: ({{{type|}}}) {{{default|}}}
|-
|default:
|{{#ifeq:{{{type|}}}|string|"{{{default|}}}"|({{{type|}}}) {{{default|}}} }}
|}</includeonly><noinclude>'''BSLvar''' allows for standardized listing of BSL variables.
|}</includeonly><noinclude>'''BSLvar''' allows for standardized listing of BSL variables.


Parameters:
Parameters:
;<tt>name</tt>
:Name of variable.
;<tt>type</tt>
;<tt>type</tt>
:Type of variable; should be "bool", "int", "float", or "string".
:Type of variable; should be "bool", "int", "float", or "string".
Line 19: Line 24:
;<tt>default</tt>
;<tt>default</tt>
:Default value of variable, if there is one at the time the level starts.
:Default value of variable, if there is one at the time the level starts.
;<tt>name</tt>
:Name of variable.


;<tt>mac</tt>, <tt>win</tt>
;<tt>mac</tt>, <tt>win</tt>

Revision as of 23:17, 25 November 2015

BSLvar allows for standardized listing of BSL variables.

Parameters:

name
Name of variable.
type
Type of variable; should be "bool", "int", "float", or "string".
default
Default value of variable, if there is one at the time the level starts.
mac, win
You don't have to use these unless the variable is not available and working on one platform; set the appropriate parameter(s) to "no" if that is the case.

Below is a blank call for the template, to save some time. You may find it easier to use the GUI for this template that is provided by XEB.

{{BSLvar
|type=
|default=
|name=
|mac=
|win=
}}