Difference between revisions of "Template:Function"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m
Line 1: Line 1:
 
<noinclude>This is the main function template. Supply the function ''name,'' the data type of the value it ''returns,'' and what, if any, ''parameters'' it takes.</noinclude>
 
<noinclude>This is the main function template. Supply the function ''name,'' the data type of the value it ''returns,'' and what, if any, ''parameters'' it takes.</noinclude>
<includeonly>{{#customtitle:{{{name}}}()|{{{name}}}()}}<nowiki></nowiki>'''[[{{{returns}}}]]''' '''{{{name}}}('''<nowiki></nowiki>{{#if: {{{parameter1|}}}|{{param|{{{parameter1|1}}}|{{{parameter1|2}}}}}}}
+
<includeonly>{{#customtitle:{{{name}}}()|{{{name}}}()}}<nowiki></nowiki>'''[[{{{returns}}}]]''' '''{{{name}}}('''<nowiki></nowiki>{{#if: {{{parameter1|}}}|{{param|{{{parameter1|0}}}|{{{parameter1|1}}}}}}}
 
<p>{{{description|}}}</p>
 
<p>{{{description|}}}</p>
 
[[Category:Ash Functions]]
 
[[Category:Ash Functions]]
 
</includeonly>
 
</includeonly>

Revision as of 03:28, 24 February 2010

This is the main function template. Supply the function name, the data type of the value it returns, and what, if any, parameters it takes.