Template:Function: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 4: Line 4:
{{#vardefine:use_type|{{#if: {{{return_type|}}}|{{{return_type}}}|{{var:return_type}} }} }}
{{#vardefine:use_type|{{#if: {{{return_type|}}}|{{{return_type}}}|{{var:return_type}} }} }}
{{#vardefine:use_also_bool|{{#if: {{{return_also|}}}|yes|{{#ifeq: {{#varexists:return_also}}|1|yes|no}} }} }}
{{#vardefine:use_also_bool|{{#if: {{{return_also|}}}|yes|{{#ifeq: {{#varexists:return_also}}|1|yes|no}} }} }}
{{#vardefine:use_also_line|{{#ifeq: {{#var:use_also_bool}}|no||{{#if: {{{returns_also|}}}|{{{return_also}}}|{{#var:return_also}} }} }} }}
{{#var:use_also_bool}}
{{#var:use_also_bool}}
{{#vardefine:use_also_line|{{#ifeq: {{#var:use_also_bool}}|no||{{#if: {{{returns_also|}}}|{{{return_also}}}|{{#var:return_also}} }} }} }}
{{#var:use_also_line}}
 
<b>
<b>
{{#ifeq: {{#var:use_aggregate}}|yes|[[Aggregate|{{#var:use_type}}]]|[[{{#var:use_type}}]]|}}
{{#ifeq: {{#var:use_aggregate}}|yes|[[Aggregate|{{#var:use_type}}]]|[[{{#var:use_type}}]]|}}

Revision as of 10:02, 28 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.