Template:BSLfuncinfo: Difference between revisions

"default" now in sample call; now shows "--" when no default value is given
("return_default" is now "default", and now documented as well)
("default" now in sample call; now shows "--" when no default value is given)
Line 40: Line 40:
|-
|-
|default:
|default:
|{{#if:{{{default|}}}|{{#ifeq:{{{type|}}}|void|error: a void function cannot have a return value|{{{default|}}}}}}}
|{{#if:{{{default|}}}|{{#ifeq:{{{type|}}}|void|error: a void function cannot have a return value|{{{default|}}}}}| --}}
|align="center"|{{{arg1default|}}}
|align="center"|{{{arg1default|{{#if:{{{arg1name|}}}| --|}}}}}
|align="center"|{{{arg2default|}}}
|align="center"|{{{arg2default|{{#if:{{{arg2name|}}}| --|}}}}}
|align="center"|{{{arg3default|}}}
|align="center"|{{{arg3default|{{#if:{{{arg3name|}}}| --|}}}}}
|align="center"|{{{arg4default|}}}
|align="center"|{{{arg4default|{{#if:{{{arg4name|}}}| --|}}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>


Line 54: Line 54:


;<tt>default</tt>
;<tt>default</tt>
:Default return value of function, if there is one at the time the level starts
:Default return value of function, if there is one at the time the level starts.


;<tt>name</tt>
;<tt>name</tt>
Line 84: Line 84:
  <nowiki>{{</nowiki>BSLfunc
  <nowiki>{{</nowiki>BSLfunc
  |type=
  |type=
|default=
  |name=
  |name=
  |mac=
  |mac=