Template:BSLfuncinfo: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(saving work so far)
(saving work so far)
Line 1: Line 1:
{{#ifeq:{{{mac|yes}}}|no|{{#ifeq:{{{win|yes}}}|no|[[Image:Cmbox deletion.png|20px]]                                <!--if neither platform, show error icon
{|
!<!--"type" label, OS icons, "default" label-->
!<!--func type, name, default return value-->
!<!--arg 1 type, name, default value-->
!<!--arg 2 type, name, default value-->
!<!--arg 3 type, name, default value-->
!<!--arg 4 type, name, default value-->
|-
|type:
|{{{type|void}}}
|align="center"|{{{arg1type}}}
|align="center"|{{{arg2type}}}
|align="center"|{{{arg3type}}}
|align="center"|{{{arg4type}}}
|-
|{{#ifeq:{{{mac|yes}}}|no|{{#ifeq:{{{win|yes}}}|no|[[Image:Cmbox deletion.png|20px]]                                <!--if neither platform, show error icon
                                               -->|[[Image:Platform-empty.png|20px]] [[Image:Platform-Win.png|20px]] <!--if only Win, show blank and Win icon
                                               -->|[[Image:Platform-empty.png|20px]] [[Image:Platform-Win.png|20px]] <!--if only Win, show blank and Win icon
                       -->}}<!--
                       -->}}<!--
Line 5: Line 20:
                                               -->|[[Image:Platform-Win.png|20px]] [[Image:Platform-Mac.png|20px]]  <!--if both platforms, show both icons
                                               -->|[[Image:Platform-Win.png|20px]] [[Image:Platform-Mac.png|20px]]  <!--if both platforms, show both icons
                       -->}}<!--
                       -->}}<!--
-->}} <span style="font-size:166%; vertical-align:bottom">{{#switch:{{{type}}}
-->}}
|int = int
|style="font-size:166%; vertical-align:bottom"|{{{funcname}}}(
|string = string
|style="font-size:166%; vertical-align:bottom"|{{{arg1name}}}
|float = float
|style="font-size:166%; vertical-align:bottom"|{{{arg2name}}}
|bool = bool
|style="font-size:166%; vertical-align:bottom"|{{{arg3name}}}
|void
|style="font-size:166%; vertical-align:bottom"|{{{arg4name}}}
}} <!--
|-
--> {{{name|function_name}}}()</span><br />
|default:
default:&nbsp;&nbsp;{{#ifeq:{{{return_default}}}|void|error: a void function cannot have a return value|{{{return_default}}}}}<noinclude>
|{{#if:{{{return_default}}}|{{#ifeq:{{{type}}}|void|error: a void function cannot have a return value|{{{return_default}}}}}}}
|align="center"|{{{arg1default}}}
|align="center"|{{{arg2default}}}
|align="center"|{{{arg3default}}}
|align="center"|{{{arg4default}}}
|}<noinclude>


[[Category:Basic formatting templates]]</noinclude>
[[Category:Basic formatting templates]]</noinclude>

Revision as of 21:35, 13 November 2015

type: void {{{arg1type}}} {{{arg2type}}} {{{arg3type}}} {{{arg4type}}}
Platform-Win.png Platform-Mac.png {{{funcname}}}( {{{arg1name}}} {{{arg2name}}} {{{arg3name}}} {{{arg4name}}}
default: {{{return_default}}} {{{arg1default}}} {{{arg2default}}} {{{arg3default}}} {{{arg4default}}}