Template:BSLfuncinfo: Difference between revisions

don't print the [edit] link if the previous column printed it
(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)
(don't print the [edit] link if the previous column printed it)
Line 7: Line 7:
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{#if:{{{arg2name|}}}|
{{#if:{{{arg2name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<u>or</u> {{{arg2alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg2type|}}} {{#if:{{{arg2alttype|}}}|<u>or</u> {{{arg2alttype|}}}}}|{{#if:{{{arg1name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg3name|}}}|
{{#if:{{{arg3name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<u>or</u> {{{arg3alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg3type|}}} {{#if:{{{arg3alttype|}}}|<u>or</u> {{{arg3alttype|}}}}}|{{#if:{{{arg2name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg4name|}}}|
{{#if:{{{arg4name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<u>or</u> {{{arg4alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg4type|}}} {{#if:{{{arg4alttype|}}}|<u>or</u> {{{arg4alttype|}}}}}|{{#if:{{{arg3name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg5name|}}}|
{{#if:{{{arg5name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg5type|}}} {{#if:{{{arg5alttype|}}}|<u>or</u> {{{arg5alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg5type|}}} {{#if:{{{arg5alttype|}}}|<u>or</u> {{{arg5alttype|}}}}}|{{#if:{{{arg4name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg6name|}}}|
{{#if:{{{arg6name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg6type|}}} {{#if:{{{arg6alttype|}}}|<u>or</u> {{{arg6alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg6type|}}} {{#if:{{{arg6alttype|}}}|<u>or</u> {{{arg6alttype|}}}}}|{{#if:{{{arg5name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg7name|}}}|
{{#if:{{{arg7name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg7type|}}} {{#if:{{{arg7alttype|}}}|<u>or</u> {{{arg7alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg7type|}}} {{#if:{{{arg7alttype|}}}|<u>or</u> {{{arg7alttype|}}}}}|{{#if:{{{arg6name|}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
{{#if:{{{arg8name|}}}|
{{#if:{{{arg8name|}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg8type|}}} {{#if:{{{arg8alttype|}}}|<u>or</u> {{{arg8alttype|}}}}}|
{{Pipe}}align="center"{{Pipe}}{{{arg8type|}}} {{#if:{{{arg8alttype|}}}|<u>or</u> {{{arg8alttype|}}}}}|
{{Pipe}}[[{{{name}}}|[edit]]]}}
{{Pipe}}[[{{{name}}}|[edit]]]}}|}}
|-
|-
|'''{{{name}}}('''<!--
|'''{{{name}}}('''<!--