Template:BSLfuncinfo: Difference between revisions

removing additional arguments in order to troubleshoot
(oops, forgot one #if)
(removing additional arguments in order to troubleshoot)
Line 6: Line 6:
{{Pipe}}align="center"{{Pipe}}{{{arg1type|}}} {{#if:{{{arg1alttype|}}}|<u>or</u> {{{arg1alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg1type|}}} {{#if:{{{arg1alttype|}}}|<u>or</u> {{{arg1alttype|}}}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{#if:{{{arg2name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<u>or</u> {{{arg2alttype|}}}}}|{{#if:{{{arg1name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg3name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<u>or</u> {{{arg3alttype|}}}}}|{{#if:{{{arg2name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg4name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<u>or</u> {{{arg4alttype|}}}}}|{{#if:{{{arg3name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg5name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg5type|}}} {{#if:{{{arg5alttype|}}}|<u>or</u> {{{arg5alttype|}}}}}|{{#if:{{{arg4name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg6name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg6type|}}} {{#if:{{{arg6alttype|}}}|<u>or</u> {{{arg6alttype|}}}}}|{{#if:{{{arg5name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg7name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg7type|}}} {{#if:{{{arg7alttype|}}}|<u>or</u> {{{arg7alttype|}}}}}|{{#if:{{{arg6name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg8name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg8type|}}} {{#if:{{{arg8alttype|}}}|<u>or</u> {{{arg8alttype|}}}}}|{{#if:{{{arg7name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
|-
|-
|'''{{{name}}}('''<!--
|'''{{{name}}}('''<!--
Line 36: Line 15:
-->{{#if:{{{arg1optional|}}}|''|}}<!--                              end italics if optional arg
-->{{#if:{{{arg1optional|}}}|''|}}<!--                              end italics if optional arg
-->{{#if:{{{arg2name|}}}|, |}}|<!--                                  and if there is a next arg, print a comma -->
-->{{#if:{{{arg2name|}}}|, |}}|<!--                                  and if there is a next arg, print a comma -->
{{Pipe}} );}}<!--                                                    else if no args, just close parentheses
{{Pipe}} );}}
 
-->{{#if:{{{arg2name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg2optional|}}}|''|}}<!--
-->{{{arg2name|}}}<!--
-->{{#if:{{{arg2altname|}}}|&nbsp;<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|}}}|&nbsp;<u>or</u> {{{arg3altname|}}}}}<!--
-->{{#if:{{{arg3optional|}}}|''|}}<!--
-->{{#if:{{{arg4name|}}}|, |}}|
{{Pipe}}{{#if:{{{arg2name|}}}| ); |}}}}<!--
 
-->{{#if:{{{arg4name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg4optional|}}}|''|}}<!--
-->{{{arg4name|}}}<!--
-->{{#if:{{{arg4altname|}}}|&nbsp;<u>or</u> {{{arg4altname|}}}}}<!--
-->{{#if:{{{arg4optional|}}}|''|}}<!--
-->{{#if:{{{arg5name|}}}|, |}}|
{{Pipe}}{{#if:{{{arg3name|}}}| ); |}}}}<!--
 
-->{{#if:{{{arg5name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg5optional|}}}|''|}}<!--
-->{{{arg5name|}}}<!--
-->{{#if:{{{arg5altname|}}}|&nbsp;<u>or</u> {{{arg5altname|}}}}}<!--
-->{{#if:{{{arg5optional|}}}|''|}}<!--
-->{{#if:{{{arg6name|}}}|, |}}|
{{Pipe}}{{#if:{{{arg4name|}}}| ); |}}}}<!--
 
-->{{#if:{{{arg6name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg6optional|}}}|''|}}<!--
-->{{{arg6name|}}}<!--
-->{{#if:{{{arg6altname|}}}|&nbsp;<u>or</u> {{{arg6altname|}}}}}<!--
-->{{#if:{{{arg6optional|}}}|''|}}<!--
-->{{#if:{{{arg7name|}}}|, |}}|
{{Pipe}}{{#if:{{{arg5name|}}}| ); |}}}}<!--
 
-->{{#if:{{{arg7name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg7optional|}}}|''|}}<!--
-->{{{arg7name|}}}<!--
-->{{#if:{{{arg7altname|}}}|&nbsp;<u>or</u> {{{arg7altname|}}}}}<!--
-->{{#if:{{{arg7optional|}}}|''|}}<!--
-->{{#if:{{{arg8name|}}}|, |}}|
{{Pipe}}{{#if:{{{arg6name|}}}| ); |}}}}<!--
 
-->{{#if:{{{arg8name|}}}|
{{Pipe}}align="center"{{Pipe}}'''<!--
-->{{#if:{{{arg8optional|}}}|''|}}<!--
-->{{{arg8name|}}}<!--
-->{{#if:{{{arg8altname|}}}|&nbsp;<u>or</u> {{{arg8altname|}}}}}<!--
-->{{#if:{{{arg8optional|}}}|''|}}<!--
{{Pipe}}{{#if:{{{arg7name|}}}| ); |}}}}
|-
|-
|default: {{#if:{{{default|}}}|{{{default|}}}| --}}<!-- print "--" if there is no default return value for function
|default: {{#if:{{{default|}}}|{{{default|}}}| --}}<!-- print "--" if there is no default return value for function
-->{{#if:{{{arg1default|}}}|
-->{{#if:{{{arg1default|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg1default|}}}|{{#if:{{{arg1name|}}}|
{{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}} --|}}|}}
{{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.