Template:BSLfuncinfo: Difference between revisions

we need to put all breaks and pipes inside #ifs or else we're still creating empty cells
(fixing bold markup, and removing an unclosed comment)
(we need to put all breaks and pipes inside #ifs or else we're still creating empty cells)
Line 36: Line 36:
-->{{#if:{{{arg1optional|}}}|''|}}<!--                              end italics if optional arg
-->{{#if:{{{arg1optional|}}}|''|}}<!--                              end italics if optional arg
-->{{#if:{{{arg2name|}}}|, |}}|<br /><!--                            and if there is a next arg, print a comma -->
-->{{#if:{{{arg2name|}}}|, |}}|<br /><!--                            and if there is a next arg, print a comma -->
{{Pipe}}''' );}}<!--                                                   else if no args, just close parentheses
{{Pipe}}''' );}}<!--                                                 else if no args, just close parentheses
-->{{#if:{{{arg2name|}}}|<br />
-->{{#if:{{{arg2name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 43: Line 43:
-->{{#if:{{{arg2altname|}}}|&nbsp;<u>or</u> {{{arg2altname|}}}}}<!--
-->{{#if:{{{arg2altname|}}}|&nbsp;<u>or</u> {{{arg2altname|}}}}}<!--
-->{{#if:{{{arg2optional|}}}|''|}}<!--
-->{{#if:{{{arg2optional|}}}|''|}}<!--
-->{{#if:{{{arg3name|}}}|, |}}|<br />
-->{{#if:{{{arg3name|}}}|, |}}|{{#if:{{{arg1name|}}}|<br />
{{Pipe}}{{#if:{{{arg1name|}}}|''' ); |}}}}<!--                         if this was last arg, close parentheses
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg3name|}}}|<br />
-->{{#if:{{{arg3name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 51: Line 51:
-->{{#if:{{{arg3altname|}}}|&nbsp;<u>or</u> {{{arg3altname|}}}}}<!--
-->{{#if:{{{arg3altname|}}}|&nbsp;<u>or</u> {{{arg3altname|}}}}}<!--
-->{{#if:{{{arg3optional|}}}|''|}}<!--
-->{{#if:{{{arg3optional|}}}|''|}}<!--
-->{{#if:{{{arg4name|}}}|, |}}|<br />
-->{{#if:{{{arg4name|}}}|, |}}|{{#if:{{{arg2name|}}}|<br />
{{Pipe}}{{#if:{{{arg2name|}}}|''' ); |}}}}<!--
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg4name|}}}|<br />
-->{{#if:{{{arg4name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 59: Line 59:
-->{{#if:{{{arg4altname|}}}|&nbsp;<u>or</u> {{{arg4altname|}}}}}<!--
-->{{#if:{{{arg4altname|}}}|&nbsp;<u>or</u> {{{arg4altname|}}}}}<!--
-->{{#if:{{{arg4optional|}}}|''|}}<!--
-->{{#if:{{{arg4optional|}}}|''|}}<!--
-->{{#if:{{{arg5name|}}}|, |}}|<br />
-->{{#if:{{{arg5name|}}}|, |}}|{{#if:{{{arg3name|}}}|<br />
{{Pipe}}{{#if:{{{arg3name|}}}|''' ); |}}}}<!--
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg5name|}}}|<br />
-->{{#if:{{{arg5name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 67: Line 67:
-->{{#if:{{{arg5altname|}}}|&nbsp;<u>or</u> {{{arg5altname|}}}}}<!--
-->{{#if:{{{arg5altname|}}}|&nbsp;<u>or</u> {{{arg5altname|}}}}}<!--
-->{{#if:{{{arg5optional|}}}|''|}}<!--
-->{{#if:{{{arg5optional|}}}|''|}}<!--
-->{{#if:{{{arg6name|}}}|, |}}|<br />
-->{{#if:{{{arg6name|}}}|, |}}|{{#if:{{{arg4name|}}}|<br />
{{Pipe}}{{#if:{{{arg4name|}}}|''' ); |}}}}<!--
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg6name|}}}|<br />
-->{{#if:{{{arg6name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 75: Line 75:
-->{{#if:{{{arg6altname|}}}|&nbsp;<u>or</u> {{{arg6altname|}}}}}<!--
-->{{#if:{{{arg6altname|}}}|&nbsp;<u>or</u> {{{arg6altname|}}}}}<!--
-->{{#if:{{{arg6optional|}}}|''|}}<!--
-->{{#if:{{{arg6optional|}}}|''|}}<!--
-->{{#if:{{{arg7name|}}}|, |}}|<br />
-->{{#if:{{{arg7name|}}}|, |}}|{{#if:{{{arg5name|}}}|<br />
{{Pipe}}{{#if:{{{arg5name|}}}|''' ); |}}}}<!--
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg7name|}}}|<br />
-->{{#if:{{{arg7name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 83: Line 83:
-->{{#if:{{{arg7altname|}}}|&nbsp;<u>or</u> {{{arg7altname|}}}}}<!--
-->{{#if:{{{arg7altname|}}}|&nbsp;<u>or</u> {{{arg7altname|}}}}}<!--
-->{{#if:{{{arg7optional|}}}|''|}}<!--
-->{{#if:{{{arg7optional|}}}|''|}}<!--
-->{{#if:{{{arg8name|}}}|, |}}|<br />
-->{{#if:{{{arg8name|}}}|, |}}|{{#if:{{{arg6name|}}}|<br />
{{Pipe}}{{#if:{{{arg6name|}}}|''' ); |}}}}<!--
{{Pipe}}''' ); |}}}}<!--
-->{{#if:{{{arg8name|}}}|<br />
-->{{#if:{{{arg8name|}}}|<br />
{{Pipe}}align="center"{{Pipe}}'''<!--
{{Pipe}}align="center"{{Pipe}}'''<!--
Line 90: Line 90:
-->{{{arg8name|}}}<!--
-->{{{arg8name|}}}<!--
-->{{#if:{{{arg8altname|}}}|&nbsp;<u>or</u> {{{arg8altname|}}}}}<!--
-->{{#if:{{{arg8altname|}}}|&nbsp;<u>or</u> {{{arg8altname|}}}}}<!--
-->{{#if:{{{arg8optional|}}}|''|}}|<br />
-->{{#if:{{{arg8optional|}}}|''|}}|{{#if:{{{arg7name|}}}|<br />
{{Pipe}}{{#if:{{{arg7name|}}}|''' ); |}}}}
{{Pipe}}''' ); |}}}}
|-
|-
|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