Template:BSLfuncinfo: Difference between revisions
Jump to navigation
Jump to search
(saving work so far) |
(done with first pass?) |
||
Line 8: | Line 8: | ||
|- | |- | ||
|type: | |type: | ||
|{{{type| | |{{{type|}}} | ||
|align="center"|{{{arg1type}}} | |align="center"|{{{arg1type|}}} {{#if:{{{arg1alttype|}}}|<u>or</u> {{{arg1alttype|}}}}} {{#if:{{{arg1optional|}}}|(optional)|}} | ||
|align="center"|{{{arg2type}}} | |align="center"|{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<u>or</u> {{{arg2alttype|}}}}} {{#if:{{{arg2optional|}}}|(optional)|}} | ||
|align="center"|{{{arg3type}}} | |align="center"|{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<u>or</u> {{{arg3alttype|}}}}} {{#if:{{{arg3optional|}}}|(optional)|}} | ||
|align="center"|{{{arg4type}}} | |align="center"|{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<u>or</u> {{{arg4alttype|}}}}} {{#if:{{{arg4optional|}}}|(optional)|}} | ||
|- | |- | ||
|{{#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 | ||
-->|[[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 | ||
-->}}<!-- | |||
-->|{{#ifeq:{{{win|yes}}}|no|[[Image:Platform-Mac.png|20px]] [[Image:Platform-empty.png|20px]] <!--if only Mac, show Mac and blank icon | |||
-->|[[Image:Platform-Win.png|20px]] [[Image:Platform-Mac.png|20px]] | -->|[[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"|{{{funcname}}}( | ||
|style="font-size:166%; vertical-align:bottom"|{{{arg1name}}} | |style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg1name|}}} | ||
|style="font-size:166%; vertical-align:bottom"|{{{arg2name}}} | |{{{arg1name|}}} {{#if:{{{arg1altname|}}} | ||
|style="font-size:166%; vertical-align:bottom"|{{{arg3name}}} | |<u>or</u> {{{arg1altname|}}}|}} <!-- print alternative arg 1 if present --> | ||
|style="font-size:166%; vertical-align:bottom"|{{{arg4name}}} | {{#if:{{{arg2name|}}}|,|}} <!-- if there is a next arg, print a comma --> | ||
|void )}} <!-- if no arg1, print "void" and a close parens --> | |||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg2name|}}} | |||
|{{{arg2name|}}} {{#if:{{{arg2altname|}}} | |||
|<u>or</u> {{{arg2altname|}}}|}} | |||
{{#if:{{{arg3name|}}}|,|)}}}} | |||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg3name|}}} | |||
|{{{arg3name|}}} {{#if:{{{arg3altname|}}} | |||
|<u>or</u> {{{arg3altname|}}}|}} | |||
{{#if:{{{arg4name|}}}|,|)}}}} | |||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg4name|}}} | |||
|{{{arg4name|}}} {{#if:{{{arg4altname|}}} | |||
|<u>or</u> {{{arg4altname|}}}|}})}} | |||
|- | |- | ||
|default: | |default: | ||
|{{#if:{{{return_default}}}|{{#ifeq:{{{type}}}|void|error: a void function cannot have a return value|{{{return_default}}}}}}} | |{{#if:{{{return_default}}}|{{#ifeq:{{{type}}}|void|error: a void function cannot have a return value|{{{return_default}}}}}}} | ||
|align="center"|{{{arg1default}}} | |align="center"|{{{arg1default|}}} | ||
|align="center"|{{{arg2default}}} | |align="center"|{{{arg2default|}}} | ||
|align="center"|{{{arg3default}}} | |align="center"|{{{arg3default|}}} | ||
|align="center"|{{{arg4default}}} | |align="center"|{{{arg4default|}}} | ||
|}<noinclude> | |}<noinclude> | ||
[[Category:Basic formatting templates]]</noinclude> | [[Category:Basic formatting templates]]</noinclude> |