19,161
edits
(forgot to make name bold; it's hard to close the parameters' bold tags, so what if we just don't?) |
(only generating columns as needed, so that unused columns don't pile up as empty space on the right; removing "(optional)" tag -- optional parameters will simply be indicated by the italics and the default value) |
||
Line 1: | Line 1: | ||
<includeonly>{{Anchor|{{{name|placeholder}}}}} | <includeonly>{{Anchor|{{{name|placeholder}}}}} | ||
{| class="BSLFuncInfo" | {| class="BSLFuncInfo" | ||
|- | |- | ||
|{{{type|}}} | |{{{type|}}} | ||
{{#if:{{{arg1name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg1type|}}} {{#if:{{{arg1alttype|}}}|<u>or</u> {{{arg1alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg2name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<u>or</u> {{{arg2alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg3name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<u>or</u> {{{arg3alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg4name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<u>or</u> {{{arg4alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg5name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg5type|}}} {{#if:{{{arg5alttype|}}}|<u>or</u> {{{arg5alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg6name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg6type|}}} {{#if:{{{arg6alttype|}}}|<u>or</u> {{{arg6alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg7name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg7type|}}} {{#if:{{{arg7alttype|}}}|<u>or</u> {{{arg7alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
{{#if:{{{arg8name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg8type|}}} {{#if:{{{arg8alttype|}}}|<u>or</u> {{{arg8alttype|}}}}}| | |||
{{Pipe}}[[{{{name}}}|[edit]]]}} | |||
|- | |- | ||
|'''{{{name}}}(''' | |'''{{{name}}}('''<!-- | ||
-->{{#if:{{{arg1name|}}}|<!-- if this arg exists... --> | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- create a cell, then... | |||
-->{{#if:{{{arg1optional|}}}|''|}}<!-- start italics if optional arg | |||
-->{{{arg1name|}}}<!-- print arg name | |||
-->{{#if:{{{arg1altname|}}}| <u>or</u> {{{arg1altname|}}}}}<!-- print " or " and alternate arg name if supplied | |||
-->{{#if:{{{arg1optional|}}}|''|}}<!-- end italics if optional arg | |||
-->{{#if:{{{arg2name|}}}|, |}}|<!-- and if there is a next arg, print a comma --> | |||
{{Pipe}} );}}<!-- else if no args, just close parentheses | |||
-->{{#if:{{{arg2name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg2optional|}}}|''|}}<!-- | |||
-->{{{arg2name|}}}<!-- | |||
-->{{#if:{{{arg2altname|}}}| <u>or</u> {{{arg2altname|}}}}}<!-- | |||
-->{{#if:{{{arg2optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg3name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg1name|}}}| ); |}}}}<!-- if this was last arg, close parentheses | |||
-->{{#if:{{{arg3name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg3optional|}}}|''|}}<!-- | |||
-->{{{arg3name|}}}<!-- | |||
-->{{#if:{{{arg3altname|}}}| <u>or</u> {{{arg3altname|}}}}}<!-- | |||
-->{{#if:{{{arg3optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg4name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg2name|}}}| ); |}}}}<!-- | |||
-->{{#if:{{{arg4name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg4optional|}}}|''|}}<!-- | |||
-->{{{arg4name|}}}<!-- | |||
-->{{#if:{{{arg4altname|}}}| <u>or</u> {{{arg4altname|}}}}}<!-- | |||
-->{{#if:{{{arg4optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg5name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg3name|}}}| ); |}}}}<!-- | |||
-->{{#if:{{{arg5name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg5optional|}}}|''|}}<!-- | |||
-->{{{arg5name|}}}<!-- | |||
-->{{#if:{{{arg5altname|}}}| <u>or</u> {{{arg5altname|}}}}}<!-- | |||
-->{{#if:{{{arg5optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg6name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg4name|}}}| ); |}}}}<!-- | |||
-->{{#if:{{{arg6name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg6optional|}}}|''|}}<!-- | |||
-->{{{arg6name|}}}<!-- | |||
-->{{#if:{{{arg6altname|}}}| <u>or</u> {{{arg6altname|}}}}}<!-- | |||
-->{{#if:{{{arg6optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg7name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg5name|}}}| ); |}}}}<!-- | |||
-->{{#if:{{{arg7name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg7optional|}}}|''|}}<!-- | |||
-->{{{arg7name|}}}<!-- | |||
-->{{#if:{{{arg7altname|}}}| <u>or</u> {{{arg7altname|}}}}}<!-- | |||
-->{{#if:{{{arg7optional|}}}|''|}}<!-- | |||
-->{{#if:{{{arg8name|}}}|, |}}| | |||
{{Pipe}}{{#if:{{{arg6name|}}}| ); |}}}}<!-- | |||
-->{{#if:{{{arg8name|}}}| | |||
{{Pipe}}align="center"{{Pipe}}'''<!-- | |||
-->{{#if:{{{arg8optional|}}}|''|}}<!-- | |||
-->{{{arg8name|}}}<!-- | |||
-->{{#if:{{{arg8altname|}}}| <u>or</u> {{{arg8altname|}}}}}<!-- | |||
-->{{#if:{{{arg8optional|}}}|''|}}<!-- | |||
{{Pipe}}{{#if:{{{arg7name|}}}| ); |}}}} | |||
|- | |- | ||
|default: | |default: {{#if:{{{default|}}}|{{{default|}}}| --}}<!-- print "--" if there is no default return value for function | ||
-->{{#if:{{{arg1default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg1default|}}}|{{#if:{{{arg1name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg2default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg2default|}}}|{{#if:{{{arg2name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg3default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg3default|}}}|{{#if:{{{arg3name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg4default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg4default|}}}|{{#if:{{{arg4name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg5default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg5default|}}}|{{#if:{{{arg5name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg6default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg6default|}}}|{{#if:{{{arg6name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg7default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg7default|}}}|{{#if:{{{arg7name|}}}| | |||
{{Pipe}} --|}}|}}<!-- | |||
-->{{#if:{{{arg8default|}}}| | |||
{{Pipe}}align="center"{{Pipe}}{{{arg8default|}}}|{{#if:{{{arg8name|}}}| | |||
{{Pipe}} --|}}|}} | |||
|}</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>'''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. | ||