Template:BSLfuncinfo: Difference between revisions
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 | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}} | ||
| | |style="font-size:166%; vertical-align:bottom"|{{{funcname}}}( | ||
| | |style="font-size:166%; vertical-align:bottom"|{{{arg1name}}} | ||
| | |style="font-size:166%; vertical-align:bottom"|{{{arg2name}}} | ||
| | |style="font-size:166%; vertical-align:bottom"|{{{arg3name}}} | ||
|style="font-size:166%; vertical-align:bottom"|{{{arg4name}}} | |||
}} | |- | ||
-- | |default: | ||
default: | |{{#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> |