19,752
edits
No edit summary |
(replaced Pipe template with built-in {{!}} magic word) |
||
| (47 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Anchor|{{{name|placeholder}}}}} | <includeonly>{{Anchor|{{{name|placeholder}}}}} | ||
{| class="BSLFuncInfo" | |||
|- | |- | ||
| | |{{{type|}}}<!-- | ||
|{{{ | -->{{#if:{{{arg1name|}}}|<br /> | ||
| | {{!}}align="center"{{!}}{{#if:{{{arg1optional|}}}|''|}}{{{arg1type|}}} {{#if:{{{arg1alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg1alttype|}}}}}|<br /> | ||
|align="center" | {{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}<!-- | ||
</ | -->{{#if:{{{arg2name|}}}|<br /> | ||
!<!--" | {{!}}align="center"{{!}}{{#if:{{{arg2optional|}}}|''|}}{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg2alttype|}}}}}|{{#if:{{{arg1name|}}}|<br /> | ||
!<!-- | {{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | ||
!< | -->{{#if:{{{arg3name|}}}|<br /> | ||
!<!-- | {{!}}align="center"{{!}}{{#if:{{{arg3optional|}}}|''|}}{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg3alttype|}}}}}|{{#if:{{{arg2name|}}}|<br /> | ||
!< | {{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | ||
!<!-- | -->{{#if:{{{arg4name|}}}|<br /> | ||
!< | {{!}}align="center"{{!}}{{#if:{{{arg4optional|}}}|''|}}{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg4alttype|}}}}}|{{#if:{{{arg3name|}}}|<br /> | ||
!<!-- | {{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | ||
!< | -->{{#if:{{{arg5name|}}}|<br /> | ||
! | {{!}}align="center"{{!}}{{#if:{{{arg5optional|}}}|''|}}{{{arg5type|}}} {{#if:{{{arg5alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg5alttype|}}}}}|{{#if:{{{arg4name|}}}|<br /> | ||
{{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | |||
-->{{#if:{{{arg6name|}}}|<br /> | |||
{{!}}align="center"{{!}}{{#if:{{{arg6optional|}}}|''|}}{{{arg6type|}}} {{#if:{{{arg6alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg6alttype|}}}}}|{{#if:{{{arg5name|}}}|<br /> | |||
{{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | |||
-->{{#if:{{{arg7name|}}}|<br /> | |||
{{!}}align="center"{{!}}{{#if:{{{arg7optional|}}}|''|}}{{{arg7type|}}} {{#if:{{{arg7alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg7alttype|}}}}}|{{#if:{{{arg6name|}}}|<br /> | |||
{{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}}<!-- | |||
-->{{#if:{{{arg8name|}}}|<br /> | |||
{{!}}align="center"{{!}}{{#if:{{{arg8optional|}}}|''|}}{{{arg8type|}}} {{#if:{{{arg8alttype|}}}|<span style="font-weight:1000;">or</span> {{{arg8alttype|}}}}}|{{#if:{{{arg7name|}}}|<br /> | |||
{{!}}[[Image:Edit-pencil.png|link={{{name}}}|Edit this info]]}}|}} | |||
|- | |- | ||
| | |'''{{{name}}}('''<!-- | ||
-->{{#if:{{{arg1name|}}}|<br /><!-- if this arg exists... --> | |||
{{!}}align="center"{{!}}'''<!-- create a cell, then... | |||
-->{{#if:{{{arg1optional|}}}|''|}}<!-- start italics if optional arg | |||
|align="center"|{{{ | -->{{{arg1name|}}}<!-- print arg name | ||
|align="center"|{{{ | -->{{#if:{{{arg1altname|}}}| <span style="font-weight:1000;">or</span> {{{arg1altname|}}}}}<!-- print " or " and alternate arg name if supplied | ||
|align="center"|{{{ | -->{{#if:{{{arg1optional|}}}|''|}}<!-- end italics if optional arg | ||
|align="center"|{{{ | -->{{#if:{{{arg2name|}}}|, |}}|<br /><!-- and if there is a next arg, print a comma --> | ||
|align="center"|{{{ | {{!}}''' );}}<!-- else if no args, just close parentheses | ||
|align="center"|{{{ | -->{{#if:{{{arg2name|}}}|<br /> | ||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg2optional|}}}|''|}}<!-- | |||
-->{{{arg2name|}}}<!-- | |||
-->{{#if:{{{arg2altname|}}}| <span style="font-weight:1000;">or</span> {{{arg2altname|}}}}}<!-- | |||
-->{{#if:{{{arg2optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg3name|}}}|, |}}|{{#if:{{{arg1name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg3name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg3optional|}}}|''|}}<!-- | |||
-->{{{arg3name|}}}<!-- | |||
-->{{#if:{{{arg3altname|}}}| <span style="font-weight:1000;">or</span> {{{arg3altname|}}}}}<!-- | |||
-->{{#if:{{{arg3optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg4name|}}}|, |}}|{{#if:{{{arg2name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg4name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg4optional|}}}|''|}}<!-- | |||
-->{{{arg4name|}}}<!-- | |||
-->{{#if:{{{arg4altname|}}}| <span style="font-weight:1000;">or</span> {{{arg4altname|}}}}}<!-- | |||
-->{{#if:{{{arg4optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg5name|}}}|, |}}|{{#if:{{{arg3name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg5name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg5optional|}}}|''|}}<!-- | |||
-->{{{arg5name|}}}<!-- | |||
-->{{#if:{{{arg5altname|}}}| <span style="font-weight:1000;">or</span> {{{arg5altname|}}}}}<!-- | |||
-->{{#if:{{{arg5optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg6name|}}}|, |}}|{{#if:{{{arg4name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg6name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg6optional|}}}|''|}}<!-- | |||
-->{{{arg6name|}}}<!-- | |||
-->{{#if:{{{arg6altname|}}}| <span style="font-weight:1000;">or</span> {{{arg6altname|}}}}}<!-- | |||
-->{{#if:{{{arg6optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg7name|}}}|, |}}|{{#if:{{{arg5name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg7name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg7optional|}}}|''|}}<!-- | |||
-->{{{arg7name|}}}<!-- | |||
-->{{#if:{{{arg7altname|}}}| <span style="font-weight:1000;">or</span> {{{arg7altname|}}}}}<!-- | |||
-->{{#if:{{{arg7optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg8name|}}}|, |}}|{{#if:{{{arg6name|}}}|<br /> | |||
{{!}}''' ); |}}}}<!-- | |||
-->{{#if:{{{arg8name|}}}|<br /> | |||
{{!}}align="center"{{!}}'''<!-- | |||
-->{{#if:{{{arg8optional|}}}|''|}}<!-- | |||
-->{{{arg8name|}}}<!-- | |||
-->{{#if:{{{arg8altname|}}}| <span style="font-weight:1000;">or</span> {{{arg8altname|}}}}}<!-- | |||
-->{{#if:{{{arg8optional|}}}|''|}}|{{#if:{{{arg7name|}}}|<br /> | |||
{{!}}''' ); |}}}} | |||
|- | |- | ||
|{{# | |default: {{#if:{{{default|}}}|{{{default|}}}| --}}<!-- print "--" if there is no default return value for function | ||
-->{{#if:{{{arg1default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg1default|}}}|{{#if:{{{arg1name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg2default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg2default|}}}|{{#if:{{{arg2name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg3default|}}}|<br /> | |||
| | {{!}}align="center"{{!}}{{{arg3default|}}}|{{#if:{{{arg3name|}}}|<br /> | ||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg4default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg4default|}}}|{{#if:{{{arg4name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg5default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg5default|}}}|{{#if:{{{arg5name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg6default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg6default|}}}|{{#if:{{{arg6name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg7default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg7default|}}}|{{#if:{{{arg7name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}}<!-- | |||
-->{{#if:{{{arg8default|}}}|<br /> | |||
{{!}}align="center"{{!}}{{{arg8default|}}}|{{#if:{{{arg8name|}}}|<br /> | |||
{{!}}align="center"{{!}} --|}}|}} | |||
|}</includeonly><noinclude>'''BSLfuncinfo''' allows for standardized listing of BSL functions. Since BSL allows for functions to take up to eight arguments, and each argument can be described here by up to six parameters, this makes '''BSLfuncinfo''' the most complex template on the wiki. However, you'll rarely need to use more than a few of these parameters to describe an average function. | |||
|}</includeonly><noinclude>''' | |||
Parameters: | Parameters: | ||
| Line 175: | Line 151: | ||
:If a BSL function can take more than one kind of data in a given argument position, give the second argument name here. | :If a BSL function can take more than one kind of data in a given argument position, give the second argument name here. | ||
Below is a default blank call for all parameters up through the fourth function argument, to save some time. You can omit any parameters you don't need when adding this template to a page | Below is a default blank call for all parameters up through the fourth function argument, to save some time. You can omit any parameters you don't need when adding this template to a page. | ||
<nowiki>{{</nowiki> | <nowiki>{{</nowiki>BSLfuncinfo | ||
|type= | |type= | ||
|default= | |default= | ||
| Line 209: | Line 185: | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
[[Category: | [[Category:Table templates]]</noinclude> | ||