User:StDoodle/Function sandbox: Difference between revisions
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.</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.</noinclude> | ||
<includeonly>'''[[{{{returns}}}]]'''<nowiki></nowiki>{{#if: {{{returns2|}}}| / '''[[{{{returns2}}}]]''' }}<nowiki> </nowiki>'''{{{name | <includeonly>'''[[{{{returns}}}]]'''<nowiki></nowiki>{{#if: {{{returns2|}}}| / '''[[{{{returns2}}}]]''' }}<nowiki> </nowiki>'''{{{name={{{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 06:34, 25 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.