Template:Function: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 1: Line 1:
<noinclude>This is the template to display a line of function information (for the function page template, see [[Template:FunctionPage]]). Supply the function ''name,'' the data type of the value it ''returns,'' and what, if any, ''parameters'' it takes.[[Category:Basic Templates]]</noinclude>
<noinclude>This is the template to display a line of function information (for the function page template, see [[Template:FunctionPage]]). Supply the function ''name,'' the data type of the value it ''returns,'' and what, if any, ''parameters'' it takes.[[Category:Basic Templates]]</noinclude>
<includeonly>{{#if: {{{aggregate|}}|'''[[{{{returns}}}|Aggregate]]'''|'''[[{{{returns}}}]]'''<nowiki></nowiki>{{#if: {{{returns2|}}}|&nbsp;/ '''[[{{{returns2}}}]]''' }} }}<nowiki> </nowiki>'''{{{function_name}}}('''<nowiki></nowiki>{{#if: {{{parameter1|}}}|{{{parameter1}}}}}{{#if: {{{parameter2|}}}|, {{{parameter2}}}}}{{#if: {{{parameter3|}}}|, {{{parameter3}}}}}{{#if: {{{parameter4|}}}|, {{{parameter4}}}}}{{#if: {{{parameter5|}}}|, {{{parameter5}}}}}<nowiki></nowiki>''')'''
<includeonly>{{#if: {{{aggregate|}}}|'''[[{{{returns}}}|Aggregate]]'''|'''[[{{{returns}}}]]'''<nowiki></nowiki>{{#if: {{{returns2|}}}|&nbsp;/ '''[[{{{returns2}}}]]''' }} }}<nowiki> </nowiki>'''{{{function_name}}}('''<nowiki></nowiki>{{#if: {{{parameter1|}}}|{{{parameter1}}}}}{{#if: {{{parameter2|}}}|, {{{parameter2}}}}}{{#if: {{{parameter3|}}}|, {{{parameter3}}}}}{{#if: {{{parameter4|}}}|, {{{parameter4}}}}}{{#if: {{{parameter5|}}}|, {{{parameter5}}}}}<nowiki></nowiki>''')'''
{{#if: {{{p1desc|}}}|<p>Where {{{parameter1}}} is {{{p1desc}}}</p>}}{{#if: {{{p2desc|}}}|<p>Where {{{parameter2}}} is {{{p2desc}}}</p>}}{{#if: {{{p3desc|}}}|<p>Where {{{parameter3}}} is {{{p3desc}}}</p>}}{{#if: {{{p4desc|}}}|<p>Where {{{parameter4}}} is {{{p4desc}}}</p>}}{{#if: {{{p5desc|}}}|<p>Where {{{parameter5}}} is {{{p5desc}}}</p>}}{{#if: {{{description|}}}|<p>{{{description}}}</p>}}
{{#if: {{{p1desc|}}}|<p>Where {{{parameter1}}} is {{{p1desc}}}</p>}}{{#if: {{{p2desc|}}}|<p>Where {{{parameter2}}} is {{{p2desc}}}</p>}}{{#if: {{{p3desc|}}}|<p>Where {{{parameter3}}} is {{{p3desc}}}</p>}}{{#if: {{{p4desc|}}}|<p>Where {{{parameter4}}} is {{{p4desc}}}</p>}}{{#if: {{{p5desc|}}}|<p>Where {{{parameter5}}} is {{{p5desc}}}</p>}}{{#if: {{{description|}}}|<p>{{{description}}}</p>}}
</includeonly>
</includeonly>

Revision as of 08:46, 26 February 2010

This is the template to display a line of function information (for the function page template, see Template:FunctionPage). Supply the function name, the data type of the value it returns, and what, if any, parameters it takes.