Template:BSLvarinfo: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (Iritscen moved page Template:BSLvar to Template:BSLvarinfo without leaving a redirect: More specific name, and I want to use "BSLvar" as a category macro template.)
m (updated name in docs)
Line 13: Line 13:
|default:
|default:
|{{#ifeq:{{{type|}}}|string|"{{{default|}}}"|({{{type|}}}) {{{default|}}} }}
|{{#ifeq:{{{type|}}}|string|"{{{default|}}}"|({{{type|}}}) {{{default|}}} }}
|}</includeonly><noinclude>'''BSLvar''' allows for standardized listing of BSL variables.
|}</includeonly><noinclude>'''BSLvarinfo''' allows for standardized listing of BSL variables.


Parameters:
Parameters:
Line 30: Line 30:
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]].
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]].


  <nowiki>{{</nowiki>BSLvar
  <nowiki>{{</nowiki>BSLvarinfo
  |type=
  |type=
  |default=
  |default=

Revision as of 16:35, 13 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=
}}