Template:BSLvarinfo: Difference between revisions
Jump to navigation
Jump to search
(trying a different format for variable listings which is more compact vertically and which only implies the type rather than stating it) |
(adding [edit] link above listing, as with BSLfuncinfo) |
||
Line 1: | Line 1: | ||
<includeonly>{{Anchor|{{{name|placeholder}}}}} | <includeonly>{{Anchor|{{{name|placeholder}}}}} | ||
{| | {| | ||
|- | |||
|[[{{{name}}}|[edit]]] | |||
|- | |- | ||
|{{#ifeq:{{{mac|yes}}}|no|{{#ifeq:{{{win|yes}}}|no|[[Image:Cmbox deletion.png|20px]] <!--if neither platform, show error icon | |{{#ifeq:{{{mac|yes}}}|no|{{#ifeq:{{{win|yes}}}|no|[[Image:Cmbox deletion.png|20px]] <!--if neither platform, show error icon |
Revision as of 05:59, 21 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= }}