Jump to content

Template:BSLvarinfo: Difference between revisions

matching name size to BSLfunc, putting default on second row, and in quotes if it's a string
(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>