Template:BSLvarinfo: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(restoring type to command listing)
(only name should be bold)
Line 5: Line 5:
|align="right"|[[{{{name}}}|[edit]]]
|align="right"|[[{{{name}}}|[edit]]]
|-
|-
|'''{{{name|}}} =
|'''{{{name|}}}'''
|{{#ifeq:{{{type|int}}}|int|{{{default|0}}}|{{#ifeq:{{{type}}}|float|{{{default|0.0}}}|{{#ifeq:{{{type}}}|bool|{{{default|true}}}|{{{default|""}}} }} }} }};'''
|= {{#ifeq:{{{type|int}}}|int|{{{default|0}}}|{{#ifeq:{{{type}}}|float|{{{default|0.0}}}|{{#ifeq:{{{type}}}|bool|{{{default|true}}}|{{{default|""}}} }} }} }};'''
|}</includeonly><noinclude>'''BSLvarinfo''' allows for standardized listing of BSL variables.
|}</includeonly><noinclude>'''BSLvarinfo''' allows for standardized listing of BSL variables.



Revision as of 02:48, 22 December 2015

BSLvarinfo 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.

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